Trouble Upgrading To 4.3.5 And Beyond

So I freshly cloned my live store to my dev store after it broke previously. I have it all working again however when going to download the upgrade to 4.3.5 it goes blank and says: HTTP ERROR 500

?

So I freshly cloned my live store to my dev store after it broke previously. I have it all working again however when going to download the upgrade to 4.3.5 it goes blank and says: HTTP ERROR 500

?

500 errors should be logged on the server. Check the error log for detailed error message.

[11-Oct-2016 00:00:39 Europe/London] PHP Notice: Undefined property: Tygh\Backend\Database\Pdo::$_skip_error_codes in /home/cctvkits/dev/app/Tygh/Backend/Database/Pdo.php on line 146
[11-Oct-2016 00:00:39 Europe/London] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/cctvkits/dev/app/Tygh/Backend/Database/Pdo.php on line 146
[11-Oct-2016 00:00:39 Europe/London] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 72 bytes) in /home/cctvkits/dev/app/Tygh/Database.php on line 711
[11-Oct-2016 00:08:33 Europe/London] PHP Warning: file_put_contents(/home/cctvkits/dev/var/upgrade/core_log.txt): failed to open stream: Permission denied in /home/cctvkits/dev/app/Tygh/UpgradeCenter/Log.php on line 79
[11-Oct-2016 00:08:56 Europe/London] PHP Warning: md5_file(/home/cctvkits/dev/var/upgrade/packages/core/upgrade_4.3.4_ultimate-4.3.5_ultimate.zip): failed to open stream: No such file or directory in /home/cctvkits/dev/app/Tygh/UpgradeCenter/Connectors/Core/Connector.php on line 121
[11-Oct-2016 00:08:58 Europe/London] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 81 bytes) in /home/cctvkits/dev/app/Tygh/Database.php on line 711

[11-Oct-2016 00:00:39 Europe/London] PHP Notice: Undefined property: Tygh\Backend\Database\Pdo::$_skip_error_codes in /home/cctvkits/dev/app/Tygh/Backend/Database/Pdo.php on line 146
[11-Oct-2016 00:00:39 Europe/London] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/cctvkits/dev/app/Tygh/Backend/Database/Pdo.php on line 146
[11-Oct-2016 00:00:39 Europe/London] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 72 bytes) in /home/cctvkits/dev/app/Tygh/Database.php on line 711
[11-Oct-2016 00:08:33 Europe/London] PHP Warning: file_put_contents(/home/cctvkits/dev/var/upgrade/core_log.txt): failed to open stream: Permission denied in /home/cctvkits/dev/app/Tygh/UpgradeCenter/Log.php on line 79
[11-Oct-2016 00:08:56 Europe/London] PHP Warning: md5_file(/home/cctvkits/dev/var/upgrade/packages/core/upgrade_4.3.4_ultimate-4.3.5_ultimate.zip): failed to open stream: No such file or directory in /home/cctvkits/dev/app/Tygh/UpgradeCenter/Connectors/Core/Connector.php on line 121
[11-Oct-2016 00:08:58 Europe/London] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 81 bytes) in /home/cctvkits/dev/app/Tygh/Database.php on line 711

There is a known bug in your CS-Cart version that causes memory error when there are problems with connection to the database. It appears because CS-Cart is still trying to log the error and save it in the database. Please apply the fix from the following topic:

http://forum.cs-cart.com/tracker/issue-6316-mysql-error-logging/?gopid=24779#entry24779

This will not resolve the initial issue, but you should see the corresponding error message instead of memory error.

OK thanks, there I was upping the memory limit to 4gb - what is the max CSCart will use?

I set all permissions to 777 as we are using DSO and it hangs on copy files var/langs now

with the error:

[11-Oct-2016 07:52:58 Europe/London] PHP Notice: Undefined variable: result in /home/cctvkits/dev/app/Tygh/Database.php on line 196

?

OK thanks, there I was upping the memory limit to 4gb - what is the max CSCart will use?

I set all permissions to 777 as we are using DSO and it hangs on copy files var/langs now

with the error:

[11-Oct-2016 07:52:58 Europe/London] PHP Notice: Undefined variable: result in /home/cctvkits/dev/app/Tygh/Database.php on line 196

?

Are there any other records in the log? There should be some error that is causing the issue somewhere near the provided PHP notice. It looks like MySQL server timed out.

As for the memory usage, 256-512M should be enough for most installations.

whats with the php timeout thing, the site seems to fail the test still. Is it just a PHP setting on the server? Is this the culprit?

whats with the php timeout thing, the site seems to fail the test still. Is it just a PHP setting on the server? Is this the culprit?

If the timeout test fails you should increase the timeouts on the server as it is suggested in the test results.