Shopping Cart Operations > Built-in Features

Admin Side, Edit Email Templates, all templates are page not found

(1/3) > >>

Huijun Sun:
Hi,

My AbanteCart version is 1.3.0.
I tried to edit order confirmation email templates by Design ==> email Templates ==> "storefront_order_confirm"==> Edit.
Then it shows "THE PAGE YOU REQUESTED CANNOT BE FOUND!"

So I tried to edit all templates, all with the same result.

The error message in the error log:
2021-06-29 3:26:02 - database error: AbanteCart core v.1.3.0 SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error No: 1064
SQL: SELECT * FROM ac_email_templates WHERE text_id='admin_order_status_notify' AND language_id=1 AND store_id=
PHP call stack:
#0 /home/lelk0ldjzkfk/public_html/core/lib/db.php:102
#1 /home/lelk0ldjzkfk/public_html/core/engine/extensions.php:1151
#2 /home/lelk0ldjzkfk/public_html/core/engine/extensions.php:372
#3 /home/lelk0ldjzkfk/public_html/core/lib/db.php:68
#4 /home/lelk0ldjzkfk/public_html/admin/model/design/email_template.php:145
#5 /home/lelk0ldjzkfk/public_html/admin/controller/pages/design/email_templates.php:214
#6 /home/lelk0ldjzkfk/public_html/admin/controller/pages/design/email_templates.php:184
#7 /home/lelk0ldjzkfk/public_html/core/engine/dispatcher.php:287
#8 /home/lelk0ldjzkfk/public_html/core/engine/dispatcher.php:322
#9 /home/lelk0ldjzkfk/public_html/core/engine/page.php:108
#10 /home/lelk0ldjzkfk/public_html/core/engine/router.php:193
#11 /home/lelk0ldjzkfk/public_html/core/engine/router.php:86
#12 /home/lelk0ldjzkfk/public_html/index.php:97
in <b>/home/lelk0ldjzkfk/public_html/core/database/amysqli.php</b> on line <b>119</b>

I reuploaded all files in this error message but still get the same result.
Please help!!
Thanks!!


abolabo:
To solve please replace your file with this
https://github.com/abantecart/abantecart-src/blob/dd57c53ece4ad68b38d053f65f9af8bef02b96b8/public_html/admin/model/design/email_template.php
and let us know about result.

Huijun Sun:
Hi Abolabo


I got another error message on the webpage, no error message in the error log.

Error message:
This page isn’t working
Redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

I cleaned all my cookies but still not work.
Please advise.


Huijun

abolabo:

--- Quote from: Huijun Sun on June 29, 2021, 03:19:01 PM ---Hi Abolabo


I got another error message on the webpage, no error message in the error log.

Error message:
This page isn’t working
Redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

I cleaned all my cookies but still not work.
Please advise.


Huijun

--- End quote ---

This error not related to Model-file changes.
Try to disable some of 3d-party extensions and check. Usually redirect loop becomes from their

abolabo:
btw, what php version do you use? try latest

Navigation

[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Social Login Mod