Error messages

This is the list of error messages, as found in die() and exit() expressions.

MessageFileLine
"Page does not exist: {$key}"
/system/src/Grav/Common/Page/Pages.php1293
sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))
/system/src/Grav/Framework/Cache/CacheTrait.php197
'Please enable the Exif extension for PHP or disable Exif support in Grav system configuration'
/system/src/Grav/Common/Helpers/Exif.php28
sprintf('Cache values must be array or Traversable, "%s" given', \is_object($values) ? \get_class($values) : \gettype($values))
/system/src/Grav/Framework/Cache/CacheTrait.php166
sprintf('Failed to read %s: %s'basename($this->filename), $e->getMessage( ))
/system/src/Grav/Common/File/CompiledFile.php81
'Cache key length must be greater than zero'
/system/src/Grav/Framework/Cache/CacheTrait.php296
sprintf('Unexpected end of template. Twig was looking for the following tags "case", "default", or "endswitch" to close the "switch" block started at line %d)'$lineno)
/system/src/Grav/Common/Twig/TokenParser/TwigTokenParserSwitch.php92
sprintf('Cache key must be string, "%s" given', \is_object($key) ? \get_class($key) : \gettype($key))
/system/src/Grav/Framework/Cache/CacheTrait.php289
'Argument should be either header variable name or array of parameters'
/system/src/Grav/Common/Page/Page.php2680
"Property '{$property}' does not exist in the object!"
/system/src/Grav/Framework/Object/Property/ObjectPropertyTrait.php133
'Invalid argument $key.'
/system/src/Grav/Common/Page/Collection.php211
"Property '{$property}' does not exist in the object!"
/system/src/Grav/Framework/Object/Property/ObjectPropertyTrait.php107
'Internal error'
/system/src/Grav/Common/Page/Pages.php708
sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))
/system/src/Grav/Framework/Cache/CacheTrait.php126
'Fatal error when creating page instances.'
/system/src/Grav/Common/Page/Pages.php1084
"Unknown comparison operator: " $comparison->getOperator( )
/system/src/Grav/Framework/Object/Collection/ObjectExpressionVisitor.php196
'First parameter must be URI'
/system/src/Grav/Common/Page/Types.php48
"Cannot unserialize '{$this->getType( )}': Bad data"
/system/src/Grav/Framework/Object/Base/ObjectTrait.php160
'First parameter must be URI'
/system/src/Grav/Common/Page/Types.php68
sprintf($grav['language']->translate('PLUGIN_FORM.FILEUPLOAD_UNABLE_TO_UPLOAD'nulltrue), $filename'Bad filename')
/system/src/Grav/Framework/Form/Traits/FormTrait.php606
'Failed: Cannot set page parent to self'
/system/src/Grav/Common/Page/Page.php1049
"Cannot unset nested property {$property} on non-array value"
/system/src/Grav/Framework/Object/Access/NestedPropertyTrait.php150
'Failed: Cannot set page parent to a child of current page'
/system/src/Grav/Common/Page/Page.php1052
"Cannot set nested property {$property} on non-array value"
/system/src/Grav/Framework/Object/Access/NestedPropertyTrait.php106
'Value ' $old/system/src/Grav/Common/Data/Data.php102
'Cannot upload files: form flash folder not defined'
/system/src/Grav/Framework/Form/FormFlash.php477
'Value ' $value/system/src/Grav/Common/Data/Data.php108
"File not found: {$filename}"
/system/src/Grav/Framework/Form/FormFlash.php300
'Value ' $value/system/src/Grav/Common/Data/Data.php169
sprintf('FlexForm: Bad HTTP method %s'$method)
/system/src/Grav/Framework/Form/Traits/FormTrait.php513
'Value ' $old/system/src/Grav/Common/Data/Data.php180
'Form has already been submitted'
/system/src/Grav/Framework/Form/Traits/FormTrait.php260
sprintf('Unable to create directory: %s'$folder)
/system/src/Grav/Common/Filesystem/Folder.php446
'A relative URI must not have a path beginning with a segment containing a colon'
/system/src/Grav/Framework/Psr7/AbstractUri.php386
'Cannot move files to existing folder/file.'
/system/src/Grav/Common/Filesystem/Folder.php363
'The path of a URI with an authority must start with a slash \'/\' or be empty'
/system/src/Grav/Framework/Psr7/AbstractUri.php389
'Password hashing failed: no password provided.'
/system/src/Grav/Common/User/Authentication.php25
json_last_error_msg( )
/system/src/Grav/Framework/Psr7/Response.php63
'User class was called too early!'
/system/src/Grav/Common/User/User.php19
'Invalid argument $value'
/system/src/Grav/Framework/Collection/AbstractIndexCollection.php246
"Path doesn't exist."
/system/src/Grav/Common/Filesystem/Folder.php211
sprintf("The class '%s' does not implement the '%s' interface", \get_class($cache), CacheInterface::class)
/system/src/Grav/Framework/Cache/Adapter/ChainCache.php50
'ZipArchiver: ' $this->archive_file ' cannot be opened...'
/system/src/Grav/Common/Filesystem/ZipArchiver.php92
"Bad path {$path}"
/system/src/Grav/Framework/Filesystem/Filesystem.php283
'Cannot move non-existing folder.'
/system/src/Grav/Common/Filesystem/Folder.php353
'Uri with a scheme must have a host'
/system/src/Grav/Framework/Psr7/AbstractUri.php378
'Cannot copy non-existing folder.'
/system/src/Grav/Common/Filesystem/Folder.php305
'The path of a URI without an authority must not start with two slashes \'//\''
/system/src/Grav/Framework/Psr7/AbstractUri.php383
'ZipArchiver: ' $source ' cannot be found...'
/system/src/Grav/Common/Filesystem/ZipArchiver.php41
sprintf('Namespace contains "%s" but only characters in [-+_.A-Za-z0-9] are allowed.'$match[0])
/system/src/Grav/Framework/Cache/Adapter/FileCache.php154
'ZipArchiver: Zip PHP module not installed...'
/system/src/Grav/Common/Filesystem/ZipArchiver.php37
sprintf('Cache folder is too long (%s)'$directory)
/system/src/Grav/Framework/Cache/Adapter/FileCache.php164
'ZipArchiver: Zip PHP module not installed...'
/system/src/Grav/Common/Filesystem/ZipArchiver.php87
sprintf('Unable to create directory: %s'$dir)
/system/src/Grav/Framework/Cache/Adapter/FileCache.php213
'ZipArchiver:' $this->archive_file ' cannot be created...'
/system/src/Grav/Common/Filesystem/ZipArchiver.php46
'At least one cache must be specified'
/system/src/Grav/Framework/Cache/Adapter/ChainCache.php44
"'{$path}' is not a valid directory"
/system/src/Grav/Common/Errors/SimplePageHandler.php97
sprintf('Cache key length must be less than 65 characters, key had %s characters', \strlen($key))
/system/src/Grav/Framework/Cache/CacheTrait.php300
"Could not find resource '{$resource}' in any resource paths (searched: " implode(', '$this->searchPaths) . ')'
/system/src/Grav/Common/Errors/SimplePageHandler.php89
sprintf('Cache key "%s" contains reserved characters {}()/\@:'$key)
/system/src/Grav/Framework/Cache/CacheTrait.php305
'ZipArchiver: Failed to open ' $this->archive_file/system/src/Grav/Common/Filesystem/ZipArchiver.php31
sprintf('Expiration date must be an integer, a DateInterval or null, "%s" given', \is_object($ttl) ? \get_class($ttl) : \gettype($ttl))
/system/src/Grav/Framework/Cache/CacheTrait.php345
'ZipArchiver: ZIP failed to extract ' $this->archive_file ' to ' $destination/system/src/Grav/Common/Filesystem/ZipArchiver.php24
sprintf('Cache directory is not writable (%s)'$this->directory)
/system/src/Grav/Framework/Cache/Adapter/FileCache.php81
'Dependency <cyan>' $dependency_slug '</cyan> is required in an older version than the latest release available, and it cannot be installed. This package must be updated. Please get in touch with its developer.'
/system/src/Grav/Common/GPM/GPM.php945
'Creating directory failed for ' $this->filepath/system/src/Grav/Framework/File/AbstractFile.php181
'Bad format for version of dependency ' $current_package_name ' for package ' $packageName/system/src/Grav/Common/GPM/GPM.php1026
sprintf("Failed to save file '%s': %s"$this->getFilePath( ), $e->getMessage( ))
/system/src/Grav/Framework/File/DataFile.php60
'Dependency <cyan>' $dependency_slug '</cyan> is required in an older version than the one installed. This package must be updated. Please get in touch with its developer.'
/system/src/Grav/Common/GPM/GPM.php909
sprintf("Failed to load file '%s': %s"$this->getFilePath( ), $e->getMessage( ))
/system/src/Grav/Framework/File/DataFile.php45
'Dependency <cyan>' $package_yaml['name'] . '</cyan> is required in version <cyan>' $dependencyVersion '</cyan> which is higher than the latest release, <cyan>' $latestRelease '</cyan>. Try running `bin/gpm -f index` to force a refresh of the GPM cache'
/system/src/Grav/Common/GPM/GPM.php920
'Cannot save data, string required'
/system/src/Grav/Framework/File/File.php32
sprintf('The middleware is not a valid %s and is not passed in the Container'MiddlewareInterface::class)
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
"<red>One of the packages require PHP {$dependencies['php']}. Please update PHP to resolve this"
/system/src/Grav/Common/GPM/GPM.php866
'ParsedownExtra requires a later version of Parsedown'
/system/src/Grav/Framework/Parsedown/ParsedownExtra.php34
"<red>One of the packages require Grav {$dependencies['grav']}. Please update Grav to the latest release."
/system/src/Grav/Common/GPM/GPM.php879
'Invalid User object, session destroyed.'
/system/src/Grav/Framework/Session/Session.php207
"Only official GPM URLs are allowed. You can modify this behavior in the System configuration."
/system/src/Grav/Common/GPM/GPM.php532
'Failed to start session: ' $error/system/src/Grav/Framework/Session/Session.php199
"Package <cyan>$slug</cyan> is required in an older version by package <cyan>$dependent_package</cyan>. This package needs a newer version, and because of this it cannot be installed. The <cyan>$dependent_package</cyan> package must be updated to use a newer release of <cyan>$slug</cyan>."
/system/src/Grav/Common/GPM/GPM.php811
'Session has already been initialized.'
/system/src/Grav/Framework/Session/Session.php52
"The cache/gpm folder is not writable. Please check the folder permissions."
/system/src/Grav/Common/GPM/GPM.php490
"Session hasn't been initialized."
/system/src/Grav/Framework/Session/Session.php36
"GPM not reachable. Please check your internet connection or check the Grav site is reachable"
/system/src/Grav/Common/GPM/GPM.php497
sprintf('Unsupported version %s'$version)
/system/src/Grav/Framework/ContentBlock/ContentBlock.php285
'Value ' $old/system/src/Grav/Common/User/FlexUser/User.php332
sprintf('Cannot unserialize Block: %s'$e->getMessage( ))
/system/src/Grav/Framework/ContentBlock/ContentBlock.php62
'Internal error'
/system/src/Grav/Common/User/FlexUser/User.php702
'Bad data'
/system/src/Grav/Framework/ContentBlock/ContentBlock.php55
'Value ' $value/system/src/Grav/Common/User/FlexUser/User.php260
"Malformed URL: {$url}"
/system/src/Grav/Framework/Uri/UriFactory.php131
'Value ' $value/system/src/Grav/Common/User/FlexUser/User.php321
'URL must be a string'
/system/src/Grav/Framework/Uri/UriFactory.php120
'Password hashing failed: internal error.'
/system/src/Grav/Common/User/Authentication.php31
'Uri query string and fragment must be a string'
/system/src/Grav/Framework/Uri/UriPartsFilter.php130
'Value ' $old/system/src/Grav/Common/User/FlexUser/User.php254
'Uri path must be a string'
/system/src/Grav/Framework/Uri/UriPartsFilter.php108
'Cannot retrieve stream after it has already been moved'
/system/src/Grav/Framework/Form/FormFlashFile.php144
'Uri port must be null or an integer between 0 and 65535'
/system/src/Grav/Framework/Uri/UriPartsFilter.php91
'Cannot retrieve stream as the file is missing'
/system/src/Grav/Framework/Form/FormFlashFile.php148
'Uri host name validation failed'
/system/src/Grav/Framework/Uri/UriPartsFilter.php70
\sprintf('Uploaded file could not be moved to %s'$targetPath)
/system/src/Grav/Framework/Form/FormFlashFile.php62
'Uri host must be a string'
/system/src/Grav/Framework/Uri/UriPartsFilter.php64
'Cannot retrieve stream due to upload error'
/system/src/Grav/Framework/Form/FormFlashFile.php140
'Uri user info must be a string'
/system/src/Grav/Framework/Uri/UriPartsFilter.php44
'Decoding serialized data failed'
/system/src/Grav/Framework/File/Formatter/SerializeFormatter.php62
'Uri scheme must be a string'
/system/src/Grav/Framework/Uri/UriPartsFilter.php28
'Invalid path provided for move operation; must be a non-empty string'
/system/src/Grav/Framework/Form/FormFlashFile.php56
'A repository is required to indicate the origin of the remote collection'
/system/src/Grav/Common/GPM/Remote/AbstractPackageCollection.php46
'Encoding JSON failed: ' json_last_error_msg( )
/system/src/Grav/Framework/File/Formatter/JsonFormatter.php80
"Directory $source_path is missing"
/system/src/Grav/Common/GPM/Installer.php281
'Decoding JSON failed: ' json_last_error_msg( )
/system/src/Grav/Framework/File/Formatter/JsonFormatter.php95
"Error while trying to download (code: $code): $uri \nMessage: $error_message"
/system/src/Grav/Common/GPM/Response.php353
'Decoding YAML failed: ' $e->getMessage( )
/system/src/Grav/Framework/File/Formatter/YamlFormatter.php111
'Invalid LICENSE'
/system/src/Grav/Common/GPM/Response.php351
'Decoding INI failed'
/system/src/Grav/Framework/File/Formatter/IniFormatter.php58
'Page not found'
/system/src/Grav/Common/GPM/Response.php349
'Badly formatted CSV line: ' $line/system/src/Grav/Framework/File/Formatter/CsvFormatter.php103
"Error while trying to download (code: {$code}): {$uri}\n"
/system/src/Grav/Common/GPM/Response.php317
'Encoding YAML failed: ' $e->getMessage( )
/system/src/Grav/Framework/File/Formatter/YamlFormatter.php81
'Invalid LICENSE'
/system/src/Grav/Common/GPM/Response.php315
'Failed to save file ' $filepath/system/src/Grav/Framework/File/AbstractFile.php296
'Page not found'
/system/src/Grav/Common/GPM/Response.php313
'Decoding CSV failed'
/system/src/Grav/Framework/File/Formatter/CsvFormatter.php76
'Could not start an HTTP request. `allow_url_open` is disabled and `cURL` is not available'
/system/src/Grav/Common/GPM/Response.php101
"Opening file for writing failed on error {$error['message']}"
/system/src/Grav/Framework/File/AbstractFile.php187
'Dependency ' $current_package_name ' is required in two incompatible versions'
/system/src/Grav/Common/GPM/GPM.php1050
'Creating directory failed for ' $filepath/system/src/Grav/Framework/File/AbstractFile.php270
'Grav has already been installed here!'
/system/src/Grav/Installer/Install.php164
implode("<br />\n"$error)
/system/src/Grav/Installer/Install.php130
'Redis PHP extension has not been installed'
/system/src/Grav/Common/Cache.php305
$language->translate('PLUGIN_ADMIN.FILE_COULD_NOT_BE_DELETED') . ': Bad filename: ' $filename/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php207
'Error - can not open file.'
/system/src/Grav/Common/Utils.php681
$language->translate('PLUGIN_ADMIN.UNSUPPORTED_FILE_TYPE') . ': ' $extension/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php136
'Memcached PHP extension has not been installed'
/system/src/Grav/Common/Cache.php280
sprintf($language->translate('PLUGIN_ADMIN.FILEUPLOAD_UNABLE_TO_UPLOAD'), $filename'Bad filename')
/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php112
'Redis authentication failed'
/system/src/Grav/Common/Cache.php299
sprintf('Cannot create collection: Class %s does not exist'$collectionClass)
/system/src/Grav/Framework/Flex/Flex.php133
'Malformed URL: ' $url/system/src/Grav/Common/Utils.php1532
sprintf('Flex: %s'$e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/SimpleStorage.php54
'Malformed URL: ' $url/system/src/Grav/Common/Uri.php1251
"Argument \$options is missing 'folder'"
/system/src/Grav/Framework/Flex/Storage/SimpleStorage.php37
'Page not available for this self@ reference'
/system/src/Grav/Common/Utils.php1403
$language->translate('PLUGIN_ADMIN.FILE_COULD_NOT_BE_DELETED') . ': ' $filename/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php257
'Page route not found: ' $path/system/src/Grav/Common/Utils.php1423
$language->translate('PLUGIN_ADMIN.FILE_COULD_NOT_BE_DELETED') . ': ' $filename/system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php237
$this->current( ) . ' theme could not be found'
/system/src/Grav/Common/Themes.php64
'Cannot create new object (Already exists)'
/system/src/Grav/Framework/Flex/FlexObject.php528
'Theme name not provided.'
/system/src/Grav/Common/Themes.php137
sprintf('Flex: Blueprint file for %s is missing'$this->type)
/system/src/Grav/Framework/Flex/FlexDirectory.php574
sprintf('Cannot update Grav, class %s has already been loaded!'$class_name)
/system/src/Grav/Installer/Install.php170
'Please run: <i>bin/grav install</i>'
/index.php36
'This script cannot be run from browser. Run it from a CLI.'
/system/router.php11
"PHP webserver requires a router to run Grav, please use: <pre>php -S {$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']} system/router.php</pre>"
/index.php20
"'mbstring' extension is not loaded.  This is required for Grav to run correctly"
/index.php28
sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.'$ver$req)
/index.php16
"Theme '$name' does not exist, unable to display page."
/system/src/Grav/Common/Themes.php217
sprintf('Object failed to load: %s (%s)'$key$row['__error'])
/system/src/Grav/Framework/Flex/FlexIndex.php606
sprintf('Index failed to load: %s'$e->getMessage( ))
/system/src/Grav/Framework/Flex/FlexIndex.php648
sprintf('Theme %s: %s'$theme$e->getMessage( ))
/system/src/Grav/Common/Themes.php107
sprintf('Flex: Object %s is broken in %s storage: %s'$storageKey$this->type$row['__error'])
/system/src/Grav/Framework/Flex/FlexDirectory.php543
sprintf('Plugin %s: %s'$name$e->getMessage( ))
/system/src/Grav/Common/Plugins.php146
sprintf('Flex: %s'$e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php54
sprintf('Grav failed to initialize: %s'$e->getMessage( ))
/system/src/Grav/Common/Config/Setup.php318
"Argument \$options is missing 'folder'"
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php42
'Page Not Found'
/system/src/Grav/Common/Processors/PagesProcessor.php47
'Broken object file.'
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php258
'Invalid output type'
/system/src/Grav/Common/Scheduler/Scheduler.php214
"Cannot rename object: key '{$dst}' is already taken"
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php200
"Invalid value: it should be '*' or between {$min} and {$max}."
/system/src/Grav/Common/Scheduler/IntervalTrait.php392
'Bad data'
/system/src/Grav/Framework/Flex/Storage/SimpleStorage.php232
'Cache folder not defined.'
/system/src/Grav/Common/Config/CompiledBase.php65
"Cannot rename object: key '{$dst}' is already taken"
/system/src/Grav/Framework/Flex/Storage/SimpleStorage.php219
'Setup: Configuration reload loop detected!'
/system/src/Grav/Common/Config/Setup.php223
'Unknown extension type ' $this->dataFormatter->getDefaultFileExtension( )
/system/src/Grav/Framework/Flex/Storage/AbstractFilesystemStorage.php112
'Configuration is missing streams.schemes!'
/system/src/Grav/Common/Config/Setup.php290
sprintf('Flex save(): %s'$e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/SimpleStorage.php269
sprintf('Configuration is missing keys %s from streams.schemes!'implode(', '$diff))
/system/src/Grav/Common/Config/Setup.php295
'MinuteAfter parameter cannot be negative !'
/system/src/Grav/Common/Scheduler/Cron.php489
'No backups defined...'
/system/src/Grav/Common/Backup/Backups.php154
"Backup location: {$backup_root} does not exist..."
/system/src/Grav/Common/Backup/Backups.php171
sprintf('%s is not defined in blueprints'$key)
/system/src/Grav/Common/Data/BlueprintSchema.php156
sprintf('Flex deleteFile(%s): %s'$file->filename( ), $e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php305
'The email can be only string or array'
/system/src/Grav/Common/Scheduler/Job.php453
sprintf('Flex saveFile(%s): %s'$file->filename( ), $e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php283
'Bad number of elements'
/system/src/Grav/Common/Scheduler/Cron.php265
sprintf('Flex deleteFolder(%s): %s'$path$e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php351
'Date format not supported'
/system/src/Grav/Common/Scheduler/Cron.php454
sprintf('Flex moveFolder(%s, %s): %s'$src$dst$e->getMessage( ))
/system/src/Grav/Framework/Flex/Storage/FolderStorage.php327
'MinuteBefore parameter cannot be positive !'
/system/src/Grav/Common/Scheduler/Cron.php486
'Saving failed: Object does not exist!'
/system/src/Grav/Framework/Flex/FlexObject.php559
__CLASS__ ' blueprints cannot be modified.'
/system/src/Grav/Common/Plugin.php242
"Cannot unserialize '{$type}': Bad data"
/system/src/Grav/Framework/Flex/FlexObject.php745
"Stream '{$type}' could not be initialized."
/system/src/Grav/Common/Themes.php273
"Cannot unserialize '{$type}': Not found"
/system/src/Grav/Framework/Flex/FlexObject.php753
'Memcache PHP extension has not been installed'
/system/src/Grav/Common/Cache.php268
ucfirst($type) . ' directory does not exist!'
/system/src/Grav/Framework/Flex/FlexObject.php812
__CLASS__ ' blueprints cannot be modified.'
/system/src/Grav/Common/Plugin.php253
'Invalid argument $element'
/system/src/Grav/Framework/Collection/AbstractIndexCollection.php262
'Oops, installer was run without prepare()!'
/system/src/Grav/Installer/Install.php191
sprintf('Flex: Blueprint for %s is missing'$this->type)
/system/src/Grav/Framework/Flex/FlexDirectory.php156