Ad Space — Top Banner

PHP Error Codes

PHP errors explained in plain English. Find your error below.

Error Codes

500 Internal Server Error (PHP) PHP Programming Language A 500 Internal Server Error means something went wrong on the server, but the … Composer error PHP Programming Language Composer is PHP's package manager — it downloads and manages the third-party … CURL error PHP Programming Language A PHP cURL error means your script tried to make an HTTP request to a URL and … Fatal error: Allowed memory size exhausted PHP Programming Language This error means your PHP script used more memory than PHP was configured to … Fatal error: Call to a member function on null PHP Programming Language This error means you tried to call a method on a variable that is null — meaning … Fatal error: Call to undefined function PHP Programming Language This error means PHP tried to call a function but could not find it anywhere. … Fatal error: Cannot redeclare PHP Programming Language This error means PHP found two definitions of the same function or class with … Fatal error: Class not found PHP Programming Language This error means PHP tried to use a class — create an object, extend it, or call … Fatal error: Maximum execution time exceeded PHP Programming Language This error means your PHP script took longer to run than PHP allows. The default … Fatal error: Out of memory PHP Programming Language PHP's 'Out of memory' fatal error means the server itself ran out of physical … JSON decode error PHP Programming Language PHP's json_decode() function returns null when it cannot parse the JSON you gave … Notice: Undefined index PHP Programming Language This notice appears when your PHP code tries to access an array element using a … Notice: Undefined offset PHP Programming Language Undefined offset means you tried to access a numbered (numeric) position in an … Parse error: syntax error PHP Programming Language A PHP syntax error means PHP tried to read your code and found something it … PDOException PHP Programming Language A PDOException is an error thrown by PHP's PDO database library. PDO (PHP Data … TypeError PHP Programming Language A TypeError is thrown when a function receives an argument of the wrong data … Warning: Array to string conversion PHP Programming Language This warning happens when PHP tries to use an array as if it were a string. For … Warning: Cannot modify header information PHP Programming Language This warning means PHP tried to send an HTTP header — like a redirect or a … Warning: count() expects parameter 1 to be array or countable PHP Programming Language This warning means you called count() on something that is not an array or … Warning: Division by zero PHP Programming Language This warning appears when your PHP code tries to divide a number by zero. … Warning: file_get_contents() failed to open stream PHP Programming Language This warning means PHP tried to read a file or URL with file_get_contents() but … Warning: include(): Failed opening PHP Programming Language This warning means PHP tried to include or require a file but could not find it … Warning: mysql_connect() is deprecated PHP Programming Language This warning means your PHP code is using the old 'mysql_' functions to connect … Warning: session_start() — Session already started PHP Programming Language This warning means session_start() was called more than once in your PHP script … Warning: Undefined array key PHP Programming Language This warning means you tried to access an array element using a key that does … Warning: Undefined variable PHP Programming Language This warning means you tried to use a variable that has never been given a …