Joomla, OpenCart...Themes & News

We deliver a wide range of template and extension for Joomla, OpenCart, Shopify. We update our products frequently on this blog so that you can find what you need here.
For more options, please visit our main page: http://www.smartaddons.com/

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

Posted by on in Joomla Tutorial
  • Font size: Larger Smaller
  • Hits: 2034
  • 0 Comments
  • Subscribe to this entry
  • Print

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 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!

Last modified on
Rate this blog entry:

SmartAddons specialize in products for Joomla. Up to now, we've had 100+ Professional Joomla Templates and 200+ Professional Joomla Extensions which are built-in with the latest standards plus optimized to satisfy customers' demands.
Our products are steadily updated to adapt any future Joomla release versions. With our design, you can build complex templates in the fastest way as well as use them for various purposes.
Our supporting team is always ready to answer any question or problem - we're here to help!
Join us now to catch up our latest news!

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Saturday, 08 February 2025

Shortcuts

Wohnung Löbau Auf wohnen-in-loebau.de finden Sie bestimmt Ihre neue Wohnung in Löbau.