I didn't remember I selected somewhere in refresh clear cache section, and now my site is displaying html code on web browser.
<!DOCTYPE html> <html dir="ltr" lang="en"> <head> <meta charset="UTF-8" /> <title>Administration</title>......
Both Administration and User section are same.
How can I solve this error.
Many thanks,
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
It is running on XAMPP, Windows 10.
I remember that:
I have no changed in header file.
I only press buttons on top right to clear cached and refresh, after that I see that problem.
Thanks again
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I have tried to open html inspect and see one strange thing.
All html template content are in html, body tag. I feel this is very strange, because I open tamplate files but not found those html body tags.
I took a screenshot.

HAPPY NEW YEAR.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Also you can test with Default theme.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I have checked in header and not seen different thing. I have trouble why html teamplate content has nested in <html> <body> ? So how to delete tags <html><body>
?
Thanks,

Check with another editor and check with Default theme if is the same issue.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Maybe is an issue with XAMP. Try to upload on real hosting...
What errors are in Console?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
This is not META encoding, but the actual file encoding.
Backup and learn how to recover before you make any changes!
viewtopic.php?f=202&t=215388#p772793sw!tch wrote: ↑Tue Dec 31, 2019 5:30 pmMy guess is its file encoding adding whitespace or special characters which is breaking the output. Open the header twig file with something like sublime or PHPStorm and check the encoding for your twig files. See if its UTF-8.
This is not META encoding, but the actual file encoding.
Redundancy.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I have tried top clear all html code in file my theme's home.twig and tried to add small code <html><body>hello</body></html> into home.twig
Result is same, html still output. I think Twig has problem, because i remember I changed in it to before I logged into admin to clear cache in top right.
Problem is I copied the Twig library (original) to site, but it was not affected.
Users browsing this forum: No registered users and 13 guests