Server error 500 on upgrade

Upgradeing from 4.61 to 4.62, some functions didnt work when I opened the store so tried to revert using the full core backup, and got server error 500 after 5 minutes.
Used the restore link in email and FTP reports “no cs cart installed on this server”.

error logs show this,

[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2703
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3115
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3282
[07-May-2023 10:46:45 UTC] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/johnbol/public_html/app/Tygh/Bootstrap.php on line 237
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1468
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1472
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.common.php on line 3492
[07-May-2023 10:46:45 UTC] PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/johnbol/public_html/app/functions/fn.order_management.php on line 328
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 50
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 57
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 115
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 122
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2686
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2703
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3115
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3282
[07-May-2023 10:46:45 UTC] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/johnbol/public_html/app/Tygh/Bootstrap.php on line 237
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1468
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1472
[07-May-2023 10:46:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.common.php on line 3492
[07-May-2023 10:46:45 UTC] PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/johnbol/public_html/app/functions/fn.order_management.php on line 328
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 50
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 57
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 115
[07-May-2023 11:46:45 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 122
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2686
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2703
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3115
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3282
[07-May-2023 10:47:11 UTC] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/johnbol/public_html/app/Tygh/Bootstrap.php on line 237
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1468
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1472
[07-May-2023 10:47:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.common.php on line 3492
[07-May-2023 10:47:11 UTC] PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/johnbol/public_html/app/functions/fn.order_management.php on line 328
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 50
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 57
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 115
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 122
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/johnbol/public_html/app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 75
[07-May-2023 11:47:11 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php on line 157
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2686
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 2703
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3115
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/lib/pear/Net/IDNA2.php on line 3282
[07-May-2023 10:47:16 UTC] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/johnbol/public_html/app/Tygh/Bootstrap.php on line 237
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1468
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.users.php on line 1472
[07-May-2023 10:47:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/functions/fn.common.php on line 3492
[07-May-2023 10:47:16 UTC] PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/johnbol/public_html/app/functions/fn.order_management.php on line 328
[07-May-2023 11:47:16 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 50
[07-May-2023 11:47:16 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 57
[07-May-2023 11:47:16 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 115
[07-May-2023 11:47:16 Europe/London] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/johnbol/public_html/app/addons/ecl_additional_qty_discounts/func.php on line 122
[07-May-2023 11:47:16 Europe/London] PHP Notice: Trying to access array offset on value of type bool in /home/johnbol/public_html/app/functions/fn.common.php on line 3492
[07-May-2023 11:47:16 Europe/London] PHP Notice: Trying to access array offset on value of type bool in /home/johnbol/public_html/app/functions/fn.common.php on line 3492

I have noticed PHP version was 7.4, and have reverted to 7.2 and now have this when following restore link

Unable to restore
Required mysqli or pdo_mysql.

What PHP version your store was using BEFORE upgrade was performed?

7.4 as far as I know, but 7.2 wont work anyway so I have oout it back to 7.4
the only problem now is when using “credit card” as payment at checkout when going to payment processor this error is thrown

Message
Uncaught Error: Call to undefined function mcrypt_encrypt() in /home/johnbol/public_html/app/payments/sagepay_files/sagepay.functions.php:40
Stack trace:
#0 /home/johnbol/public_html/app/payments/sagepay_form.php(115): encryptAes(‘VendorTxCode=em…’, ‘MtEt63gaGEUbJyj…’)
#1 /home/johnbol/public_html/app/functions/fn.cart.php(1487): include(‘/home/johnbol/p…’)
#2 /home/johnbol/public_html/app/functions/fn.cart.php(8497): fn_start_payment(362334, Array, Array)
#3 /home/johnbol/public_html/app/controllers/frontend/checkout.php(374): fn_checkout_place_order(Array, Array, Array)
#4 /home/johnbol/public_html/app/functions/fn.control.php(694): include(‘/home/johnbol/p…’)
#5 /home/johnbol/public_html/app/functions/fn.control.php(452): fn_run_controller(‘/home/johnbol/p…’, ‘checkout’, ‘place_order’, ‘’, ‘’)
#6 /home/johnbol/public_html/index.php(25): fn_dispatch()
#7 {main}
thrown

Error at
app/payments/sagepay_files/sagepay.functions.php, line: 40

You need to enable mcrypt extension on your server.

1 Like

Hello

Maybe that’s the problem?

mcrypt_encrypt — Encrypts plaintext with given parameters. Warning. This function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2

Best regards
Robert

1 Like

Thanks…I’ll get it looked into

Please download latest CS-Cart and try to replace the app/payments/sagepay_files/sagepay.functions.php file. It contains correct code in the latest versions

Thanks all, Mcrypt installed and works

3 Likes