Page 1 of 1
Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 4:55 am
by vsdev
I running opencart 2.3.0.2, I get an error when I try to update the order info. This started happening after I switched over to SSL.
Any ideas?
Thanks
-Joe
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 5:00 am
by thekrotek
Check your config, see error log.
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 5:37 am
by vsdev
Config is good,
Error log is empty.
Admin config included, but I think this is an API issue as everything else seems to be working
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'https://www.domain.com/admin/');
define('HTTP_CATALOG', 'https://www.domain.com/');
// HTTPS
define('HTTPS_SERVER', 'https://www.domain.com/admin/');
define('HTTPS_CATALOG', 'https://www.domain.com/');
// DIR
define('DIR_APPLICATION', '/var/www/opencart/admin/');
define('DIR_SYSTEM', '/var/www/opencart/system/');
define('DIR_IMAGE', '/var/www/opencart/image/');
define('DIR_LANGUAGE', '/var/www/opencart/admin/language/');
define('DIR_TEMPLATE', '/var/www/opencart/admin/view/template/');
define('DIR_CONFIG', '/var/www/opencart/system/config/');
define('DIR_CACHE', '/var/www/opencart/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/www/opencart/system/storage/download/');
define('DIR_LOGS', '/var/www/opencart/system/storage/logs/');
define('DIR_MODIFICATION', '/var/www/opencart/system/storage/modification/');
define('DIR_UPLOAD', '/var/www/opencart/system/storage/upload/');
define('DIR_CATALOG', '/var/www/opencart/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'XXXXX');
define('DB_PASSWORD', 'XXXXX');
define('DB_DATABASE', 'XXXXX');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 5:57 am
by vsdev
I'm also going to link this since they may be related. Issue arose around the same time
"
viewtopic.php?f=190&t=206359"
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 7:34 am
by straightlight
I don't see the relation of this topic and the topic you are referring to, so far.
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 11:01 am
by vsdev
Is there anything special that happens when updating an order that would cause this? I can still add products,etc.
Re: Internal Server Error When updating orders
Posted: Tue Aug 14, 2018 12:55 pm
by grgr
It won't show up in the OC log, try getting hold of the server logs.
Re: Internal Server Error When updating orders
Posted: Wed Aug 15, 2018 8:41 am
by vsdev
Here is my server log.
Edit: removed
Re: Internal Server Error When updating orders
Posted: Wed Aug 15, 2018 8:54 am
by vsdev
I disabled fraud labs pro, The line of code creating the issue was 267 of catalog/model/checkout/order.php
Code: Select all
$fraud_status_id = $this->{'model_fraud_' . $extension['code']}->check($order_info);
I fixed the issue by disabling fraud labs pro. I would like to keep the fraud labs pro extension. Any suggestions as to what could be causing this?
Thanks
-Joe
Re: Internal Server Error When updating orders
Posted: Tue Jun 30, 2020 2:26 pm
by RideTheWave
vsdev wrote: ↑Wed Aug 15, 2018 8:54 am
I disabled fraud labs pro, The line of code creating the issue was 267 of catalog/model/checkout/order.php
Code: Select all
$fraud_status_id = $this->{'model_fraud_' . $extension['code']}->check($order_info);
I fixed the issue by disabling fraud labs pro. I would like to keep the fraud labs pro extension. Any suggestions as to what could be causing this?
Thanks
-Joe
Hi, it's been some time since the last post but I'm encountering the same issue (OC 2.3.0.2). I sometimes get an "Internal Server Error" when updating an order status. It doesn't happen every single time though. When I go back and check on the order, the status is updated successfully so there's no need to re-update the status.
After removing or commenting out that line, did the problem every happen again or did it permanently solve the issue?
Re: Internal Server Error When updating orders
Posted: Tue Jun 30, 2020 9:12 pm
by Cue4cheap
RideTheWave wrote: ↑Tue Jun 30, 2020 2:26 pm
Hi, it's been some time since the last post but I'm encountering the same issue (OC 2.3.0.2). I sometimes get an "Internal Server Error" when updating an order status. It doesn't happen every single time though. When I go back and check on the order, the status is updated successfully so there's no need to re-update the status.
After removing or commenting out that line, did the problem every happen again or did it permanently solve the issue?
Look in your server logs and tell us what error it kicks. Internal server error should kick an error and log it in the server log. That error should point to what is wrong.
Mike
Re: Internal Server Error When updating orders
Posted: Wed Jul 01, 2020 1:42 am
by RideTheWave
I'm looking in the metrics section of cPanel and under Errors it says: "Last 300 Error Log messages in reverse order" but the screen is blank so I'm assuming there are no errors?
Re: Internal Server Error When updating orders
Posted: Wed Jul 01, 2020 1:47 am
by Cue4cheap
RideTheWave wrote: ↑Wed Jul 01, 2020 1:42 am
I'm looking in the metrics section of cPanel and under Errors it says: "Last 300 Error Log messages in reverse order" but the screen is blank so I'm assuming there are no errors?
Look in admin folder, typically error_log on unix systems.
Mike