Jump to content

500 Error - Uncaught Error


Recommended Posts

Getting the following - Error 500 - I put in the Define('_PS_MODE_DEV_', true); in the config.inc.php so i could get what the error was and got the following:

 

Fatal error: Uncaught Error: Call to undefined method Configuration::getMultiShopValues() in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php:384 Stack trace: #0 /var/www/vhosts/tractionrc.com/httpdocs/config/config.inc.php(128): ShopCore::initialize() #1 /var/www/vhosts/tractionrc.com/httpdocs/index.php(27): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php on line 384

 

Any ideas where to start looking?  I'm not a programmer...

 

Thanks!

Link to comment
Share on other sites

This is line 384 in shop.php

 

Configuration::getMultiShopValues('PS_MEDIA_SERVER_1'),

 

Went back to a full server backup on March 17th and get same thing - 500 error....

 

Changed PHP to version 8.0.28 and now the website comes up, but I still get a 500 error trying to get into the Admin section....

Link to comment
Share on other sites

Different Error:

 

(1/1) FatalErrorException

Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs)

in PDOConnection.php line 70

Link to comment
Share on other sites

Version of Presta is 1.7 - went back to PHP 7.4.33

Back to this error just going to Tractionrc.com

Fatal error: Uncaught Error: Call to undefined method Configuration::getMultiShopValues() in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php:384 Stack trace: #0 /var/www/vhosts/tractionrc.com/httpdocs/config/config.inc.php(130): ShopCore::initialize() #1 /var/www/vhosts/tractionrc.com/httpdocs/index.php(27): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php on line 384

Same error going to Admin Section:

Fatal error: Uncaught Error: Call to undefined method Configuration::getMultiShopValues() in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php:384 Stack trace: #0 /var/www/vhosts/tractionrc.com/httpdocs/config/config.inc.php(130): ShopCore::initialize() #1 /var/www/vhosts/tractionrc.com/httpdocs/admin089btqopv/index.php(40): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php on line 384

Weird how going to a full backup of my server did not resolve this.....

Link to comment
Share on other sites

That error sounds strange. Do try PHP 7.1 if available.

One other user @Cyrille XEMARD had similar issue, not sure if he got a solution.

 

Also just to be sure check maybe this topic about hack issues people are having

In French, but in short get zip, unpack then upload cleaner.php to your root and then go to https://tractionrc.com/cleaner.php

It will run scan and give you report if some files were tempered with.

 

And PrestaShop 1.7 does not support PHP 8 so you can not use it.

Link to comment
Share on other sites

Results of scan using the 7.1.33 PHP

 

Cleaning and control script for PhenixSuite/Prestashop stores by @eolia, version 2.0.22
This script is provided free of charge and under no circumstances can its use be charged or invoiced

Memory OK. You have the latest updated version of the script -> Startup...
You can create a cron task in the cronjobs module once a week by calling https://tractionrc.com/199042949dc3.php automatically and receive the result by email.

For security the url of the script has been modified. Note the new url if you close this page.
If you forgot the url, restart cleaner.php after re-downloading it

If cleaning or deletion messages are displayed in red , your e-store is likely to have been attacked and has been protected urgently but it is necessary to restore the modified files and to change the passwords of the employees of your shop .

Admin file control:

File does not exist in the original version. Content to control => httpdocs/**admin**/autoupgrade/tmp/key.phpSee

 

JS script control:

No suspicious JS file detected => OK
 

Control of images that can contain a script:

No suspicious image file detected => OK
 

Search for known infections:


Cleaning of the Prestashop cache done
 

Security Check on Known Junk Files:

No Known Junk Files Found
 

Control over sensitive files known to be modified:

Controlling defines.inc.php => OK
Controlling httpdocs/controllers/admin/AdminLoginController.php => OK
Controlling Dispatcher.php => OK
Controlling Hook.php => OK
Controlling FrontController.php => OK
Controlling Db.php => OK
Checking Module.php => OK
Checking alias.php => OK

Checking config.inc.php: Modified php file from original version => httpdocs/config/config.inc.phpSee

Checking IndexController.php => OK
 

Security check on core php files:

MD5 INTEGRITY: Modified php file from the original version. Content to control => httpdocs/config/smarty.config.inc.phpSee

 

Finding added php files:

Non-existent php file in the original version. Content to control => httpdocs/app/config/parameters.phpSee

Non-existent php file in the original version. Content to control => httpdocs/config/settings.inc.phpSee

Vulnerability search on the modules (for information, if the module is known there is a priori no risk):

Sensitive function to check: file_put_contents => httpdocs/modules/autoupgrade/upgrade/php/p16011_media_server.phpSee

Sensitive function to check: file_put_contents => httpdocs/modules/autoupgrade/upgrade/php/update_customer_default_group.phpSee

ANALYSIS COMPLETE


!!! ATTENTION !!! Some of your core files have been modified.
If these modifications are not voluntary, we advise you to compare the files with the 2 zips (suspicious_xxxx and Prestashop) and restore them to their original version if necessary.

IMPORTANT: If the modified core files begin with /**/ you have been the victim of a hack. Restore original versions immediately!

Link to comment
Share on other sites

Got this after rename of file

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5". You are running 7.1.33. in /var/www/vhosts/tractionrc.com/httpdocs/modules/ps_facebook/vendor/composer/platform_check.php on line 24

Moved back to 7.3.33 for PHP and back to this:


Fatal error: Uncaught Error: Call to undefined method Configuration::getMultiShopValues() in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php:384 Stack trace: #0 /var/www/vhosts/tractionrc.com/httpdocs/config/config.inc.php(130): ShopCore::initialize() #1 /var/www/vhosts/tractionrc.com/httpdocs/index.php(27): require('/var/www/vhosts...') #2 {main} thrown in /var/www/vhosts/tractionrc.com/httpdocs/classes/shop/Shop.php on line 384

Link to comment
Share on other sites

On 3/23/2023 at 7:21 AM, bcaza said:

Getting the following - Error 500 - I put in the Define('_PS_MODE_DEV_', true); in the config.inc.php so i could get what the error was and got the following:

 

All of sudden? What was done on your shop, tell us your story. All of it. Shop existence, upgrades, if automatic or manually, how many hand have handled your store? Server, shared, VPS,Dedicated?

Link to comment
Share on other sites

21 hours ago, bcaza said:

Configuration::getMultiShopValues

This is definitely a valid method inside this class. Two things to check: 1. See if an override is in place in /override/classes 2. Check the file /classes/configuration.php and compare it with the original prestashop file (of your version)

Link to comment
Share on other sites

Here's the solution:

 

Edit the PHP code of the module Tapfiliate in httpdocs/modules/tapfiliate/tapfiliate.php to make it work. Specifically, removed trailing commas in the lines 103, 204, 273 and 283, like so:
 
Before:

$params['order'],

After:

$params['order']

 

No Idea HOW this changed, because I never did anything that would cause that....

Now to try to move to version 1.8 (or 8 as some of you call it)

Hope this helps others!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...