php errors by wordPress

Here’s a log and brief explanation of some of the php errors wordPress throughs at you.

Fatal error: Allowed memory size of 33554432 bytes exhausted

You can usually resolve this by adding the below to your wp-config file.

Cannot modify header information

Was a tricky error. I finally discovered the problem related to a gravity forms stylesheet enqueue. For some reason it triggered “headers already sent error” error in wp-includes/general-template line 377.

Use of undefined constant is_home

was caused by the wordpress conditional tag missing the it’s parentheses.

syntax error unexpected T_BOOLEAN_OR

Error was caused by the parentheses in the wrong position on a conditional statement using an OR operator. The parentheses below are in the correct place.

Parse error: syntax error, unexpected T_ECHO

Missing colon after echo statement.

Notice: Array to string conversion in /Applications/MAMP/htdocs/yoursite/wp-content/themes/yourtheme/functions.php on line 790

This error comes from missing the array index (missing the number in square brakets).

Comments are closed.