Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeJ! ExtensionsFree ExtensionsTutorials and Case studiesErrors & Solutions When Upgrading SJ Templates to Use PHP 7.x

As you known, PHP 7 is the fastest PHP version and updating your Joomla website to PHP 7 can make your site perform 50% faster or more. However, it may occur some errors when you update SmartAddons Joomla Templates to use PHP 7.x. In this article, we will guide you to solve the problems with using PHP 7.x for SJ Templates before we release the updates.

Errors & Solutions When Upgrading SJ Templates to Use PHP 7.x

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!

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes