Menu

Debug bug in 0.7.0

Help
2010-03-25
2013-04-29
  • Jordan Snodgrass

    Trying out the new 0.7.0, I'm seeing debug statements all over my site.

    Line 892 seems to be the culprit:

    if (debugResponse) echo("<p>".str_ireplace("&","<br>",$strtosign)."<p>");
    

    debugResponse gets evaluated as a string, so the if will always be true, resulting in debug code all over the place.

     
  • Dan Myers

    Dan Myers - 2010-03-25

    Thanks.  I'll update the repository and post the fixed version as 0.7.1.

     
  • Jordan Snodgrass

    Thanks, also another issue with debugging, the __triggerError() method doesn't provide very much info if cURL barfs.  It just prints the error code and not the error message, which isn't very helpful.  I've fixed it by changing this line:

    trigger_error(sprintf("SimpleDB::%s(): %s", $functionname, $error['code']), E_USER_WARNING);
    

    To this:

    trigger_error(sprintf("SimpleDB::%s(): %s %s", $functionname, $error['code'], $error['message']), E_USER_WARNING);
    
     
  • Jordan Snodgrass

    Well that didn't work very well.  The line should be:

    trigger_error(sprintf("SimpleDB::%s(): %s %s", $functionname, $error['code'], $error['message']), E_USER_WARNING);
    
     
  • Jordan Snodgrass

    *sigh*

     
  • Jordan Snodgrass

    trigger_error(sprintf("SimpleDB::%s(): %s %s", $functionname, $error, $error), E_USER_WARNING);

     
  • Jordan Snodgrass

    Sorry for the spam, it's barfing on the 'code' key of the $error array

     
  • Dan Myers

    Dan Myers - 2010-03-25

    You can e-mail it to my sourceforge address if you want ;)

    I see what you mean, though.  I'll add that in, and check it in to the svn repository, but there probably won't be another official release for a while.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.