By greg on Wednesday, 07 November 2018
Posted in General
Replies 1
Likes 0
Views 867
Votes 0
Hi

I just update php version on my joomla website and I got these error

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 /home1/mtgt69/public_html/nomadsroad/components/com_komento/classes/json.php on line 131

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 /home1/mtgt69/public_html/nomadsroad/components/com_komento/classes/json.php on line 797

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 /home1/mtgt69/public_html/nomadsroad/components/com_komento/classes/json.php on line 811

I have a free version of komento, but really need to have no error on this component
That was known issue in the older version, try download my attached file and replace into this JoomlaFolder/components/com_komento/classes/json.php

By the way, are you using 1.8.2 version?

If that is not, you have to manually edit this json.php file, find this line of code :


function Services_JSON($use = 0)


Replace with


function __construct($use = 0)
·
Thursday, 08 November 2018 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post