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 /storage/content/34/158234/ellee.se/public_html/plugins/system/ytshortcodes/includes/libs/googlemap/googleMaps.lib.php on line 385

Solution:

Go to: /public_html/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 /storage/content/34/158234/ellee.se/public_html/plugins/system/EUCookieDirectiveLite/EUCookieDirectiveLite.php on line 37

Solution:

Go to: /public_html/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 /home/ 724/public_html/plugins/system/yt/includes/site/lib/yt_template.php on line 16

Solution:

Go to: /public_html/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 /home /724/public_html/plugins/system/yt/includes/site/lib/yt_renderxml.php on line 13

Solution:

Go to: /public_html/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 /home/724/public_html/templates/sj_imag/menusys/ytobject.php on line 13

Solution:

Go to: /public_html/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 /storage/content/34/158234/ellee.se/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 18

Solution:

Go to: /storage/content/34/158234/ellee.se/public_html/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!

Login to post comments

advertise with us

Boost your traffic and expand your pool of potential customers

8000 active members

Ready to join Now?

CMS Portal - The free marketplace for submitting Joomla, Drupal, Wordpress, Magento, phpBB, Prestashop, vBulletin, Opencart Templates and more.

FOLLOW US

Email Newsletters

Make sure you don't miss interesting happenings by joining our newsletter program.
konya escort eskisehir escort canakkale escort samsun escort balikesir escort aydin escort hatay escort kahramanmaras escort giresun escort tokat escort
Joomla Templates Free Joomla Templates Virtuemart Templates K2 Templates JoomShopping Templates HikaShop Templates SobiPro Templates OpenCart Themes
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes
bettilt
tempobet