Post by MacOpencart » Mon Oct 19, 2020 1:48 pm

Hi

I recently migrated to Opencart 3. After migrating my products, I get http error 500 on Admin > product page.

Any help is highly appreciated. Many thanks in advance.
Last edited by MacOpencart on Tue Oct 20, 2020 12:05 am, edited 2 times in total.

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by sw!tch » Mon Oct 19, 2020 2:46 pm

For 500 errors you need to check you PHP server error log, typically reside in root of your webspace in a logs folder. Otherwise check your hosting control panel for a error log section.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by MacOpencart » Mon Oct 19, 2020 2:54 pm

Thank you for your reply.

I check d all error logs in root of the server and also in root of the opencart site. There is no log created today. What is the sspecisific error I should be looking for?

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by JNeuhoff » Mon Oct 19, 2020 5:16 pm

MacOpencart wrote:
Mon Oct 19, 2020 2:54 pm
Thank you for your reply.

I check d all error logs in root of the server and also in root of the opencart site. There is no log created today. What is the sspecisific error I should be looking for?
If it is a Linux-based webhosting package the error log might be located at /var/log/apache2/error.log. With most cPanel accounts it won't be accessible from your account, you'd have to ask your webhost for the error log entries, for the exact time the error occured.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Mon Oct 19, 2020 7:04 pm

MacOpencart wrote:
Mon Oct 19, 2020 1:48 pm
I recently migrated to Opencart 3. After migrating my products, I get http error 500 on Admin > product page.
How exactly did you do this?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by MacOpencart » Mon Oct 19, 2020 10:43 pm

Hi JNeuhoff

In admin>error.log file, I see these errors:
[19-Oct-2020 12:45:28 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6282960 bytes) in /home/msadek07/public_html/NEW/system/library/image.php on line 45

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by by mona » Mon Oct 19, 2020 10:47 pm

Please always post your OC version and as much information as possible.
You might also find google very useful for searching errors and how to solves them

viewtopic.php?t=9777
viewtopic.php?t=102258
viewtopic.php?t=171550
viewtopic.php?t=146471

https://stackoverflow.com/questions/596 ... d-opencart

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Mon Oct 19, 2020 10:48 pm

Increase the PHP setting 'memory_limit' for your website, in your 'php.ini' or '.htaccess' (depending on PHP engine used)

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by MacOpencart » Mon Oct 19, 2020 11:02 pm

How much can I increase it to? Can I change it in php.ini file in root? It is already 128mb

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by JNeuhoff » Mon Oct 19, 2020 11:20 pm

Sorry, but your PHP configuration still sees it as 32M. Ask you webhost whether higher values are even allowed for your hosting package, and where exactly it can be set, if not in 'php.ini' or '.htaccess'.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by MacOpencart » Mon Oct 19, 2020 11:29 pm

where did you see 32M?

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by JNeuhoff » Mon Oct 19, 2020 11:37 pm

MacOpencart wrote:
Mon Oct 19, 2020 11:29 pm
where did you see 32M?
In the "Allowed memory size of 33554432 bytes exhausted" error message, 33554432 bytes = 32MB

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by MacOpencart » Tue Oct 20, 2020 12:04 am

Thank you JNeuhoff and all other s who helped. The problem is resolved. I increased the memory in php.ini file and created a user.ini in public_html folder
The php.ini file now is chaged to:
max_file_uploads = 512M
max_execution_time = 600
upload_max_filesize = 512M
memory_limit = 512M
display_errors = 1
output_buffering = 1
max_input_time = 600

and user.ini file :
max_file_uploads = 512M
max_execution_time = 600
upload_max_filesize = 512M
memory_limit = 512M
display_errors = 1
output_buffering = 1
max_input_time = 600

I hope this thread will help others who face similar issues.

Newbie

Posts

Joined
Mon Oct 19, 2020 1:44 pm

Post by paulfeakins » Tue Oct 20, 2020 5:08 pm

MacOpencart wrote:
Tue Oct 20, 2020 12:04 am
Thank you JNeuhoff and all other s who helped. The problem is resolved.
Great! Please add [SOLVED] to the start of the post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 19 guests