Support Forums » Issues

Please Login appears at the bottom of the page

(3 posts)
  1. If PHP error/notice messages get into the (XML) response stream headed back to the browser, the XMLHttpRequest object can throw a parse exception. This looks (to synapp2.js) like an authentication failure and the login message appears.

    With version 0.1.7, there is at least one place in action.php that throws a warning (notice) under some conditions (line 90 if you must know). It didn't get caught because a developer, who wasn't getting enough sleep, left the HTML display_errors messages turned off in his PHP configuration while he was testing. (He as been severely disciplined and will have time to think about this while he heals and learns to type with nine fingers.)

    In the mean time, if you see this problem, try turning off display_errors or setting the error_reporting level to E_ALL & ~E_NOTICE

    Posted 4 months ago #
  2. A review of the recommendations for PHP configuration confirms that display_errors should be off {false, '0'} on any production server. The default error level of PHP is (or should be) E_ALL & ~E_NOTICE, according to the PHP Manual. But, since PHP 5.3 there are now DEPRECATED messages. This has led to a few tweaks that will help SynApp2 run more quietly, in versions beyond 0.1.7.

    Here's a firm recommendation to adjust your PHP configuration to turn off display_errors altogether. It’s easy to look in the PHP log file to see what’s going on. You may have to enable that with log_errors={true,1}. Having error display turned on, for anything other than serious debug sessions, is likely to cause trouble. There's almost always a chance that some code, somewhere, is going to trip a message, especially over time and with different (newer) versions of PHP.

    Posted 4 months ago #
  3. SynApp2 version 1.8.0 (beta 1) has improved error handling and reporting. You should update to the latest version.

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.