Urgent: HTTP Error 500

Hello, we have upgrade our server and the hosting provider moved everything across for us but we are getting an ERROR 500 message:

Fatal error : Uncaught Error: Call to undefined function Tygh\get_magic_quotes_gpc() in /home/xxx/public_html/app/Tygh/Bootstrap.php:242 Stack trace: #0 /home/xxx/public_html/app/Tygh/Bootstrap.php(218): Tygh\Bootstrap::setConstants(Array, ‘/home/digitaldi…’) #1 /home/xxx/public_html/init.php(26): Tygh\Bootstrap::initEnv(Array, Array, Array, ‘/home/xxx…’) #2 /home/xxx/public_html/index.php(24): require(‘/home/xxx…’) #3 {main} thrown in /home/xxx/public_html/app/Tygh/Bootstrap.php on line 242

Any ideas please? This is rather urgent as we need this sorted this by tomorrow

check your servers php version is the same as your old one for your site.

what version of cs cart are you running

You’re right, we were using v7.4 and the new server has Ubuntu with support for 8.1 onwards so we’ll have to install a new OS with 7.4 support

1 Like

what version cs cart ?

quick test to see if runs now

BACKUP YOUR INDEX.PHP file
then
Paste this immediately after the opening

<?php tag in ....../home/xxx/public_html/index.php ``` // POLYFILL: Fix for CS-Cart on PHP 8.0+ if (!function_exists('get_magic_quotes_gpc')) { function get_magic_quotes_gpc() { return false; } } ```