Forum
Welcome, Guest
Please Login to access forum.
Re:"Custom 404 page contents" not working (1 viewing) 
Go to bottom
TOPIC: Re:"Custom 404 page contents" not working
#4209
bvp
Fresh Boarder
Posts: 7
User Offline
"Custom 404 page contents" not working Karma: 0  
When I activate "Custom 404 page contents" the content of "Custom contents" becomes only the title of the error page, not the content.

What can I do to fix this?

"404 page override mode" is on, "Custom contents type" is "HTML"

EDIT: Joomla 2.5.28!
 
Logged Logged  
  The administrator has disabled public write access.
#4211
John Dagelmore
Admin
Posts: 3873
User Online Now
Re:"Custom 404 page contents" not working Karma: 84  
Hi probably it depends on the template used,

check that the file error.php includes the call to the getMessage function as the default Protostar

$this->error->getMessage()

Cheers
 
Logged Logged  
  The administrator has disabled public write access.
#4213
bvp
Fresh Boarder
Posts: 7
User Offline
Re:"Custom 404 page contents" not working Karma: 0  
There is an error.php in the "system" template folder, which contains "$this->error->getMessage()" three times (title meta tag, title of error box and as a part of the content under "Technical info" ).

I guess I first have to create my own copy of the error.php in my template folder.

EDIT: OK, this works, but the possibilities are very limited, so I now use a completely different way of creating my own error document (via an article, modification of PHP code in error.php and in .htaccess).
 
Logged Logged  
  The administrator has disabled public write access.
Go to top