Error map

TypeError Fatal error: Uncaught TypeError: foo(): Argument #1 ($x) must be of type int, string given

PHP · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

TypeError — Fatal error: Uncaught TypeError: foo(): Argument #1 ($x) must be of type int, string given (PHP)TypeErrorCall to undefined function — PHP Fatal error: Uncaught Error: Call to undefined function (PHP)Call to undefined f…Unable to cast object of type — System.InvalidCastException: Unable to cast object of type 'X' to type 'Y' (.NET)Unable to cast obje…Call to member function on null — Fatal error: Uncaught Error: Call to a member function x() on null (PHP)Call to member func…ArgumentCountError — Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 1 passed and exactly 2 expected (PHP)ArgumentCountErrorUnsupported operand types — Fatal error: Uncaught TypeError: Unsupported operand types: string + int (PHP)Unsupported operand…Call to undefined function (WordPress) — WordPress: Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() / add_action() / get_header() (WordPress)Call to undefined f…Cannot redeclare — Fatal error: Cannot redeclare function foo() (previously declared in …) (PHP)Cannot redeclareImplicit float to int — Deprecated: Implicit conversion from float 2.5 to int loses precision (PHP)Implicit float to i…Allowed memory size exhausted — PHP Fatal error: Allowed memory size of X bytes exhausted (PHP)Allowed memory size…Array to string conversion — Warning: Array to string conversion (PHP)Array to string con…Cannot use object as array — Fatal error: Uncaught Error: Cannot use object of type stdClass as array (PHP)Cannot use object a…Cannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert valu…500 — HTTP 500 Internal Server Error (HTTP)500Class not found — PHP Fatal error: Uncaught Error: Class "X" not found (PHP)Class not foundHeaders already sent — Warning: Cannot modify header information - headers already sent (PHP)Headers already sentAttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorClassCastException — java.lang.ClassCastException: class A cannot be cast to class B (Java)ClassCastExceptionIllegalArgumentException — java.lang.IllegalArgumentException (Java)IllegalArgumentExce…NullReferenceException — System.NullReferenceException: Object reference not set to an instance of an object (.NET)NullReferenceExcept…Maximum execution time — PHP Fatal error: Maximum execution time of 30 seconds exceeded (PHP)Maximum execution t…Parse error — PHP Parse error: syntax error, unexpected … (PHP)Parse errorCritical error — WordPress: There Has Been a Critical Error on This Website (WordPress)Critical errorDivisionByZeroError — Fatal error: Uncaught DivisionByZeroError: Division by zero (PHP)DivisionByZeroErrormysqli_sql_exception — Fatal error: Uncaught mysqli_sql_exception (PHP)mysqli_sql_exceptionDeprecated null to internal — Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated (PHP)Deprecated null to …Dynamic property deprecated — Deprecated: Creation of dynamic property Foo::$bar is deprecated (PHP)Dynamic property de…Call to undefined function create_function() — WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each() (WordPress)Call to undefined f…Maximum function nesting — Fatal error: Maximum function nesting level of '256' reached, aborting! (PHP)Maximum function ne…Installation failed: Could not create directory — WordPress: Installation failed: Could not create directory (plugin/theme install or update) (WordPress)Installation failed…Please enter your FTP credentials — To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed (WordPress)Please enter your F…failed to open stream — Warning: include(x.php): Failed to open stream: No such file or directory (PHP)failed to open stre…Uncaught Exception — Fatal error: Uncaught Exception: message in file.php:12 (PHP)Uncaught ExceptionPlugin could not be activated because it triggered a fatal error — WordPress: Plugin could not be activated because it triggered a fatal error (WordPress)Plugin could not be…DEP0005 — DeprecationWarning: Buffer() is deprecated due to security and usability issues (DEP0005) (Node.js)DEP0005the attribute version is obsolete — WARN: the attribute `version` is obsolete, it will be ignored (Docker)the attribute versi…E0308 — Rust: error[E0308]: mismatched types — expected `X`, found `Y` (Rust)E0308OOMKilled — Kubernetes: OOMKilled (exit code 137) (Kubernetes)OOMKilled413 — HTTP 413 Content Too Large (Request Entity Too Large) (HTTP)413OutOfMemoryError — java.lang.OutOfMemoryError: Java heap space (Java)OutOfMemoryErrorERR_INVALID_ARG_TYPE — TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined (Node.js)ERR_INVALID_ARG_TYPEUndefined variable — Warning: Undefined variable $x (PHP)Undefined variableComposer memory — Composer: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (PHP)Composer memoryTS2322 — TS2322: Type 'X' is not assignable to type 'Y' (TypeScript)TS2322TS2564 — TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor (TypeScript)TS2564TS7016 — TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type. (Node.js)TS7016TS2304 — TS2304: Cannot find name 'x'. (Node.js)TS2304TS2339 — TS2339: Property 'x' does not exist on type 'Y'. (Node.js)TS2339

Directly related (12)

Call to undefined functionPHP

PHP Fatal error: Uncaught Error: Call to undefined function

PHP can’t find the function you called — usually a missing extension, missing include, or namespace issue.

Unable to cast object of type.NET

System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'

An explicit cast failed because the object’s runtime type isn’t the target type.

Call to member function on nullPHP

Fatal error: Uncaught Error: Call to a member function x() on null

Code called a method on a variable that is null instead of an object.

ArgumentCountErrorPHP

Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 1 passed and exactly 2 expected

A function was called with fewer arguments than it requires.

Unsupported operand typesPHP

Fatal error: Uncaught TypeError: Unsupported operand types: string + int

An arithmetic or array operator was used with incompatible types (PHP 8 is stricter than PHP 7).

Call to undefined function (WordPress)WordPress

WordPress: Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() / add_action() / get_header()

Code called a WordPress function before WordPress loaded, or a theme/plugin file was opened directly.

Cannot redeclarePHP

Fatal error: Cannot redeclare function foo() (previously declared in …)

The same function (or class) was defined twice — usually a file included more than once.

Implicit float to intPHP

Deprecated: Implicit conversion from float 2.5 to int loses precision

PHP 8.1+ warns when a float with a fractional part is silently converted to int (array keys, % operator, int parameters).

Allowed memory size exhaustedPHP

PHP Fatal error: Allowed memory size of X bytes exhausted

The script tried to use more memory than PHP’s `memory_limit` allows.

Array to string conversionPHP

Warning: Array to string conversion

An array was used where a string is expected — echoing it, concatenating it, or passing it to a string function.

Cannot use object as arrayPHP

Fatal error: Uncaught Error: Cannot use object of type stdClass as array

Code used array syntax (`$x['key']`) on an object.

Cannot convert value of typeiOS

Swift: Cannot convert value of type 'X' to expected argument type 'Y'

The value’s type doesn’t match what the function or property expects.

Two steps away (35)

500HTTP

HTTP 500 Internal Server Error

The server hit an unexpected condition — usually an unhandled exception or misconfiguration in the application.

Class not foundPHP

PHP Fatal error: Uncaught Error: Class "X" not found

PHP couldn’t load the class — autoloading failed, the namespace is wrong, or the dependency isn’t installed.

Headers already sentPHP

Warning: Cannot modify header information - headers already sent

You called `header()`, `setcookie()` or `session_start()` after output had already been sent to the browser.

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

ClassCastExceptionJava

java.lang.ClassCastException: class A cannot be cast to class B

An object was cast to a type it isn’t.

IllegalArgumentExceptionJava

java.lang.IllegalArgumentException

A method rejected an argument value as invalid.

NullReferenceException.NET

System.NullReferenceException: Object reference not set to an instance of an object

Code dereferenced a variable that is `null` — the .NET equivalent of Java’s NullPointerException.

Maximum execution timePHP

PHP Fatal error: Maximum execution time of 30 seconds exceeded

The script ran longer than `max_execution_time` and PHP stopped it.

Parse errorPHP

PHP Parse error: syntax error, unexpected …

PHP can’t parse the file because of a syntax mistake — the real error is often on the line before the one reported.

Critical errorWordPress

WordPress: There Has Been a Critical Error on This Website

A PHP fatal error (usually from a plugin or theme) stopped WordPress; the real error is in the debug log or recovery-mode email.

DivisionByZeroErrorPHP

Fatal error: Uncaught DivisionByZeroError: Division by zero

Code divided by zero (or used modulo by zero) — PHP 8 throws instead of warning.

mysqli_sql_exceptionPHP

Fatal error: Uncaught mysqli_sql_exception

A MySQLi query or connection failed; since PHP 8.1 MySQLi throws exceptions by default.

Deprecated null to internalPHP

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated

PHP 8.1+ warns when null is passed to a built-in function that expects a string/int.

Dynamic property deprecatedPHP

Deprecated: Creation of dynamic property Foo::$bar is deprecated

PHP 8.2+ deprecates creating properties that aren’t declared in the class.

Call to undefined function create_function()WordPress

WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()

An old plugin/theme uses functions removed in PHP 8 (create_function, each), so the site breaks after a PHP upgrade.

Maximum function nestingPHP

Fatal error: Maximum function nesting level of '256' reached, aborting!

Recursion went deeper than Xdebug’s max_nesting_level allows (or PHP crashed with a segfault without Xdebug).

Installation failed: Could not create directoryWordPress

WordPress: Installation failed: Could not create directory (plugin/theme install or update)

WordPress can’t write to wp-content/plugins, themes or upgrade — ownership/permissions or disk space.

Please enter your FTP credentialsWordPress

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed

WordPress can’t write directly to its files (ownership differs from the PHP user), so it falls back to asking for FTP details.

failed to open streamPHP

Warning: include(x.php): Failed to open stream: No such file or directory

PHP couldn’t open a file for include/require/fopen — wrong path, missing file, or no permission.

Uncaught ExceptionPHP

Fatal error: Uncaught Exception: message in file.php:12

An exception was thrown and nothing caught it, so PHP stopped the script.

Plugin could not be activated because it triggered a fatal errorWordPress

WordPress: Plugin could not be activated because it triggered a fatal error

Activating the plugin caused a PHP fatal error — usually PHP version incompatibility, a conflict with another plugin/theme, or mi…

DEP0005Node.js

DeprecationWarning: Buffer() is deprecated due to security and usability issues (DEP0005)

Code (yours or a dependency) uses the deprecated new Buffer() constructor.

the attribute version is obsoleteDocker

WARN: the attribute `version` is obsolete, it will be ignored

A harmless Compose v2 warning: the top-level version: line in docker-compose.yml is no longer used.

E0308Rust

Rust: error[E0308]: mismatched types — expected `X`, found `Y`

A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…

OOMKilledKubernetes

Kubernetes: OOMKilled (exit code 137)

The container used more memory than its limit, and the kernel killed it.

413HTTP

HTTP 413 Content Too Large (Request Entity Too Large)

The request body is bigger than the server is willing to accept — usually a file upload over the configured limit.

OutOfMemoryErrorJava

java.lang.OutOfMemoryError: Java heap space

The JVM ran out of heap memory and garbage collection couldn’t free enough.

ERR_INVALID_ARG_TYPENode.js

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

A Node API got an argument of the wrong type — usually undefined because an env var or config value is missing.

Undefined variablePHP

Warning: Undefined variable $x

PHP read a variable that was never assigned in the current scope.

Composer memoryPHP

Composer: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

Composer ran out of memory while resolving or installing dependencies.

TS2322TypeScript

TS2322: Type 'X' is not assignable to type 'Y'

You assigned a value whose type doesn’t match the declared type of the variable, property or return value.

TS2564TypeScript

TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor

With strictPropertyInitialization on, a class property declared without ? or a default isn’t set in the constructor.

TS7016Node.js

TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type.

The JavaScript package has no TypeScript types bundled and no @types package installed.

TS2304Node.js

TS2304: Cannot find name 'x'.

TypeScript doesn’t know an identifier — a missing import, missing type definitions (e.g. for Node or Jest globals), or a typo.

TS2339Node.js

TS2339: Property 'x' does not exist on type 'Y'.

TypeScript’s type for the object doesn’t include that property.