Menu

#23 Sync fails if $debug is set to true

open
5
2003-10-22
2003-10-22
No

If you set $debug to true in client.php, the client fails
with the following error message:

The SyncIT service cannot connect to
goodsell.womble.org. The server sent back a bad
response.
The most likely explanation of this error is that the web
server is too busy.

Bad response: <br />
<b>Warning</b>: fputs(): supplied argument is not a
valid File-Handle resource in
<b>/var/www/html/syncit/client.php</b> on line
<b>226</b><br />
<br />
<b>Warning</b>: Cannot add header information -
headers already sent by (output started
at /var/www/html/syncit/client.php:226) in
<b>/var/www/html/syncit/client.php</b> on line
<b>39</b><br />

Discussion

  • Morbus Iff

    Morbus Iff - 2003-10-22
    • assigned_to: nobody --> morbus
     
  • Morbus Iff

    Morbus Iff - 2003-10-22

    Logged In: YES
    user_id=69804

    This can happen if the debug.log file is not set to the
    proper permissions (typically 664, though some installations
    will require 666). Out of the box, the debug.log file is
    644. Since PHP runs as the User of the webserver, and the
    webserver is usually set to something like wwwrun or nobody,
    644 isn't enough access.

    Change the permission, give it another go, and let us know.

     
  • James Gardiner

    James Gardiner - 2003-10-22

    Logged In: YES
    user_id=312106

    Changing the permissions fixed it. Thanks.

     

Log in to post a comment.