When a PHP error occurs in jQuery Mobile, jQuery Mobile issues a popup box that reads "Page Error."

This is great, but not conducive to debugging because I can't see what the error is. How can I see the PHP error in jQuery Mobile?

  • 1
    Welcome to SQA, David. Are you asking, "How do I use jQuery Mobile to see the PHP error?", or "How do I see the PHP error that jQuery Mobile encountered?" – user246 Feb 24 '12 at 17:43
  • Thanks, how do I see the PHP error that jQuery Mobile encountered? – David Faux Feb 24 '12 at 17:56

Check the log

Typically, all php errors are logged. The location of the log depends on your operating system. For example, on Ubuntu and Mac OS the log is located at /var/log/php/errors.log. So, in a terminal just tail /var/log/php/errors.log to see the latest errors.

You can find out where your log is and change the location of the log by searching your php.ini file for error_log option. Here is a tutorial on how to do this on unix-like systems: http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html

| improve this answer | |
  • Thank you, I can see the errors in /var/log/php/errors.log. – David Faux Feb 24 '12 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.