How to check 404 error if no content found on pages

Sandeep Yadav Posted in Technical Support 8 years ago

Hi ,
Is there any variable to check 404 error on site. I want to customize page for that.

Replies
German Michael Zülsdorff Replied 8 years ago

See https://www.opensource-socialnetwork.org/wiki/view/1137/how-to-find-a-string-a-pattern-of-words-in-the-source-code

Please understand that the core team is unable to tell you the exact location of every var and function. Today you're asking for function a, tomorrow you might ask for function b ... and it'll never stop.

Use the documented procedure instead, and you'll find it's really simple and just a few steps.
Use a preferably unique search pattern, in this case
1. The page you requested which will lead you to the language file ossn\locale\ossn.en.php
2. page:error:text in the language file (besides 2 other language files) leads to ossn\system\plugins\default\pages\contents\error.php
And voila, there's the code you're searching for.