Bug: Custom 404 Error Message not shown in Global Settings

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

Bug: Custom 404 Error Message not shown in Global Settings

Post by martin42 »

Site Admin / Global Settings

The Custom 404 Error Message works (you can save a message, then it will appear if users type in bad links). But, after pressing SUBMIT, you can't see your custom error message text on the Global Settings page!  Reloading the Global Settings page doesn't help: you still can't see the text!

The Site Down message text also can't be seen when you've saved it, but I haven't tried taking the site down to test.

Maybe this is a PostgresQL problem?  I'm not seeing any error messages in PHP.LOG or PGSQL.LOG.

Thanks
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Bug: Custom 404 Error Message not shown in Global Settings

Post by Ted »

This has already been fixed in svn.  Thanks!
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

FIXED! Bug: Custom 404 Error Message not shown in Global Settings

Post by martin42 »

Thanks for another swift response!  Sorry, should have DIFFed the source myself before posting!

Sure enough, the current SVN siteprefs.php fixes the problem...

Code: Select all

diff siteprefs-OLD.php siteprefs.php
19c19
< #$Id: siteprefs.php 1694 2005-05-18 01:27:16Z sjg $
---
> #$Id$
104c104
<       $sitedownmessagetemplate = get_site_preference('sitedownmessagetemplate');
---
>       #$sitedownmessagetemplate = get_site_preference('sitedownmessagetemplate');
148c148
<                       <p class="pageinput"><textarea class="pagetextarea" name="custom404" cols="" rows=""></textarea></p>
---
>                       <p class="pageinput"><textarea class="pagetextarea" name="custom404" cols="" rows=""><?php echo $custom404?></textarea></p>
174c174
<                       <p class="pageinput"><textarea class="pagetextarea" name="sitedownmessage" cols="" rows=""></textarea></p>
---
>                       <p class="pageinput"><textarea class="pagetextarea" name="sitedownmessage" cols="" rows=""><?php echo $sitedownmessage?></textarea></p>
175a176
>               <!--
193a195
>               -->
Thanks again :-)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Bug: Custom 404 Error Message not shown in Global Settings

Post by Ted »

No problem.  If I'd ever get 0.11 out the door, we wouldn't have these issues.  ;)
Post Reply

Return to “CMSMS Core”