faq:troubleshooting:troubleshooting-parse-error

How to troubleshoot Parse Error?

Parse errors happen when the code doesn't conform to the syntax or language rules for the language your script is working in. In SkaDate, parse error is known to be caused by third party plugins and custom code added to Custom HTML widgets.

Firebug

This documentation uses Firebug as a debug tool. Alternatively you can use a native debugger that comes with Google Chrome. Parse error discussed in this documentation appears when user signs in.

Troubleshooting steps:

  • Open the page parse error occurs on in Firefox. In this case it's a sign in page.
  • Enable Firebug.Choose Console >All in Firebug panel:

  • Reproduce the parse error message. In this case sign in as any user.
  • Once parse error is reproduced, find parse error entry in the Firebug error log. Parse error is always preceded by certain actions that caused it. In this case this action is POST…/base/ajax-sign-in

  • Open details of this POST using + sign next to it. Navigate to Response section. Here you will see the response script received from your server. It will contain the error message that caused parse error.If you are not sure what errors mean, contact SkaDate support team for assistance. In this case Groups plugin caused the parse error since GROUPS_BOL_SERVICE - is the method that belongs to this plugin.

Note: Firebug might not show the actual error message within the Response section if error_reporting is disabled on your server.

Other tools

  • Enable DEBUG mode in config.php file.
  • Check your server error logs
  • Deactivate all of your plugins one by one. Try to reproduce parse error after each deactivation.
  • Remove all Custom HTML widgets (especially if they contain JavaScript code) one by one as well. Try to reproduce parse error after removing each widget.
  • Remove any custom script (especially JavaScript) added to SkaDate .html and .php files
faq/troubleshooting/troubleshooting-parse-error.txt · Last modified: 2017/06/07 09:11 by 127.0.0.1