We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Troubleshooting parse error | Forum

Alia Team
Alia Dec 16 '13

OVERVIEW


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




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


WHAT TO DO:

1.Open the page where parse error happens in Firefox. In this case sign in.
2. Enable Firebug.Choose Console >All in Firebug's panel:


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



5.Open details of this POST using + sign next to it. Navigate to Response section. Here you will see 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 Oxwall 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
  • Check your server's 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 Oxwall's .html and .php files

Alia Team
Alia Dec 16 '13
Same instructions can be found at http://docs.oxwall.org/faq:parse-error-troubleshooting
This topic is sticky
This topic is locked