I would like to collect here 404 page error handling points. There are behaviour and core problems. The core problems exist now, the behaviour problems occurs after catalog actions (move, hide, delete).
- For all pages where need to log in before (products_reviews_write.php)
- Look at github commit acidvertigo 5baaf67d3b60c4f9e44278e9a6ee5da7d26efbdd (split page results)
- Moved catagories or products would be usefull a redirection addon (hidden categories)
- Non-exist (invalid) parameters (example: uninstall language collection or non exist currency)
filter_id
sort
page
currency
action
language
and so on
We should do a page handling class or function library later. Probably header tag module handling process would be usefull. In parameter handling could use an error flag and finaly redirect the page if error flag exist.
Example but not figured out:
// error_flag is global
$error_flag = array();
if ($parameter == false) {
$error_flag = array(head => '404',
info => 'blabla'
page=>''
);
}
if (sizeof( $error_flag)>0) {
//do header action
//redirect and so on
}
Previous error reports:
http://forums.oscommerce.com/tracker/issue-444-non-existing-links-containing-indexphp-do-not-return-404-file-not-found/
Thanks for more advices
Gergely



Find content
Male
