As the complexity of a MODx site increases, degugging can become very difficult.
Messages can lead the developer to investigate the code at the wrong location.
The purpose of this thread is to list common errors and possible causes.
It is especially dedicated to MODx snippet and plugin developers.
This thread comes as complement of
http://wiki.modxcms.com/index.php/Common_snippet_error_messages_and_their_meaning and should be easier to edit by everyone.
Posting rules
- Post only after you found the solution to the bug.
- Be brief.
- Avoid snippet-specific errors; try to list general errors and possible cause(s).
Errors by category
[table]
[tr][td]
MODx parse errors[/td][td][/td][td][/td][/tr]
[tr][td]
Error[/td][td]
Possible cause[/td][td]
Example error[/td][/tr]
[tr][td]`[+id+]` is not numeric and may not be passed to makeUrl()[/td]
[td]- Opening parenthesis in excess in a snippet (if PHx is disabled)[/td]
[td]
if ($register_lb_css && (($service=='' )
[/td]
[/tr]
[tr][td]
Fatal errors[/td][td][/td][td][/td][/tr]
[tr][td]
Error[/td][td]
Possible cause[/td][td]
Example error[/td][/tr]
[tr][td]Allowed memory size of ... bytes exhausted (...) in document.parser.class.inc.php on line 1300[/td]
[td]- Is PHx on? Opening parenthesis in excess in a snippet. Temporarily disable PHx and see which error you get.[/td]
[td]
if ($register_lb_css && (($service=='' )
[/td]
[/tr]
[/table]
I’ll try to update above table as I find time, basing on your contributions below.