Errors & solutions when updating SJ Templates to use PHP 7.x
1. Google Map
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Plugin_googleMaps has a deprecated constructor in /plugins/system/ytshortcodes/includes/libs/googlemap/googleMaps.lib.php on line 385 |
Solution:
Go to: /plugins/system/ytshortcodes/includes/libs/googlemap/googleMaps.lib.php
Find: function Plugin_googleMaps
Replace by: function __construct
2. Cookie Directive Lite
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemEUCookieDirectiveLite has a deprecated constructor in /plugins/system/EUCookieDirectiveLite/EUCookieDirectiveLite.php on line 37 |
Solution:
Go to: /plugins/system/EUCookieDirectiveLite/EUCookieDirectiveLite.php
Find: function plgSystemEUCookieDirectiveLite
Replace by: function __construct
3. YT Framework
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; YtFrameworkTemplate has a deprecated constructor in /plugins/system/yt/includes/site/lib/yt_template.php on line 16 |
Solution:
Go to: /plugins/system/yt/includes/site/lib/yt_template.php
Find: function YtFrameworkTemplate
Replace by: function __construct
4. YT Framework Render XML
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; YtFrameworkRenderXML has a deprecated constructor in/plugins/system/yt/includes/site/lib/yt_renderxml.php on line 13 |
Solution:
Go to: /plugins/system/yt/includes/site/lib/yt_renderxml.php
Find: function YtFrameworkRenderXML
Replace by: function __construct
5. YT Framework Object
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; YtObject has a deprecated constructor in /templates/sj_imag/menusys/ytobject.php on line 13 |
Solution:
Go to: /templates/sj_revo/menusys/ytobject.php
Find: function YtObject
Replace by: function __construct
6. JW All Videos
Error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_allvideos has a deprecated constructor in /plugins/content/jw_allvideos/jw_allvideos.php on line 18 |
Solution:
Go to: /plugins/content/jw_allvideos/jw_allvideos.php
Find: function plgContentJw_allvideos
Replace by: function __construct
Please follow our tips to fix the issues while updating SmartAddons Joomla Templates with PHP 7.x. We will update our products with PHP 7.x and inform you when the work done.
Thanks for reading!