FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Disabled forum message saving in GLOBALS.php with \r\n (Gives "PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in GLOBALS.php)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Disabled forum message saving in GLOBALS.php with \r\n [message #166617] Sun, 29 January 2012 09:40 Go to previous message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma:
Senior Member

When I make changes that seem to save to the GLOBALS.php file my whole forum stops working.

Looking deeper I see the error:

PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in <full path>/GLOBALS.php

Looking at that file with VI I see a bunch of ^M<br /> in the DISABLED_REASON var.

I used Firefox 9.0.1 on PCLinuxOS to edit that Disabled reason. Actually this should not matter as I fix those line endings but then the error comes back next save to GLOBALS.php.

It seems DISABLED_REASON does not expect new lines and adds DOS line endings when doing so.

[Message index]
 
Read Message
Read Message
Previous Topic: Issue with consist.php
Next Topic: PHP Fatal error: Class 'DOMDocument' not found
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 18:54:31 GMT 2024

Total time taken to generate the page: 0.06060 seconds