User Tools

Site Tools


faq:parse-error-troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:parse-error-troubleshooting [2013/12/16 06:22]
Alia
faq:parse-error-troubleshooting [2013/12/16 07:54] (current)
Alia Approved
Line 1: Line 1:
 ====== Troubleshooting "Parse Error" ====== ====== Troubleshooting "Parse Error" ======
  
-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( javascript in particular) ​added to Custom HTML widgets. ​+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. ​
  
 {{:​faq:​parse_error.png?​300|}} {{:​faq:​parse_error.png?​300|}}
  
-=====Debug  tools=====+=====Firebug=====
  
-This documentation uses [[https://​getfirebug.com/​|Firebug]] as a debug tool.Alternatively you can use native [[https://​developers.google.com/​chrome-developer-tools/​|debugger]] that comes with Google Chrome.+This documentation uses [[https://​getfirebug.com/​|Firebug]] as a debug tool.  
 +Alternatively you can use native [[https://​developers.google.com/​chrome-developer-tools/​|debugger]] that comes with Google Chrome
 +Parse error discussed in this documentation ​ appears when user signs in.
  
-To find out which plugin/​piece of code is causing parse error:+Troubleshooting steps:
  
-  ​Open the page where parse error happens in Firefox. +  ​Open the page where parse error happens in Firefox. In this case sign in
-  ​[[https://​getfirebug.com/​enable|Enable]] Firebug ​in your browser. +  ​[[https://​getfirebug.com/​enable|Enable]] Firebug.Choose ​**Console >All**  in Firebug'​s panel:
-  - Choose Console >​All ​ in Firebug'​s panel+
-      {{:faq:​firebug_console.png?​300|}}. +
-  - Reproduce parse error message. Example: if you get parse error when signin in, then sign in. +
-  - Once parse error is reproduced, find parse error entry in Firebug'​s error log. Pay attention to the action script tried to execute before the parse error message. +
-      {{:​faq:​parse_error_firebug.png?​300|}} +
-       +
-Open details of this action using "​+"​sign >>​navigate to "​Response"​ section. Here you will see detailed information on what went wrong. Read the response carefully, look for the file/​function names.+
  
-In this example ​"​Groups"​ plugin caused the parse error since GROUPS_BOL_SERVICE - is the class that belongs to this plugin.+{{:​faq:​firebug_console2.png?​300|}} 
 + 
 +  * Reproduce parse error message. In this case sign in as any user. 
 +  * 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** 
 +{{:​faq:​parse_error_firebug.png?​300|}} 
 + 
 +  *  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.
  
 {{:​faq:​screenshot-19.png?​300|}} {{:​faq:​screenshot-19.png?​300|}}
  
 +|**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
  
faq/parse-error-troubleshooting.1387174938.txt.gz · Last modified: 2015/09/15 09:10 (external edit)