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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Disabled forum message saving in GLOBALS.php with \r\n [message #166617] Sun, 29 January 2012 04:40 Go to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

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.

Re: Disabled forum message saving in GLOBALS.php with \r\n [message #166618 is a reply to message #166617] Sun, 29 January 2012 09:10 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
I remember a similar problem in older releases. I trust it would be a problem on newer releases.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Oct 19 03:31:03 EDT 2017

Total time taken to generate the page: 0.00564 seconds