Opencart Version 2.1.0.1 checkout page not redirecting to success page
Hi, we are having an issue with our checkout page no longer redirecting. The transaction is completed, but the page does not show any confirmation or redirect. The error below flashes for a moment after clicking the "Confirm Order" button.
It appears to be a Google Tag creating the conflict. That tag has been there for two years. It is odd that it all of a sudden is the conflict. Anyway to fix this without removing the tag? Also, if I do need to remove it should I just remove line 77? Thank you for your help!
-
Update: I got the error message to go away by changing <?php echo $text_loading; ?> to <?php echo $text_wait; ?>. Page is still not redirecting to the success page.
Got this from https://forum.opencart.com/viewtopic.php?t=155954
0 -
Update: I think this explains what is going on. I believe it is probably the SMTP because we have not been receiving order confirmations for about two weeks. I tried to add our SMTP info into Settings > Mail earlier this week, but I think that is what actually ended up breaking the Confirm Order button. https://forum.opencart.com/viewtopic.php?t=165895
Our store is on a subdomain: store.ruddercraft.com
We have no error logs. I think they were disabled because I cannot find them anywhere.
0 -
Hello, SailBoats,
Error logs are usually enabled in system/stratup.php file.
You need to add these lines there:
error_reporting(E_ALL);
ini_set('display_errors', 1);
Kind regards
Karapuz
0 -
Hi Karapuz,
I added the line, but still don't see anything in my Error Log in my dashboard. Am I looking in the wrong place for the Error Logs to show up?
0 -
Hello, sailBoats,
php errors should be placed in system/storage/logs/error.log file. Maybe it is not a php error, but a Javascript error in a browser. In that case, you will need to check the browser console after reproducing the error.
Please also make sure that you have enabled error logging in the store back-end on the settings page:
system / settings / server tab / log errors option
Kind regards
Karapuz
0 -
Here are the errors that pop up.
2020-08-29 16:54:08 - PHP Notice: Undefined variable: help_start_date in /home/322004.cloudwaysapps.com/jkvpkrpzef/public_html/catalog/view/theme/default/template/payment/pp_payflow.tpl on line 27 I really don't think this is anything. I have compared this line of code with a fresh install and it is identical.
2020-08-29 16:54:08 - PHP Notice: Undefined variable: help_issue in /home/322004.cloudwaysapps.com/jkvpkrpzef/public_html/catalog/view/theme/default/template/payment/pp_payflow.tpl on line 67 I really don't think this is anything. I have compared this line of code with a fresh install and it is identical.
2020-08-29 16:54:08 - PHP Notice: Undefined variable: text_loading in /home/322004.cloudwaysapps.com/jkvpkrpzef/public_html/catalog/view/theme/default/template/payment/pp_payflow.tpl on line 76
Line 76 was originally: <input onclick="return
gtag_report_conversion('https://store.ruddercraft.com/index.php?route=checkout/checkout')" type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary" />but I reverted it to the original code from the fresh install and it still is having issues: <input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary" />
2020-08-29 16:47:41 - PHP Notice: Error: MAIL FROM not accepted from server! in /home/322004.cloudwaysapps.com/jkvpkrpzef/public_html/system/library/mail.php on line 328
Here is the code snippet from this, which is identical to the fresh install:
if (substr($reply, 0, 3) != 250) {
trigger_error('Error: MAIL FROM not accepted from server!');
exit();
}I am thinking that the problem is that the mail server is not responding correctly, causing the button to not redirect when order placed. SMTP has been installed on the domain. I have added it to the store (subdomain: store.ruddercraft.com) as well.
What am I missing?
I found this on another forum, but it did not work.
GO TO \catalog\controller\information\contact.php and locate:
$mail->setFrom($this->request->post['email']);
$mail->setSender($this->request->post['name']);
Replace with:
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->request->post['email']);0 -
Hello,
First of all you have to fix all these errors by adding respective text variables to a main language file.
The 'Mail from' issue should be fixed as well. Check the email smtp settings, make sure that they can are valid. You can try the same smtp settings in any email program like 'Mozilla Thunderbird' or 'Thebat'.
The log has to contain no errors. After that, the functionality should work as it is supposed to do. Or the issue can be investigated further by logging payment gateway requests and responses.
Kind regards
Karapuz
0
Please sign in to leave a comment.
Comments
7 comments