Closed solracsf closed 8 years ago
Add this as well: http://www.joomlaworks.net/forum/k2-en/45109-php-7-warning-calendar-has-a-deprecated-constructor
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
Calendar has a deprecated constructor in /public_html/modules/mod_k2_tools/includes/calendarClass.php on line 32
@acs-ferreira
Both issues have been fixed with:
https://github.com/getk2/k2/commit/5a9ae0a44b12d2e224b7f0dee3541d74c68b860d https://github.com/getk2/k2/commit/5dc22b8b4e3b255b8f346cde4b2d463a14c18919
Please use the development version and verify that it works.
Can't confirm for CALENDAR as i'm not using it.
The only WARNINGS (not errors) i can seen now are:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemK2Filter has a deprecated constructor in public/plugins/system/k2filter/k2filter.php on line 15
This on also trigger this one:
Warning: Cannot modify header information - headers already sent by (output started at /public/plugins/system/k2filter/k2filter.php:15) in /public/libraries/joomla/input/cookie.php on line 94
Then these ones on other pages:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor in /srv/users/serverpilot/apps/dev/public/administrator/components/com_k2/lib/JSON.php on line 127
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /public/administrator/components/com_k2/lib/JSON.php on line 794
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /public/administrator/components/com_k2/lib/JSON.php on line 806
The first two are not coming from K2 files.
The rest of them are fixed now with this https://github.com/getk2/k2/commit/65979d44bf68c1b4322525786c99e9f01d76687c .
OK thanks.
I'll confirm https://github.com/getk2/k2/commit/65979d44bf68c1b4322525786c99e9f01d76687c later.
https://github.com/getk2/k2/commit/65979d44bf68c1b4322525786c99e9f01d76687c is OK.
I've tested it with https://github.com/sstalle/php7cc and no errors had been stated, but some warnings.
This should be performed and fixed in the whole component.
More reported in the AllVideos issue tracker:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor /administrator/components/com_k2/lib/JSON.php on line 127
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in //administrator/components/com_k2/lib/JSON.php on line 794
/cc @kavadas
@fevangelou Those should be fixed already with https://github.com/getk2/k2/commit/65979d44bf68c1b4322525786c99e9f01d76687c cc @kavadas
I am closing this issue since all reported errors should have been fixed with the latest commits.
When adding/editing a Menu (K2 Categories Listing):
Some similar warnings on the Frontend of type
No issues/warnings on PHP 5.6.