Page 1 of 1
[SOLVED] Save Product leads to 404 page not found (user self created bug in product description)
Posted: Sat Feb 22, 2025 4:38 am
by oggjay24
Ok guys be easy on me.. Migrated from one server to another. Everything worked fine afterwards. Then all the sudden when I edit product and click save it leads to the front end "Page not Found". I have checked both config.php files. I have looked at the .htaccess file. Everything looks fine. I have cleared all the caches. Nothing has changed from one server to the other. No SEO Extensions. What else do I need to look into..
Ver 3.0.4
Php 8.0
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 4:55 am
by oggjay24
Here is the page its looking for it that helps..
/index.php?route=catalog/product/edit&user_token=1Ads5evB9HWMAIGWmkXkxF7oU7WmrP5s&product_id=60
My Config:
// DIR
define('DIR_APPLICATION', '/home/opp/public_html/catalog/');
define('DIR_SYSTEM', '/home/opp/public_html/system/');
define('DIR_IMAGE', '/home/opp/public_html/image/');
define('DIR_STORAGE', '/home/opp/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
Admin Config:
// DIR
define('DIR_APPLICATION', '/home/opp/public_html/oppcontrol/');
define('DIR_SYSTEM', '/home/opp/public_html/system/');
define('DIR_IMAGE', '/home/opp/public_html/image/');
define('DIR_STORAGE', '/home/opp/storage/');
define('DIR_CATALOG', '/home/opp/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 5:30 am
by ADD Creative
Is the page not found OpenCart generated of server generated?
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 5:34 am
by oggjay24
ADD Creative wrote: ↑Sat Feb 22, 2025 5:30 am
Is the page not found OpenCart generated of server generated?
Opencart... I am assuming. Not a server error.. Nothing in logs. Server logs or Opencart logs..
Everything else on the site works, cart, checkout, etc..
Just cannot edit an old existing product. I can Add a new product and edit it.
Seems like something within the database got messed up. Just cannot find it.
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 6:56 am
by oggjay24
After more digging around. On my list of products the first page of the list fails. The second page of the product list works just fine..
What the heck is going on..
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 5:39 pm
by mehdicomp
i thinks your store has a error to save product .you can send admin information to ticket in my.opencart-ir.com to check your store to resolve your problem
Re: Save Product leads to 404 page not found.
Posted: Sat Feb 22, 2025 8:40 pm
by ADD Creative
oggjay24 wrote: ↑Sat Feb 22, 2025 5:34 am
ADD Creative wrote: ↑Sat Feb 22, 2025 5:30 am
Is the page not found OpenCart generated of server generated?
Opencart... I am assuming. Not a server error.. Nothing in logs. Server logs or Opencart logs..
Everything else on the site works, cart, checkout, etc..
Just cannot edit an old existing product. I can Add a new product and edit it.
Seems like something within the database got messed up. Just cannot find it.
Does the page not found have the OpenCart layout on the page, either front end of admin? If not and it just a blank page then is server generated.
If OpenCart generated, check you htaccess , by disabling it and check it's not caused by an extension by disabling them.
Re: Save Product leads to 404 page not found.
Posted: Sun Feb 23, 2025 12:15 am
by oggjay24
ADD Creative wrote: ↑Sat Feb 22, 2025 8:40 pm
oggjay24 wrote: ↑Sat Feb 22, 2025 5:34 am
ADD Creative wrote: ↑Sat Feb 22, 2025 5:30 am
Is the page not found OpenCart generated of server generated?
Opencart... I am assuming. Not a server error.. Nothing in logs. Server logs or Opencart logs..
Everything else on the site works, cart, checkout, etc..
Just cannot edit an old existing product. I can Add a new product and edit it.
Seems like something within the database got messed up. Just cannot find it.
Does the page not found have the OpenCart layout on the page, either front end of admin? If not and it just a blank page then is server generated.
If OpenCart generated, check you htaccess , by disabling it and check it's not caused by an extension by disabling them.
Yes its an opencart layout. Front end main storefront. Not admin. So yes, Opencart error..
Re: Save Product leads to 404 page not found.
Posted: Sun Feb 23, 2025 12:41 am
by ADD Creative
Try without any htaccess files. At least that way you will eliminate the issue being there.
You could also check your web browser's developer console for errors.
Re: Save Product leads to 404 page not found.
Posted: Wed Feb 26, 2025 10:21 am
by oggjay24
Finally Resolved.. It was a section of code within the product description. Thanks for all your input..
Re: Save Product leads to 404 page not found.
Posted: Wed Feb 26, 2025 12:58 pm
by OSWorX
oggjay24 wrote: ↑Wed Feb 26, 2025 10:21 am
Finally Resolved.. It was a section of code within the product description. Thanks for all your input..
Guess a "copy & paste" action .. otherwise I can not imagine how a code should be part of a simple description ..