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
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
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.
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.
ADD Creative wrote: ↑Thu Jun 29, 2023 9:52 pmIt 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
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.
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.
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
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.
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
You can update all files
https://github.com/cijic/phpmorphy/tree ... morphy/src
https://github.com/cijic/phpmorphy/tree ... morphy/src
View all extensions | Request custom work | Pricing | Contact Me
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot] and 61 guests