Php Fatal Error: Class Name Must Be A Valid Object Or A String

Hey guys,

We have a CS-Cart 3.0.3 Installation. And I'm getting a HTTP ERROR 500 code and can't access the Addons page from the Control Panel.

/admin.php?dispatch=addons.manage

In the Server logs I'm getting the following: (Note we have renamed the admin.php file to admincpt.php)

500	GET /admincpt.php?dispatch=addons.manage HTTP/1.1
mod_fcgid: stderr: PHP Fatal error: Class name must be a valid object or a string in /var/www/vhosts/cptpapadakisphoto.gr/httpdocs/core/classes/addons/schemes_manager.php on line 34, referer: https://www.cptpapadakisphoto.gr/admincpt.php				Apache error

This is line 34 in the schemes_manager.php file:

self::$schemas[$addon_id] = new $versions[$version]($_xml);

I'm not a PHP guy, so can anyone tell me what's wrong with this.

Thanks!

I contacted CS-Cart for the issue and they found what the problem was.

The issue with the Addons page was caused by the third-party SD Facebook Pixel addon. I have renamed its directory to addon_sd_facebook_pixel and moved it to the root directory of your installation.

It is strongly recommended to change admin script now since it was published on the forum