Jump to content

Page not found report not working

Recommended Posts

I am having a major issue! My page not found report is showing that no pages are registered but when i go to my visits stats, it looks like this:



it seems like close to half of my visitors are on page not found. I go through my website and cant regenerate it, all i can think is maybe somethings wrong with external links but doesnt make sense why half of our visitors would get it.


Any help would help greatly with this issue. Im not sure when this started but its really causing a hit on this website.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

in modules/pagesnotfound/pagesnotfound.php search the line


if (strstr($_SERVER['PHP_SELF'], '404.php') && !strstr($_SERVER['REQUEST_URI'], '404.php'))


and change into


if (Context::getContext()->controller->php_self == '404' || (strstr($_SERVER['PHP_SELF'], '404.php') && !strstr($_SERVER['REQUEST_URI'], '404.php')))

Edited by shopimport.nl (see edit history)
Link to comment
Share on other sites

  • Create New...