Post by Ant_s29 » Thu Jun 29, 2023 9:10 pm

An update as been done on the server my site is hosted on, now when I search for a product from the homepage i'm getting this error:

Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_FilesBundle has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/common.php on line 56Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_Fsa has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/fsa/fsa.php on line 90Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_Fsa_WordsCollector has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/fsa/fsa.php on line 215Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_Fsa_Decorator has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/fsa/fsa.php on line 238Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_GramInfo has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/graminfo/graminfo.php on line 89Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; phpMorphy_GramInfo_Decorator has a deprecated constructor in /home/tilesandbathroom/public_html/system/library/phpmorphy/src/graminfo/graminfo.php on line 209

It was working fine before, can anyone help me please? if you click the search icon straight away after the original search the error message goes and the page is fine. It's also affected the filter part on the products page in the back end of the site.

any help would be much appreciated.
Thanks,
Ant

Newbie

Posts

Joined
Thu May 18, 2017 11:34 pm

Post by ADD Creative » Thu Jun 29, 2023 9:52 pm

It would be helpful to provide more information, such as your OpenCart version an PHP version.

The error is in an extension, so you really need to contact the developer or another developer to look at the source code.

If your hosting lets you try selecting an older PHP version, they selecting PHP 7.x, as this was probably changed in the update.

You could as switch off display errors, which will stop them showing, as the look like notices and not error. You need make sure display errors in set to off in all 3 places. Your PHP settings, in system/config/default.php and in the settings. Not only can this cause minor notices and warnings to cause bigger errors, it can also be a security risk.

1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.

2. In system/config/default.php set error_display to false.

3. In your OpenCart Setting on the server tab set Display Errors to No.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Ant_s29 » Thu Jun 29, 2023 11:57 pm

ADD Creative wrote:
Thu Jun 29, 2023 9:52 pm
It would be helpful to provide more information, such as your OpenCart version an PHP version.

The error is in an extension, so you really need to contact the developer or another developer to look at the source code.

If your hosting lets you try selecting an older PHP version, they selecting PHP 7.x, as this was probably changed in the update.

You could as switch off display errors, which will stop them showing, as the look like notices and not error. You need make sure display errors in set to off in all 3 places. Your PHP settings, in system/config/default.php and in the settings. Not only can this cause minor notices and warnings to cause bigger errors, it can also be a security risk.

1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.

2. In system/config/default.php set error_display to false.

3. In your OpenCart Setting on the server tab set Display Errors to No.

Many thanks for taking the time to respond, the version I'm using is 2.3.0.2. Would this be an extension that's been installed on the site or the pre installed ones do you think? Apologies about the broad reply, I'm not that technical to this part.

Thanks

Newbie

Posts

Joined
Thu May 18, 2017 11:34 pm

Post by ADD Creative » Fri Jun 30, 2023 12:14 am

It's a third party extension that has been installed. Probably something to do with searching.

Have you tried disabling the displaying of errors. This would probably allow your site to function, but still log the errors in the error log file, until you can get them fixed.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Fri Jun 30, 2023 7:42 pm

Ant_s29 wrote:
Thu Jun 29, 2023 9:10 pm
An update as been done on the server my site is hosted on, now when I search for a product from the homepage i'm getting this error:
Really any decent host would let you know before they change the PHP version, who are your host?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Fri Jun 30, 2023 7:49 pm

Check your PHP version, maybe the webhost has upgraded the PHP version without letting you know?

Also, you may want to upgrade the 3rd party phpmorphy library used by one of your extensions. Ask the author to help you with this.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 61 guests