Hello,
I can't seem to figure out why my opencart not_found page is not working.
I have ipage for a hosting company and they have a default 404 page. To turn the ipage default 404 page off, it must be changed to the custom 404 page in ipage's cpanel.
So I change the 404 in ipage's cpanel it to:
catalog/controller/error/not_found.php
But then I get an internal error on my entire site, not just error pages. It brings the whole site down.
Has anyone else had this problem and have a solution?
Thanks,
The
is not a RUNTIME Internet Page, it's just an 'interal' Script-Routine-File, requiring the OC-'Surrounding' to make it work. It, very simply spoken, actually serves the sole purpose to, along with others, serve a single Line message on the screen, telling the visitor, that the Page cannot be found.
Look here and try this:
and MODIFY:
TO:
Originally, the Error-Message-'Field' is preformated as CSS-class 'content' , you could re-format it internally within the above Script-Sample from <div class="content">HERE TO HERE</div>. Just in case...
Then, OC produces an Error Massage according to your Needs.
Or then, create in individual HTML-Page and upload it to your Server, then, link the cpanel Error-Handling to that Page.
Ernie
Code: Select all
>>shop\catalog\controller\error\not_found.php<<
Look here and try this:
Code: Select all
shop\catalog\view\theme\default\template\error\not_found.tpl
Code: Select all
<h1><?php echo $heading_title; ?></h1>
<div class="content"><?php echo $text_error; ?></div>
<div class="buttons">
<div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
</div>
Code: Select all
<h1>WRITE YOUR ERROR PAGE TITLE HERE</h1>
<div class="content">just place here, whatever you like.a TABLE Section, an IMAGE / simple TEXT / WHATEVER</div>
<div class="buttons">
<div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
</div>
Then, OC produces an Error Massage according to your Needs.
Or then, create in individual HTML-Page and upload it to your Server, then, link the cpanel Error-Handling to that Page.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Thanks Ernie,
I'm know how to customize the not found page. But I'm having trouble because ipage has a default 404 page that they use, and to turn that off I have to change the link in the cpanel. Maybe I'm not linking to the right place?
When I linked it shop\catalog\controller\error\not_found.php I got an error message throughout the whole website.
Which link should I be submitting? Would I use this link? shop\catalog\view\mytheme\default\template\error\not_found.tpl
Thanks,
I'm know how to customize the not found page. But I'm having trouble because ipage has a default 404 page that they use, and to turn that off I have to change the link in the cpanel. Maybe I'm not linking to the right place?
When I linked it shop\catalog\controller\error\not_found.php I got an error message throughout the whole website.
Which link should I be submitting? Would I use this link? shop\catalog\view\mytheme\default\template\error\not_found.tpl
Thanks,
Hello,
I figured out the problem, for whatever reason, the original .htaccess was not on the server, but had been modified. When replaced with the original from the download package, everything worked great!
I figured out the problem, for whatever reason, the original .htaccess was not on the server, but had been modified. When replaced with the original from the download package, everything worked great!
Who is online
Users browsing this forum: No registered users and 6 guests