Page 1 of 1

Please help :-( - Server update as created an error on my site.

Posted: Thu Jun 29, 2023 9:10 pm
by Ant_s29
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

Re: Please help :-( - Server update as created an error on my site.

Posted: Thu Jun 29, 2023 9:52 pm
by ADD Creative
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.

Re: Please help :-( - Server update as created an error on my site.

Posted: Thu Jun 29, 2023 11:57 pm
by Ant_s29
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

Re: Please help :-( - Server update as created an error on my site.

Posted: Fri Jun 30, 2023 12:14 am
by ADD Creative
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.

Re: Please help :-( - Server update as created an error on my site.

Posted: Fri Jun 30, 2023 7:42 pm
by paulfeakins
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?

Re: Please help :-( - Server update as created an error on my site.

Posted: Fri Jun 30, 2023 7:49 pm
by JNeuhoff
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.

Re: Please help :-( - Server update as created an error on my site.

Posted: Fri Jun 30, 2023 9:11 pm
by SohBH