Deprecated: SilverStripe\Config\Collections\MemoryConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Collections/MemoryConfigCollection.php on line 13 Deprecated: SilverStripe\Core\Config\Middleware\InheritanceMiddleware implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Config/Middleware/InheritanceMiddleware.php on line 10 Deprecated: SilverStripe\Core\Config\Middleware\ExtensionMiddleware implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Config/Middleware/ExtensionMiddleware.php on line 15 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php on line 422 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry) DatabaseAdapterRegistry.php:197 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getCache() DatabaseAdapterRegistry.php:168 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getConfigureDatabasePaths() DatabaseAdapterRegistry.php:150 SilverStripe\Dev\Install\DatabaseAdapterRegistry::autoconfigure(Array) CoreKernel.php:377 SilverStripe\Core\CoreKernel->getDatabaseConfig() CoreKernel.php:258 SilverStripe\Core\CoreKernel->bootDatabaseEnvVars() CoreKernel.php:196 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Core\Cache\CacheFactory) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Core\Cache\CacheFactory, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Core\Cache\CacheFactory, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Core\Cache\CacheFactory) Injector.php:593 SilverStripe\Core\Injector\Injector->instantiate(Array, Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry) DatabaseAdapterRegistry.php:197 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getCache() DatabaseAdapterRegistry.php:168 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getConfigureDatabasePaths() DatabaseAdapterRegistry.php:150 SilverStripe\Dev\Install\DatabaseAdapterRegistry::autoconfigure(Array) CoreKernel.php:377 SilverStripe\Core\CoreKernel->getDatabaseConfig() CoreKernel.php:258 SilverStripe\Core\CoreKernel->bootDatabaseEnvVars() CoreKernel.php:196 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 527 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 518: } 519: 520: // Evaluate service references 521: if (is_string($value) && strpos($value, '%$') === 0) { 522: $id = substr($value, 2); 523: return $this->get($id); 524: } 525: 526: // Evaluate constants surrounded by back ticks * 527: if (preg_match('/^`(?[^`]+)`$/', $value, $matches)) { 528: $envValue = Environment::getEnv($matches['name']); 529: if ($envValue !== false) { 530: $value = $envValue; 531: } elseif (defined($matches['name'])) { 532: $value = constant($matches['name']); 533: } else { Trace ===== preg_match(/^`(?[^`]+)`$/, , ) Injector.php:527 SilverStripe\Core\Injector\Injector->convertServiceProperty() Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:499 SilverStripe\Core\Injector\Injector->updateSpecConstructor(Array) Injector.php:998 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Core\Cache\CacheFactory, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Core\Cache\CacheFactory) Injector.php:593 SilverStripe\Core\Injector\Injector->instantiate(Array, Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.DatabaseAdapterRegistry) DatabaseAdapterRegistry.php:197 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getCache() DatabaseAdapterRegistry.php:168 SilverStripe\Dev\Install\DatabaseAdapterRegistry::getConfigureDatabasePaths() DatabaseAdapterRegistry.php:150 SilverStripe\Dev\Install\DatabaseAdapterRegistry::autoconfigure(Array) CoreKernel.php:377 SilverStripe\Core\CoreKernel->getDatabaseConfig() CoreKernel.php:258 SilverStripe\Core\CoreKernel->bootDatabaseEnvVars() CoreKernel.php:196 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: Return type of SilverStripe\Admin\CMSMenu::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 419 in /usr/www/users/greenejxcx/vendor/silverstripe/admin/code/CMSMenu.php Source ====== 410: return $priorityB - $priorityA; 411: }); 412: 413: return $subClasses; 414: } 415: 416: /** 417: * IteratorAggregate Interface Method. Iterates over the menu items. 418: */ * 419: public function getIterator() 420: { 421: return new ArrayIterator(self::get_menu_items()); 422: } 423: 424: /** 425: * Provide menu titles to the i18n entity provider Trace ===== SilverStripe\Dev\CliDebugView->renderTrace() DetailedErrorFormatter.php:119 SilverStripe\Logging\DetailedErrorFormatter->output(8192, Return type of SilverStripe\Admin\CMSMenu::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice, /usr/www/users/greenejxcx/vendor/silverstripe/admin/code/CMSMenu.php, 419, ) DetailedErrorFormatter.php:54 SilverStripe\Logging\DetailedErrorFormatter->format(Array) AbstractProcessingHandler.php:37 Monolog\Handler\AbstractProcessingHandler->handle(Array) Logger.php:344 Monolog\Logger->addRecord(250, E_DEPRECATED: Return type of SilverStripe\Admin\CMSMenu::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice, Array) Logger.php:614 Monolog\Logger->log(250, E_DEPRECATED: Return type of SilverStripe\Admin\CMSMenu::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice, Array) ErrorHandler.php:160 Monolog\ErrorHandler->handleError(8192, Return type of SilverStripe\Admin\CMSMenu::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice, /usr/www/users/greenejxcx/vendor/silverstripe/admin/code/CMSMenu.php, 419) CMSMenu.php:32 include(/usr/www/users/greenejxcx/vendor/silverstripe/admin/code/CMSMenu.php) ClassLoader.php:478 Composer\Autoload\includeFile(/usr/www/users/greenejxcx/vendor/composer/../silverstripe/admin/code/CMSMenu.php) ClassLoader.php:346 Composer\Autoload\ClassLoader->loadClass(SilverStripe\Admin\CMSMenu) _config.php:52 require_once(/usr/www/users/greenejxcx/vendor/silverstripe/admin/_config.php) Module.php:289 SilverStripe\Core\Manifest\requireFile(/usr/www/users/greenejxcx/vendor/silverstripe/admin/_config.php) Module.php:187 SilverStripe\Core\Manifest\Module->activate() ModuleManifest.php:153 SilverStripe\Core\Manifest\ModuleManifest->activateConfig() CoreKernel.php:213 SilverStripe\Core\CoreKernel->bootConfigs() CoreKernel.php:197 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: SilverStripe\Config\Collections\DeltaConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 11 in /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Collections/DeltaConfigCollection.php Source ====== 2: 3: namespace SilverStripe\Config\Collections; 4: 5: use SilverStripe\Config\Middleware\DeltaMiddleware; 6: 7: /** 8: * Applies config modifications as a set of deltas on top of the 9: * middleware, instead of as modifications to the underlying list. 10: */ * 11: class DeltaConfigCollection extends MemoryConfigCollection 12: { 13: /** 14: * Remove delta 15: */ 16: const REMOVE = 'remove'; 17: Trace ===== SilverStripe\Dev\CliDebugView->renderTrace() DetailedErrorFormatter.php:119 SilverStripe\Logging\DetailedErrorFormatter->output(8192, SilverStripe\Config\Collections\DeltaConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Collections/DeltaConfigCollection.php, 11, ) DetailedErrorFormatter.php:54 SilverStripe\Logging\DetailedErrorFormatter->format(Array) AbstractProcessingHandler.php:37 Monolog\Handler\AbstractProcessingHandler->handle(Array) Logger.php:344 Monolog\Logger->addRecord(250, E_DEPRECATED: SilverStripe\Config\Collections\DeltaConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), Array) Logger.php:614 Monolog\Logger->log(250, E_DEPRECATED: SilverStripe\Config\Collections\DeltaConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), Array) ErrorHandler.php:160 Monolog\ErrorHandler->handleError(8192, SilverStripe\Config\Collections\DeltaConfigCollection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Collections/DeltaConfigCollection.php, 11) ClassLoader.php:478 include(/usr/www/users/greenejxcx/vendor/monolog/monolog/src/Monolog/ErrorHandler.php) ClassLoader.php:478 Composer\Autoload\includeFile(/usr/www/users/greenejxcx/vendor/composer/../silverstripe/config/src/Collections/DeltaConfigCollection.php) ClassLoader.php:346 Composer\Autoload\ClassLoader->loadClass(SilverStripe\Config\Collections\DeltaConfigCollection) CoreConfigFactory.php:54 SilverStripe\Core\Config\CoreConfigFactory->SilverStripe\Core\Config\{closure}(SilverStripe\Config\Collections\MemoryConfigCollection) CachedConfigCollection.php:169 SilverStripe\Config\Collections\CachedConfigCollection->nest() Config.php:82 SilverStripe\Core\Config\Config::nest() Config.php:61 SilverStripe\Core\Config\Config::modify() Extensible.php:209 SilverStripe\View\ViewableData::add_extension(CustomFooter) _config.php:6 require_once(/usr/www/users/greenejxcx/custom_footer/_config.php) Module.php:289 SilverStripe\Core\Manifest\requireFile(/usr/www/users/greenejxcx/custom_footer/_config.php) Module.php:187 SilverStripe\Core\Manifest\Module->activate() ModuleManifest.php:153 SilverStripe\Core\Manifest\ModuleManifest->activateConfig() CoreKernel.php:213 SilverStripe\Core\CoreKernel->bootConfigs() CoreKernel.php:197 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: SilverStripe\Config\Middleware\DeltaMiddleware implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 12 in /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Middleware/DeltaMiddleware.php Source ====== 3: namespace SilverStripe\Config\Middleware; 4: 5: use InvalidArgumentException; 6: use SilverStripe\Config\Collections\DeltaConfigCollection; 7: use SilverStripe\Config\MergeStrategy\Priority; 8: 9: /** 10: * Applies a set of user-customised modifications to config 11: */ * 12: class DeltaMiddleware implements Middleware 13: { 14: use MiddlewareCommon; 15: 16: /** 17: * Source for deltas 18: * Trace ===== Monolog\ErrorHandler->handleError(8192, SilverStripe\Config\Middleware\DeltaMiddleware implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), /usr/www/users/greenejxcx/vendor/silverstripe/config/src/Middleware/DeltaMiddleware.php, 12) DeltaMiddleware.php:12 include(/usr/www/users/greenejxcx/vendor/silverstripe/config/src/Middleware/DeltaMiddleware.php) ClassLoader.php:478 Composer\Autoload\includeFile(/usr/www/users/greenejxcx/vendor/composer/../silverstripe/config/src/Middleware/DeltaMiddleware.php) ClassLoader.php:346 Composer\Autoload\ClassLoader->loadClass(SilverStripe\Config\Middleware\DeltaMiddleware) DeltaConfigCollection.php:66 SilverStripe\Config\Collections\DeltaConfigCollection->__construct() DeltaConfigCollection.php:80 SilverStripe\Config\Collections\DeltaConfigCollection::createFromCollection(SilverStripe\Config\Collections\MemoryConfigCollection, 8) CoreConfigFactory.php:54 SilverStripe\Core\Config\CoreConfigFactory->SilverStripe\Core\Config\{closure}(SilverStripe\Config\Collections\MemoryConfigCollection) CachedConfigCollection.php:169 SilverStripe\Config\Collections\CachedConfigCollection->nest() Config.php:82 SilverStripe\Core\Config\Config::nest() Config.php:61 SilverStripe\Core\Config\Config::modify() Extensible.php:209 SilverStripe\View\ViewableData::add_extension(CustomFooter) _config.php:6 require_once(/usr/www/users/greenejxcx/custom_footer/_config.php) Module.php:289 SilverStripe\Core\Manifest\requireFile(/usr/www/users/greenejxcx/custom_footer/_config.php) Module.php:187 SilverStripe\Core\Manifest\Module->activate() ModuleManifest.php:153 SilverStripe\Core\Manifest\ModuleManifest->activateConfig() CoreKernel.php:213 SilverStripe\Core\CoreKernel->bootConfigs() CoreKernel.php:197 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\PasswordValidator) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\PasswordValidator, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\PasswordValidator, , Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\PasswordValidator, , Array) Injector.php:1125 SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\Security\PasswordValidator, Array) Injectable.php:30 SilverStripe\Security\PasswordValidator::create() _config.php:10 require_once(/usr/www/users/greenejxcx/app/_config.php) Module.php:289 SilverStripe\Core\Manifest\requireFile(/usr/www/users/greenejxcx/app/_config.php) Module.php:187 SilverStripe\Core\Manifest\Module->activate() ModuleManifest.php:153 SilverStripe\Core\Manifest\ModuleManifest->activateConfig() CoreKernel.php:213 SilverStripe\Core\CoreKernel->bootConfigs() CoreKernel.php:197 SilverStripe\Core\CoreKernel->boot() HTTPApplication.php:135 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Director) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Director, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\TrustedProxyMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\TrustedProxyMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\TrustedProxyMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\TrustedProxyMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\TrustedProxyMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\AllowedHostsMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\AllowedHostsMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\AllowedHostsMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\AllowedHostsMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\AllowedHostsMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\CanonicalURLMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\CanonicalURLMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\CanonicalURLMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\CanonicalURLMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\CanonicalURLMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\AuthenticationMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\AuthenticationMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\AuthenticationHandler) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\AuthenticationHandler, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationHandler) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\AuthenticationMiddleware, SilverStripe\Security\AuthenticationMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\RequestAuthenticationHandler, SilverStripe\Security\AuthenticationHandler) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationHandler, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationHandler) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\AuthenticationMiddleware, SilverStripe\Security\AuthenticationMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\MemberAuthenticator\CookieAuthenticationHandler) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\MemberAuthenticator\CookieAuthenticationHandler, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\MemberAuthenticator\CookieAuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\MemberAuthenticator\CookieAuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\MemberAuthenticator\CookieAuthenticationHandler) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\RequestAuthenticationHandler, SilverStripe\Security\AuthenticationHandler) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationHandler, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationHandler) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\AuthenticationMiddleware, SilverStripe\Security\AuthenticationMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\SessionManager\Security\LogInAuthenticationHandler) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\SessionManager\Security\LogInAuthenticationHandler, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\SessionManager\Security\LogInAuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\SessionManager\Security\LogInAuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\SessionManager\Security\LogInAuthenticationHandler) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\RequestAuthenticationHandler, SilverStripe\Security\AuthenticationHandler) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationHandler, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationHandler, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationHandler) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationHandler) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Security\AuthenticationMiddleware, SilverStripe\Security\AuthenticationMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Security\AuthenticationMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\AuthenticationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\AuthenticationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\AuthenticationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Security\BasicAuthMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Security\BasicAuthMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Security\BasicAuthMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Security\BasicAuthMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Security\BasicAuthMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\URLSpecialsMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\URLSpecialsMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\CliBypass) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\CliBypass, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\ConfirmationMiddleware\CliBypass, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\ConfirmationMiddleware\CliBypass) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\ConfirmationMiddleware\CliBypass) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Middleware\URLSpecialsMiddleware, SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Middleware\URLSpecialsMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\URLSpecialsMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\EnvironmentBypass) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\EnvironmentBypass, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\ConfirmationMiddleware\EnvironmentBypass, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\ConfirmationMiddleware\EnvironmentBypass("dev")) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\ConfirmationMiddleware\EnvironmentBypass("dev")) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Middleware\URLSpecialsMiddleware, SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Middleware\URLSpecialsMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\URLSpecialsMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartswith) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartswith, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartswith, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartswith("dev/confirm")) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartswith("dev/confirm")) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Middleware\URLSpecialsMiddleware, SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Middleware\URLSpecialsMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\URLSpecialsMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\URLSpecialsMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(DevUrlsConfirmationMiddleware) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(DevUrlsConfirmationMiddleware, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(DevUrlsConfirmationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(DevUrlsConfirmationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$DevUrlsConfirmationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 ERROR [Deprecated]: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated IN GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/ Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php Source ====== 413: 414: // see if we already have this defined. If so, check priority weighting 415: if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) { 416: if ($this->specs[$id]['priority'] > $priority) { 417: return $this; 418: } 419: } 420: 421: // okay, actually include it now we know we're going to use it * 422: if (file_exists($file)) { 423: require_once $file; 424: } 425: 426: // make sure to set the id for later when instantiating 427: // to ensure we get cached 428: $spec['id'] = $id; Trace ===== file_exists() Injector.php:422 SilverStripe\Core\Injector\Injector->load(Array) Injector.php:1074 SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\Url) Injector.php:1042 SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Middleware\ConfirmationMiddleware\Url, Array) Injector.php:980 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Middleware\ConfirmationMiddleware\Url, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Middleware\ConfirmationMiddleware\Url("dev", ["GET", "HEAD"])) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Control\Middleware\ConfirmationMiddleware\Url("dev", ["GET", "HEAD"])) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Middleware\PermissionAwareConfirmationMiddleware, DevUrlsConfirmationMiddleware) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, DevUrlsConfirmationMiddleware, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(DevUrlsConfirmationMiddleware, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(DevUrlsConfirmationMiddleware) Injector.php:523 SilverStripe\Core\Injector\Injector->convertServiceProperty(%$DevUrlsConfirmationMiddleware) Injector.php:515 SilverStripe\Core\Injector\Injector->convertServiceProperty(Array) Injector.php:650 SilverStripe\Core\Injector\Injector->inject(SilverStripe\Control\Director, SilverStripe\Control\Director) Injector.php:620 SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Control\Director, singleton) Injector.php:1002 SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Director, 1, Array) Injector.php:955 SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Director) Injectable.php:48 SilverStripe\Control\Director::singleton() HTTPApplication.php:117 SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) call_user_func(Closure, SilverStripe\Control\HTTPRequest) HTTPApplication.php:136 SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest) HTTPMiddlewareAware.php:65 SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure) HTTPApplication.php:137 SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, ) HTTPApplication.php:116 SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest) index.php:24 GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Control\Cookie_Backend)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Control\Cookie_Backend, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Control\Cookie_Backend, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Control\Cookie_Backend)
    Cookie.php:29
  • SilverStripe\Control\Cookie::get_inst()
    Cookie.php:69
  • SilverStripe\Control\Cookie::get(PHPSESSID)
    Session.php:270
  • SilverStripe\Control\Session->requestContainsSessionId(SilverStripe\Control\HTTPRequest)
    Session.php:228
  • SilverStripe\Control\Session->init(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:17
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    VersionedHTTPMiddleware.php:22
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\ModelAsController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\ModelAsController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\CMS\Controllers\ModelAsController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(SilverStripe\CMS\Controllers\ModelAsController)
    Director.php:359
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Versioned\Versioned)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Versioned\Versioned, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Versioned\Versioned, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Versioned\Versioned)
    Extensible.php:565
  • SilverStripe\View\ViewableData->getExtensionInstances()
    Extensible.php:132
  • SilverStripe\View\ViewableData->defineExtensionMethods()
    Extensible.php:120
  • SilverStripe\View\ViewableData->extensibleDefineMethods()
    ViewableData.php:246
  • SilverStripe\View\ViewableData->defineMethods()
    DataObject.php:812
  • SilverStripe\ORM\DataObject->defineMethods()
    CustomMethods.php:161
  • SilverStripe\View\ViewableData->getExtraMethodConfig(getParser)
    CustomMethods.php:148
  • SilverStripe\View\ViewableData->hasMethod(getParser)
    ViewableData.php:109
  • SilverStripe\View\ViewableData->__isset(Parser)
    Injector.php:742
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\CMS\Model\SiteTree, SilverStripe\CMS\Model\SiteTree)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Model\SiteTree, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Model\SiteTree, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Model\SiteTree)
    functions.php:34
  • singleton(SilverStripe\CMS\Model\SiteTree)
    ModelAsController.php:53
  • SilverStripe\CMS\Controllers\ModelAsController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:59
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Psr\SimpleCache\CacheInterface.SiteTree_CreatableChildren)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Psr\SimpleCache\CacheInterface.SiteTree_CreatableChildren, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.SiteTree_CreatableChildren, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.SiteTree_CreatableChildren)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Psr\SimpleCache\CacheInterface.SiteTree_CreatableChildren)
    Injector.php:743
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\CMS\Model\SiteTree, SilverStripe\CMS\Model\SiteTree)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Model\SiteTree, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Model\SiteTree, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Model\SiteTree)
    functions.php:34
  • singleton(SilverStripe\CMS\Model\SiteTree)
    ModelAsController.php:53
  • SilverStripe\CMS\Controllers\ModelAsController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:59
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(MySQLPDODatabase)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(MySQLPDODatabase, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLPDODatabase, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLPDODatabase, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(MySQLPDODatabase, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(MySQLPDODatabase)
    DB.php:302
  • SilverStripe\ORM\DB::connect(<filtered>, <filtered>)
    DB.php:108
  • SilverStripe\ORM\DB::get_conn()
    DB.php:514
  • SilverStripe\ORM\DB::is_active()
    ModelAsController.php:62
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(PDOConnector)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(PDOConnector, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(PDOConnector, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PDOConnector)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$PDOConnector)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\ORM\Connect\MySQLDatabase, MySQLPDODatabase)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, MySQLPDODatabase, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLPDODatabase, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLPDODatabase, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(MySQLPDODatabase, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(MySQLPDODatabase)
    DB.php:302
  • SilverStripe\ORM\DB::connect(<filtered>, <filtered>)
    DB.php:108
  • SilverStripe\ORM\DB::get_conn()
    DB.php:514
  • SilverStripe\ORM\DB::is_active()
    ModelAsController.php:62
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(MySQLSchemaManager)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(MySQLSchemaManager, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLSchemaManager, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLSchemaManager)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$MySQLSchemaManager)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\ORM\Connect\MySQLDatabase, MySQLPDODatabase)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, MySQLPDODatabase, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLPDODatabase, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLPDODatabase, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(MySQLPDODatabase, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(MySQLPDODatabase)
    DB.php:302
  • SilverStripe\ORM\DB::connect(<filtered>, <filtered>)
    DB.php:108
  • SilverStripe\ORM\DB::get_conn()
    DB.php:514
  • SilverStripe\ORM\DB::is_active()
    ModelAsController.php:62
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(MySQLQueryBuilder)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(MySQLQueryBuilder, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLQueryBuilder, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLQueryBuilder)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$MySQLQueryBuilder)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\ORM\Connect\MySQLDatabase, MySQLPDODatabase)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, MySQLPDODatabase, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(MySQLPDODatabase, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(MySQLPDODatabase, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(MySQLPDODatabase, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(MySQLPDODatabase)
    DB.php:302
  • SilverStripe\ORM\DB::connect(<filtered>, <filtered>)
    DB.php:108
  • SilverStripe\ORM\DB::get_conn()
    DB.php:514
  • SilverStripe\ORM\DB::is_active()
    ModelAsController.php:62
  • SilverStripe\CMS\Controllers\ModelAsController->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:80
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\Connect\Query::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 187 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/Connect/Query.php

Source

178             $this->seek(0);
179         }
180     }
181 
182     /**
183      * Iterator function implementation. Return the current item of the iterator.
184      *
185      * @return array
186      */
187     public function current()
188     {
189         if (!$this->currentRecord) {
190             return $this->next();
191         } else {
192             return $this->currentRecord;
193         }

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\Connect\Query::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 223 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/Connect/Query.php

Source

214         return $this->rowNum;
215     }
216 
217     /**
218      * Iterator function implementation. Return the next record in the iterator.
219      * Makes use of {@link nextRecord()}, takes care of the plumbing.
220      *
221      * @return array
222      */
223     public function next()
224     {
225         $this->queryHasBegun = true;
226         $this->currentRecord = $this->nextRecord();
227         $this->rowNum++;
228         return $this->currentRecord;
229     }

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\Connect\Query::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 212 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/Connect/Query.php

Source

203         $this->rewind();
204         return $this->current();
205     }
206 
207     /**
208      * Iterator function implementation. Return the row number of the current item.
209      *
210      * @return int
211      */
212     public function key()
213     {
214         return $this->rowNum;
215     }
216 
217     /**
218      * Iterator function implementation. Return the next record in the iterator.

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\Connect\Query::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 236 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/Connect/Query.php

Source

227         $this->rowNum++;
228         return $this->currentRecord;
229     }
230 
231     /**
232      * Iterator function implementation. Check if the iterator is pointing to a valid item.
233      *
234      * @return bool
235      */
236     public function valid()
237     {
238         if (!$this->queryHasBegun) {
239             $this->next();
240         }
241         return $this->currentRecord !== false;
242     }

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\Connect\Query::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 173 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/Connect/Query.php

Source

164         return $result;
165     }
166 
167     /**
168      * Iterator function implementation. Rewind the iterator to the first item and return it.
169      * Makes use of {@link seek()} and {@link numRecords()}, takes care of the plumbing.
170      *
171      * @return void
172      */
173     public function rewind()
174     {
175         if ($this->queryHasBegun && $this->numRecords() > 0) {
176             $this->queryHasBegun = false;
177             $this->currentRecord = null;
178             $this->seek(0);
179         }

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1251 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1242         });
1243     }
1244 
1245     /**
1246      * Returns whether an item with $key exists
1247      *
1248      * @param mixed $key
1249      * @return bool
1250      */
1251     public function offsetExists($key)
1252     {
1253         return ($this->limit(1, $key)->first() != null);
1254     }
1255 
1256     /**
1257      * Returns item stored in list with index $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1264 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1255 
1256     /**
1257      * Returns item stored in list with index $key
1258      *
1259      * The object returned is not cached, unlike {@link DataObject::get_one()}
1260      *
1261      * @param mixed $key
1262      * @return DataObject
1263      */
1264     public function offsetGet($key)
1265     {
1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1275 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key
1271      *
1272      * @param mixed $key
1273      * @param mixed $value
1274      */
1275     public function offsetSet($key, $value)
1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1285 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key
1282      *
1283      * @param mixed $key
1284      */
1285     public function offsetUnset($key)
1286     {
1287         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1288     }
1289 
1290     /**
1291      * Iterate over this DataList in "chunks". This will break the query in smaller subsets and avoid loading the entire

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 879 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList
876      *
877      * @return int
878      */
879     public function count()
880     {
881         return $this->dataQuery->count();
882     }
883 
884     /**
885      * Return the maximum value of the given field in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 869 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

860         return $this->dataQuery()->getQueryParams();
861     }
862 
863     /**
864      * Returns an Iterator for this DataList.
865      * This function allows you to use DataLists in foreach loops
866      *
867      * @return ArrayIterator
868      */
869     public function getIterator()
870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1251 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1242         });
1243     }
1244 
1245     /**
1246      * Returns whether an item with $key exists
1247      *
1248      * @param mixed $key
1249      * @return bool
1250      */
1251     public function offsetExists($key)
1252     {
1253         return ($this->limit(1, $key)->first() != null);
1254     }
1255 
1256     /**
1257      * Returns item stored in list with index $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1264 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1255 
1256     /**
1257      * Returns item stored in list with index $key
1258      *
1259      * The object returned is not cached, unlike {@link DataObject::get_one()}
1260      *
1261      * @param mixed $key
1262      * @return DataObject
1263      */
1264     public function offsetGet($key)
1265     {
1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1275 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key
1271      *
1272      * @param mixed $key
1273      * @param mixed $value
1274      */
1275     public function offsetSet($key, $value)
1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1285 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key
1282      *
1283      * @param mixed $key
1284      */
1285     public function offsetUnset($key)
1286     {
1287         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1288     }
1289 
1290     /**
1291      * Iterate over this DataList in "chunks". This will break the query in smaller subsets and avoid loading the entire

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 879 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList
876      *
877      * @return int
878      */
879     public function count()
880     {
881         return $this->dataQuery->count();
882     }
883 
884     /**
885      * Return the maximum value of the given field in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 869 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

860         return $this->dataQuery()->getQueryParams();
861     }
862 
863     /**
864      * Returns an Iterator for this DataList.
865      * This function allows you to use DataLists in foreach loops
866      *
867      * @return ArrayIterator
868      */
869     public function getIterator()
870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1251 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1242         });
1243     }
1244 
1245     /**
1246      * Returns whether an item with $key exists
1247      *
1248      * @param mixed $key
1249      * @return bool
1250      */
1251     public function offsetExists($key)
1252     {
1253         return ($this->limit(1, $key)->first() != null);
1254     }
1255 
1256     /**
1257      * Returns item stored in list with index $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1264 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1255 
1256     /**
1257      * Returns item stored in list with index $key
1258      *
1259      * The object returned is not cached, unlike {@link DataObject::get_one()}
1260      *
1261      * @param mixed $key
1262      * @return DataObject
1263      */
1264     public function offsetGet($key)
1265     {
1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1275 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key
1271      *
1272      * @param mixed $key
1273      * @param mixed $value
1274      */
1275     public function offsetSet($key, $value)
1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1285 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key
1282      *
1283      * @param mixed $key
1284      */
1285     public function offsetUnset($key)
1286     {
1287         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1288     }
1289 
1290     /**
1291      * Iterate over this DataList in "chunks". This will break the query in smaller subsets and avoid loading the entire

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 879 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList
876      *
877      * @return int
878      */
879     public function count()
880     {
881         return $this->dataQuery->count();
882     }
883 
884     /**
885      * Return the maximum value of the given field in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 869 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

860         return $this->dataQuery()->getQueryParams();
861     }
862 
863     /**
864      * Returns an Iterator for this DataList.
865      * This function allows you to use DataLists in foreach loops
866      *
867      * @return ArrayIterator
868      */
869     public function getIterator()
870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1251 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1242         });
1243     }
1244 
1245     /**
1246      * Returns whether an item with $key exists
1247      *
1248      * @param mixed $key
1249      * @return bool
1250      */
1251     public function offsetExists($key)
1252     {
1253         return ($this->limit(1, $key)->first() != null);
1254     }
1255 
1256     /**
1257      * Returns item stored in list with index $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1264 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1255 
1256     /**
1257      * Returns item stored in list with index $key
1258      *
1259      * The object returned is not cached, unlike {@link DataObject::get_one()}
1260      *
1261      * @param mixed $key
1262      * @return DataObject
1263      */
1264     public function offsetGet($key)
1265     {
1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1275 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1266         return $this->limit(1, $key)->first();
1267     }
1268 
1269     /**
1270      * Set an item with the key in $key
1271      *
1272      * @param mixed $key
1273      * @param mixed $value
1274      */
1275     public function offsetSet($key, $value)
1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 1285 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

1276     {
1277         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1278     }
1279 
1280     /**
1281      * Unset an item with the key in $key
1282      *
1283      * @param mixed $key
1284      */
1285     public function offsetUnset($key)
1286     {
1287         throw new \BadMethodCallException("Can't alter items in a DataList using array-access");
1288     }
1289 
1290     /**
1291      * Iterate over this DataList in "chunks". This will break the query in smaller subsets and avoid loading the entire

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 879 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList
876      *
877      * @return int
878      */
879     public function count()
880     {
881         return $this->dataQuery->count();
882     }
883 
884     /**
885      * Return the maximum value of the given field in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\DataList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 869 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/DataList.php

Source

860         return $this->dataQuery()->getQueryParams();
861     }
862 
863     /**
864      * Returns an Iterator for this DataList.
865      * This function allows you to use DataLists in foreach loops
866      *
867      * @return ArrayIterator
868      */
869     public function getIterator()
870     {
871         return new ArrayIterator($this->toArray());
872     }
873 
874     /**
875      * Return the number of items in this DataList

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Varchar)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Varchar, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Varchar, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Varchar)
    functions.php:34
  • singleton(Varchar)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Boolean)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Boolean, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Boolean, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Boolean)
    functions.php:34
  • singleton(Boolean)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Enum)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Enum, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Enum, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Enum)
    functions.php:34
  • singleton(Enum)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Int)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Int, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Int, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Int)
    functions.php:34
  • singleton(Int)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(HTMLText)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(HTMLText, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(HTMLText, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(HTMLText)
    functions.php:34
  • singleton(HTMLText)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Text)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Text, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Text, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Text)
    functions.php:34
  • singleton(Text)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(HTMLFragment)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(HTMLFragment, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(HTMLFragment, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(HTMLFragment)
    functions.php:34
  • singleton(HTMLFragment)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\CMS\Model\SiteTree)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\CMS\Model\SiteTree, )
    DataObjectSchema.php:415
  • SilverStripe\ORM\DataObjectSchema->classHasTable(SilverStripe\CMS\Model\SiteTree)
    ClassInfo.php:261
  • SilverStripe\Core\ClassInfo::ancestry(SilverStripe\CMS\Model\SiteTree, 1)
    DataQuery.php:222
  • SilverStripe\ORM\DataQuery->getFinalisedQuery()
    DataQuery.php:574
  • SilverStripe\ORM\DataQuery->firstRow()
    DataList.php:938
  • SilverStripe\ORM\DataList->first()
    DataObject.php:3384
  • SilverStripe\ORM\DataObject::get_one(SilverStripe\CMS\Model\SiteTree, Array)
    ModelAsController.php:144
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page, sustainable-practices)
    ModelAsController.php:165
  • SilverStripe\CMS\Controllers\ModelAsController->getNestedController()
    ModelAsController.php:98
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Psr\SimpleCache\CacheInterface.ThemeResourceLoader)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Psr\SimpleCache\CacheInterface.ThemeResourceLoader, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.ThemeResourceLoader, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.ThemeResourceLoader)
    ThemeResourceLoader.php:379
  • SilverStripe\View\ThemeResourceLoader->getCache()
    ThemeResourceLoader.php:193
  • SilverStripe\View\ThemeResourceLoader->findTemplate(Array, Array)
    SSViewer.php:465
  • SilverStripe\View\SSViewer::hasTemplate(Array)
    Controller.php:507
  • SilverStripe\Control\Controller->hasActionTemplate(sustainable-practices)
    Controller.php:431
  • SilverStripe\Control\Controller->hasAction(sustainable-practices)
    ContentController.php:202
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(DataListFilter.default)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(DataListFilter.default, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(DataListFilter.default, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(DataListFilter.default, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(DataListFilter.default, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(DataListFilter.default, ParentID, 7, Array)
    DataList.php:596
  • SilverStripe\ORM\DataList->createSearchFilter(ParentID, 7)
    DataList.php:417
  • SilverStripe\ORM\DataList->addFilter(Array)
    DataList.php:403
  • SilverStripe\ORM\DataList->filter(Array)
    ContentController.php:214
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
    ContentController.php:90
  • SilverStripe\CMS\Controllers\ContentController->__construct(Page)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(PageController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, PageController, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(PageController, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(PageController, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(PageController, Array)
    Injector.php:1113
  • SilverStripe\Core\Injector\Injector->create(PageController, Page)
    ModelAsController.php:48
  • SilverStripe\CMS\Controllers\ModelAsController::controller_for(Page)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

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

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 156 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

147      *
148      * @param string $httpMethod
149      * @param string $url
150      * @param array $getVars
151      * @param array $postVars
152      * @param string $body
153      */
154     public function __construct($httpMethod, $url, $getVars = [], $postVars = [], $body = null)
155     {
156         $this->httpMethod = strtoupper($httpMethod);
157         $this->setUrl($url);
158         $this->getVars = (array) $getVars;
159         $this->postVars = (array) $postVars;
160         $this->body = $body;
161         $this->scheme = "http";
162     }

Trace

  • strtoupper()
    HTTPRequest.php:156
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 813 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

804      * or for security purposes. filter_var($url, FILTER_VALIDATE_URL) has similar problems.
805      *
806      * @param string $url
807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');

Trace

  • strpos(, ?)
    Director.php:813
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 816 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

807      *
808      * @return bool
809      */
810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL

Trace

  • strpos(, #)
    Director.php:816
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 819 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

810     public static function is_absolute_url($url)
811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,

Trace

  • strpos(, :)
    Director.php:819
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

811     {
812         // Strip off the query and fragment parts of the URL before checking
813         if (($queryPosition = strpos($url, '?')) !== false) {
814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.

Trace

  • strpos(, /)
    Director.php:820
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 823 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

814             $url = substr($url, 0, $queryPosition - 1);
815         }
816         if (($hashPosition = strpos($url, '#')) !== false) {
817             $url = substr($url, 0, $hashPosition - 1);
818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition

Trace

  • parse_url(, 1)
    Director.php:823
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 827 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Director.php

Source

818         }
819         $colonPosition = strpos($url, ':');
820         $slashPosition = strpos($url, '/');
821         return (
822             // Base check for existence of a host on a compliant URL
823             parse_url($url, PHP_URL_HOST)
824             // Check for more than one leading slash without a protocol.
825             // While not a RFC compliant absolute URL, it is completed to a valid URL by some browsers,
826             // and hence a potential security risk. Single leading slashes are not an issue though.
827             || preg_match('%^\s*/{2,}%', $url)
828             || (
829                 // If a colon is found, check if it's part of a valid scheme definition
830                 // (meaning its not preceded by a slash).
831                 $colonPosition !== false
832                 && ($slashPosition === false || $colonPosition < $slashPosition)
833             )

Trace

  • preg_match(%^\s*/{2,}%, )
    Director.php:827
  • SilverStripe\Control\Director::is_absolute_url()
    Director.php:846
  • SilverStripe\Control\Director::is_relative_url()
    HTTPRequest.php:178
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 179 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/HTTPRequest.php

Source

170      * @param string $url The new URL
171      * @return HTTPRequest The updated request
172      */
173     public function setUrl($url)
174     {
175         $this->url = $url;
176 
177         // Normalize URL if its relative (strictly speaking), or has leading slashes
178         if (Director::is_relative_url($url) || preg_match('/^\//', $url)) {
179             $this->url = preg_replace(['/\/+/','/^\//', '/\/$/'], ['/','',''], $this->url);
180         }
181         if (preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $this->url, $matches)) {
182             $this->url = $matches[1];
183             $this->extension = $matches[2];
184         }
185         if ($this->url) {

Trace

  • preg_replace(Array, Array, )
    HTTPRequest.php:179
  • SilverStripe\Control\HTTPRequest->setUrl()
    HTTPRequest.php:157
  • SilverStripe\Control\HTTPRequest->__construct(, )
    NullHTTPRequest.php:15
  • SilverStripe\Control\NullHTTPRequest->__construct()
    RequestHandler.php:125
  • SilverStripe\Control\RequestHandler->__construct()
  • ReflectionClass->newInstance()
    InjectionCreator.php:28
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\CMS\Controllers\RootURLController, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\CMS\Controllers\RootURLController, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\CMS\Controllers\RootURLController, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\CMS\Controllers\RootURLController)
    functions.php:34
  • singleton(SilverStripe\CMS\Controllers\RootURLController)
    RootURLController.php:44
  • SilverStripe\CMS\Controllers\RootURLController::get_homepage_link()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 682 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Controller.php

Source

673         } else {
674             $args = func_get_args();
675         }
676         $result = "";
677         $queryargs = [];
678         $fragmentIdentifier = null;
679 
680         foreach ($args as $arg) {
681             // Find fragment identifier - keep the last one
682             if (strpos($arg, '#') !== false) {
683                 list($arg, $fragmentIdentifier) = explode('#', $arg, 2);
684             }
685             // Find querystrings
686             if (strpos($arg, '?') !== false) {
687                 list($arg, $suffix) = explode('?', $arg, 2);
688                 parse_str($suffix, $localargs);

Trace

  • strpos(, #)
    Controller.php:682
  • SilverStripe\Control\Controller::join_links(, /, )
    SiteTree.php:669
  • SilverStripe\CMS\Model\SiteTree->RelativeLink()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 686 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/Controller.php

Source

677         $queryargs = [];
678         $fragmentIdentifier = null;
679 
680         foreach ($args as $arg) {
681             // Find fragment identifier - keep the last one
682             if (strpos($arg, '#') !== false) {
683                 list($arg, $fragmentIdentifier) = explode('#', $arg, 2);
684             }
685             // Find querystrings
686             if (strpos($arg, '?') !== false) {
687                 list($arg, $suffix) = explode('?', $arg, 2);
688                 parse_str($suffix, $localargs);
689                 $queryargs = array_merge($queryargs, $localargs);
690             }
691             if ((is_string($arg) && $arg) || is_numeric($arg)) {
692                 $arg = (string) $arg;

Trace

  • strpos(, ?)
    Controller.php:686
  • SilverStripe\Control\Controller::join_links(, /, )
    SiteTree.php:669
  • SilverStripe\CMS\Model\SiteTree->RelativeLink()
    RootURLController.php:59
  • SilverStripe\CMS\Controllers\RootURLController::should_be_on_root(Page)
    ContentController.php:152
  • SilverStripe\CMS\Controllers\ContentController->init()
    Page.php:145
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\View\Requirements_Backend)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\View\Requirements_Backend, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\Requirements_Backend, Array)
    Injectable.php:30
  • SilverStripe\View\Requirements_Backend::create()
    Requirements.php:106
  • SilverStripe\View\Requirements::backend()
    Requirements.php:274
  • SilverStripe\View\Requirements::block(vendor/silverstripe/framework/thirdparty/jquery/jquery.js)
    Page.php:146
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\Storage\GeneratedAssetHandler, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\GeneratedAssetHandler, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\View\Requirements_Backend, SilverStripe\View\Requirements_Backend)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\View\Requirements_Backend, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\Requirements_Backend, Array)
    Injectable.php:30
  • SilverStripe\View\Requirements_Backend::create()
    Requirements.php:106
  • SilverStripe\View\Requirements::backend()
    Requirements.php:274
  • SilverStripe\View\Requirements::block(vendor/silverstripe/framework/thirdparty/jquery/jquery.js)
    Page.php:146
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(League\Flysystem\Filesystem.public)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(League\Flysystem\Filesystem.public, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(League\Flysystem\Filesystem.public, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(League\Flysystem\Filesystem.public)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$League\Flysystem\Filesystem.public)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\Assets\Flysystem\GeneratedAssets, SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\Storage\GeneratedAssetHandler, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\GeneratedAssetHandler, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\View\Requirements_Backend, SilverStripe\View\Requirements_Backend)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\View\Requirements_Backend, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\Requirements_Backend, Array)
    Injectable.php:30
  • SilverStripe\View\Requirements_Backend::create()
    Requirements.php:106
  • SilverStripe\View\Requirements::backend()
    Requirements.php:274
  • SilverStripe\View\Requirements::block(vendor/silverstripe/framework/thirdparty/jquery/jquery.js)
    Page.php:146
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\Flysystem\PublicAdapter)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\Flysystem\PublicAdapter, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Flysystem\PublicAdapter, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Flysystem\PublicAdapter)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Flysystem\PublicAdapter)
    Injector.php:515
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(Array)
    Injector.php:499
  • SilverStripe\Core\Injector\Injector->updateSpecConstructor(Array)
    Injector.php:998
  • SilverStripe\Core\Injector\Injector->getNamedService(League\Flysystem\Filesystem.public, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(League\Flysystem\Filesystem.public)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$League\Flysystem\Filesystem.public)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\Assets\Flysystem\GeneratedAssets, SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\Storage\GeneratedAssetHandler, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\GeneratedAssetHandler, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Storage\GeneratedAssetHandler)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\View\Requirements_Backend, SilverStripe\View\Requirements_Backend)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\View\Requirements_Backend, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\View\Requirements_Backend, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\Requirements_Backend, Array)
    Injectable.php:30
  • SilverStripe\View\Requirements_Backend::create()
    Requirements.php:106
  • SilverStripe\View\Requirements::backend()
    Requirements.php:274
  • SilverStripe\View\Requirements::block(vendor/silverstripe/framework/thirdparty/jquery/jquery.js)
    Page.php:146
  • PageController->init()
    Controller.php:127
  • SilverStripe\Control\Controller->doInit()
    Controller.php:168
  • SilverStripe\Control\Controller->beforeHandleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:206
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 181 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Control/RequestHandler.php

Source

172         // you had $Action in your rule, and (b) RequestHandler didn't have one. $Action is better
173         if ($action == 'handleAction') {
174             // TODO Fix LeftAndMain usage
175             // Deprecation::notice('3.2.0', 'Calling handleAction directly is deprecated - use $Action instead');
176             $action = '$Action';
177         }
178 
179         // Actions can reference URL parameters, eg, '$Action/$ID/$OtherID' => '$Action',
180         if ($action[0] == '$') {
181             $action = str_replace("-", "_", $request->latestParam(substr($action, 1)));
182         }
183 
184         if (!$action) {
185             if (isset($_REQUEST['debug_request'])) {
186                 Debug::message("Action not set; using default action method name 'index'");
187             }

Trace

  • str_replace(-, _, )
    RequestHandler.php:181
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Psr\SimpleCache\CacheInterface.cacheblock)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Psr\SimpleCache\CacheInterface.cacheblock, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.cacheblock, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.cacheblock)
    SSViewer.php:558
  • SilverStripe\View\SSViewer->getPartialCacheStore()
    SSViewer.php:596
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(DBFile)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(DBFile, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(DBFile, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(DBFile)
    functions.php:34
  • singleton(DBFile)
    DataObjectSchema.php:495
  • SilverStripe\ORM\DataObjectSchema->cacheDatabaseFields(SilverStripe\Assets\File)
    DataObjectSchema.php:355
  • SilverStripe\ORM\DataObjectSchema->databaseFields(SilverStripe\Assets\File, )
    DataObjectSchema.php:218
  • SilverStripe\ORM\DataObjectSchema->fieldSpecs(SilverStripe\Assets\Image, 0)
    DataObjectSchema.php:250
  • SilverStripe\ORM\DataObjectSchema->fieldSpec(SilverStripe\Assets\Image, File)
    DataObject.php:2978
  • SilverStripe\ORM\DataObject->hasField(File)
    ViewableData.php:135
  • SilverStripe\View\ViewableData->__get(File)
    Image.php:40
  • SilverStripe\Assets\Image->__construct(, 1)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\Assets\Image, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\Image, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Image, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Image)
    functions.php:34
  • singleton(SilverStripe\Assets\Image)
    DataQuery.php:177
  • SilverStripe\ORM\DataQuery->initialiseQuery()
    DataQuery.php:79
  • SilverStripe\ORM\DataQuery->__construct(SilverStripe\Assets\Image)
    DataList.php:61
  • SilverStripe\ORM\DataList->__construct(SilverStripe\Assets\Image)
  • ReflectionClass->newInstanceArgs(Array)
    InjectionCreator.php:25
  • SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\ORM\DataList, Array)
    Injector.php:594
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\ORM\DataList, prototype)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\ORM\DataList, , Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\ORM\DataList, , Array)
    Injector.php:1125
  • SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\ORM\DataList, Array)
    Injectable.php:30
  • SilverStripe\View\ViewableData::create(SilverStripe\Assets\Image)
    DataObject.php:3336
  • SilverStripe\ORM\DataObject::get(SilverStripe\Assets\Image)
    DataObject.php:1883
  • SilverStripe\ORM\DataObject->getComponent(SiteLogo)
    CustomMethods.php:93
  • SilverStripe\View\ViewableData->__call(SiteLogo, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SiteLogo, , 1, SiteLogo)
    SSViewer_Scope.php:179
  • SilverStripe\View\SSViewer_Scope->getObj(SiteLogo, , 1, )
    SSViewer_DataPresenter.php:282
  • SilverStripe\View\SSViewer_DataPresenter->getObj(SiteLogo, , 1, )
    SSViewer_Scope.php:217
  • SilverStripe\View\SSViewer_Scope->obj(SiteLogo, , 1, )
    SSViewer_DataPresenter.php:269
  • SilverStripe\View\SSViewer_DataPresenter->obj(SiteLogo, , 1)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\Storage\AssetStore)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\Storage\AssetStore, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\AssetStore, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\AssetStore)
    DBFile.php:99
  • SilverStripe\Assets\Storage\DBFile->getStore()
    DBFile.php:379
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(League\Flysystem\Filesystem.protected)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(League\Flysystem\Filesystem.protected, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(League\Flysystem\Filesystem.protected, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(League\Flysystem\Filesystem.protected)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$League\Flysystem\Filesystem.protected)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\Assets\Flysystem\FlysystemAssetStore, SilverStripe\Assets\Storage\AssetStore)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\Storage\AssetStore, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\AssetStore, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\AssetStore)
    DBFile.php:99
  • SilverStripe\Assets\Storage\DBFile->getStore()
    DBFile.php:379
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\Flysystem\ProtectedAdapter)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\Flysystem\ProtectedAdapter, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Flysystem\ProtectedAdapter, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Flysystem\ProtectedAdapter)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Flysystem\ProtectedAdapter)
    Injector.php:515
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(Array)
    Injector.php:499
  • SilverStripe\Core\Injector\Injector->updateSpecConstructor(Array)
    Injector.php:998
  • SilverStripe\Core\Injector\Injector->getNamedService(League\Flysystem\Filesystem.protected, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(League\Flysystem\Filesystem.protected)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$League\Flysystem\Filesystem.protected)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\Assets\Flysystem\FlysystemAssetStore, SilverStripe\Assets\Storage\AssetStore)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\Storage\AssetStore, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\AssetStore, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\AssetStore)
    DBFile.php:99
  • SilverStripe\Assets\Storage\DBFile->getStore()
    DBFile.php:379
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public)
    FlysystemAssetStore.php:211
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->getPublicResolutionStrategy()
    FlysystemAssetStore.php:298
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->applyToFileOnFilesystem(Closure, SilverStripe\Assets\FilenameParsing\ParsedFileID)
    FlysystemAssetStore.php:1277
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->exists(Uploads/Agri-logo.png, c6f4bf882da795a5dd826d80e4f4f412240f14c0, )
    DBFile.php:380
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\Storage\FileHashingService)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\Storage\FileHashingService, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\Storage\FileHashingService, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\Storage\FileHashingService)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\Assets\Storage\FileHashingService)
    Injector.php:743
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy, SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public)
    FlysystemAssetStore.php:211
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->getPublicResolutionStrategy()
    FlysystemAssetStore.php:298
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->applyToFileOnFilesystem(Closure, SilverStripe\Assets\FilenameParsing\ParsedFileID)
    FlysystemAssetStore.php:1277
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->exists(Uploads/Agri-logo.png, c6f4bf882da795a5dd826d80e4f4f412240f14c0, )
    DBFile.php:380
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected)
    FlysystemAssetStore.php:237
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->getProtectedResolutionStrategy()
    FlysystemAssetStore.php:304
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->applyToFileOnFilesystem(Closure, SilverStripe\Assets\FilenameParsing\ParsedFileID)
    FlysystemAssetStore.php:1277
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->exists(Uploads/Agri-logo.png, c6f4bf882da795a5dd826d80e4f4f412240f14c0, )
    DBFile.php:380
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Psr\SimpleCache\CacheInterface.Sha1FileHashingService)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Psr\SimpleCache\CacheInterface.Sha1FileHashingService, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Psr\SimpleCache\CacheInterface.Sha1FileHashingService, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Psr\SimpleCache\CacheInterface.Sha1FileHashingService)
    Sha1FileHashingService.php:165
  • SilverStripe\Assets\Storage\Sha1FileHashingService->getCache()
    Sha1FileHashingService.php:219
  • SilverStripe\Assets\Storage\Sha1FileHashingService->get(Uploads/Agri-logo.png, League\Flysystem\Filesystem)
    Sha1FileHashingService.php:115
  • SilverStripe\Assets\Storage\Sha1FileHashingService->computeFromFile(Uploads/Agri-logo.png, League\Flysystem\Filesystem)
    FlysystemAssetStore.php:332
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->applyToFileOnFilesystem(Closure, SilverStripe\Assets\FilenameParsing\ParsedFileID)
    FlysystemAssetStore.php:1277
  • SilverStripe\Assets\Flysystem\FlysystemAssetStore->exists(Uploads/Agri-logo.png, c6f4bf882da795a5dd826d80e4f4f412240f14c0, )
    DBFile.php:380
  • SilverStripe\Assets\Storage\DBFile->exists()
    File.php:884
  • SilverStripe\Assets\File->getURL()
    ViewableData.php:133
  • SilverStripe\View\ViewableData->__get(URL)
    ViewableData.php:487
  • SilverStripe\View\ViewableData->obj(URL, , 1)
    ViewableData.php:547
  • SilverStripe\View\ViewableData->XML_val(URL, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(XML_val, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(XML_val, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:9
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\i18n\Messages\MessageProvider, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Symfony\Component\Translation\TranslatorInterface, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\TranslatorInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\TranslatorInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 527 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

518         }
519 
520         // Evaluate service references
521         if (is_string($value) && strpos($value, '%$') === 0) {
522             $id = substr($value, 2);
523             return $this->get($id);
524         }
525 
526         // Evaluate constants surrounded by back ticks
527         if (preg_match('/^`(?<name>[^`]+)`$/', $value, $matches)) {
528             $envValue = Environment::getEnv($matches['name']);
529             if ($envValue !== false) {
530                 $value = $envValue;
531             } elseif (defined($matches['name'])) {
532                 $value = constant($matches['name']);
533             } else {

Trace

  • preg_match(/^`(?<name>[^`]+)`$/, , )
    Injector.php:527
  • SilverStripe\Core\Injector\Injector->convertServiceProperty()
    Injector.php:515
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(Array)
    Injector.php:499
  • SilverStripe\Core\Injector\Injector->updateSpecConstructor(Array)
    Injector.php:998
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\TranslatorInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\TranslatorInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Symfony\Component\Config\ConfigCacheFactoryInterface)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Symfony\Component\Config\ConfigCacheFactoryInterface, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Config\ConfigCacheFactoryInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Config\ConfigCacheFactoryInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Config\ConfigCacheFactoryInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(Symfony\Component\Translation\Translator, Symfony\Component\Translation\TranslatorInterface)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, Symfony\Component\Translation\TranslatorInterface, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\TranslatorInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\TranslatorInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(Symfony\Component\Translation\Loader\LoaderInterface, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\Loader\LoaderInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:515
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(Array)
    Injector.php:686
  • SilverStripe\Core\Injector\Injector->inject(Symfony\Component\Translation\Translator, Symfony\Component\Translation\TranslatorInterface)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, Symfony\Component\Translation\TranslatorInterface, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\TranslatorInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\TranslatorInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\i18n\Messages\Reader)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\i18n\Messages\Reader, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\Reader, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\Reader)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$SilverStripe\i18n\Messages\Reader)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\ModuleYamlLoader, Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, Symfony\Component\Translation\Loader\LoaderInterface, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\Loader\LoaderInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\Loader\LoaderInterface)
    Injector.php:515
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(Array)
    Injector.php:686
  • SilverStripe\Core\Injector\Injector->inject(Symfony\Component\Translation\Translator, Symfony\Component\Translation\TranslatorInterface)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, Symfony\Component\Translation\TranslatorInterface, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(Symfony\Component\Translation\TranslatorInterface, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(Symfony\Component\Translation\TranslatorInterface)
    Injector.php:523
  • SilverStripe\Core\Injector\Injector->convertServiceProperty(%$Symfony\Component\Translation\TranslatorInterface)
    Injector.php:650
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 422 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/Core/Injector/Injector.php

Source

413 
414             // see if we already have this defined. If so, check priority weighting
415             if (isset($this->specs[$id]) && isset($this->specs[$id]['priority'])) {
416                 if ($this->specs[$id]['priority'] > $priority) {
417                     return $this;
418                 }
419             }
420 
421             // okay, actually include it now we know we're going to use it
422             if (file_exists($file)) {
423                 require_once $file;
424             }
425 
426             // make sure to set the id for later when instantiating
427             // to ensure we get cached
428             $spec['id'] = $id;

Trace

  • file_exists()
    Injector.php:422
  • SilverStripe\Core\Injector\Injector->load(Array)
    Injector.php:1074
  • SilverStripe\Core\Injector\Injector->getServiceSpec(SilverStripe\i18n\Data\Locales)
    Injector.php:1042
  • SilverStripe\Core\Injector\Injector->getServiceNamedSpec(SilverStripe\i18n\Data\Locales, Array)
    Injector.php:980
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Data\Locales, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Data\Locales)
    i18n.php:395
  • SilverStripe\i18n\i18n::getData()
    SymfonyMessageProvider.php:76
  • SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider->load(en)
    SymfonyMessageProvider.php:54
  • SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider->setTranslator(Symfony\Component\Translation\Translator)
    Injector.php:807
  • SilverStripe\Core\Injector\Injector->setObjectProperty(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, Translator, Symfony\Component\Translation\Translator)
    Injector.php:651
  • SilverStripe\Core\Injector\Injector->inject(SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider, SilverStripe\i18n\Messages\MessageProvider)
    Injector.php:620
  • SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\i18n\Messages\MessageProvider, singleton)
    Injector.php:1002
  • SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\i18n\Messages\MessageProvider, 1, Array)
    Injector.php:955
  • SilverStripe\Core\Injector\Injector->get(SilverStripe\i18n\Messages\MessageProvider)
    i18n.php:385
  • SilverStripe\i18n\i18n::getMessageProvider()
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] SilverStripe\i18n\Messages\Symfony\FlushInvalidatedResource implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 16 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/i18n/Messages/Symfony/FlushInvalidatedResource.php

Source

7 use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
8 
9 /**
10  * Some arbitrary resource which expires when flush is invoked.
11  * Uses a canary file to mark future freshness requests as stale.
12  *
13  * @link https://media.giphy.com/media/fRRD3T37DeY6Y/giphy.gif for use case
14  * @see DirectoryResource
15  */
16 class FlushInvalidatedResource implements SelfCheckingResourceInterface, \Serializable, Flushable
17 {
18 
19     public function __toString()
20     {
21         return md5(__CLASS__);
22     }

Trace

  • Symfony\Component\Config\ResourceCheckerConfigCache->Symfony\Component\Config\{closure}(8192, SilverStripe\i18n\Messages\Symfony\FlushInvalidatedResource implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary), /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/i18n/Messages/Symfony/FlushInvalidatedResource.php, 16)
    FlushInvalidatedResource.php:16
  • include(/usr/www/users/greenejxcx/vendor/silverstripe/framework/src/i18n/Messages/Symfony/FlushInvalidatedResource.php)
    ClassLoader.php:478
  • Composer\Autoload\includeFile(/usr/www/users/greenejxcx/vendor/composer/../silverstripe/framework/src/i18n/Messages/Symfony/FlushInvalidatedResource.php)
    ClassLoader.php:346
  • Composer\Autoload\ClassLoader->loadClass(SilverStripe\i18n\Messages\Symfony\FlushInvalidatedResource)
  • unserialize(a:1:{i:0;C:59:"SilverStripe\i18n\Messages\Symfony\FlushInvalidatedResource":0:{}})
    ResourceCheckerConfigCache.php:168
  • Symfony\Component\Config\ResourceCheckerConfigCache->safelyUnserialize(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/catalogue.en_US.8Fea9HX.php.meta)
    ResourceCheckerConfigCache.php:85
  • Symfony\Component\Config\ResourceCheckerConfigCache->isFresh()
    ResourceCheckerConfigCacheFactory.php:42
  • Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/catalogue.en_US.8Fea9HX.php, Closure)
    Translator.php:348
  • Symfony\Component\Translation\Translator->initializeCacheCatalogue(en_US)
    Translator.php:316
  • Symfony\Component\Translation\Translator->loadCatalogue(en_US)
    Translator.php:292
  • Symfony\Component\Translation\Translator->getCatalogue(en_US)
    Translator.php:223
  • Symfony\Component\Translation\Translator->trans(SilverStripe\CMS\Search\SearchForm.SEARCH, Array, messages, en_US)
    SymfonyMessageProvider.php:97
  • SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider->translate(SilverStripe\CMS\Search\SearchForm.SEARCH, Search, Array)
    i18n.php:206
  • SilverStripe\i18n\i18n::_t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    functions.php:63
  • _t(SilverStripe\CMS\Search\SearchForm.SEARCH, Search)
    ContentControllerSearchExtension.php:34
  • SilverStripe\CMS\Search\ContentControllerSearchExtension->SearchForm()
  • call_user_func_array(Array, Array)
    Extensible.php:144
  • SilverStripe\View\ViewableData->SilverStripe\Core\{closure}(PageController, Array)
    CustomMethods.php:61
  • SilverStripe\View\ViewableData->__call(SearchForm, Array)
  • call_user_func_array(Array, Array)
    ViewableData.php:485
  • SilverStripe\View\ViewableData->obj(SearchForm, , 1)
    ViewableData.php:532
  • SilverStripe\View\ViewableData->hasValue(SearchForm, , 1)
    SSViewer_Scope.php:323
  • SilverStripe\View\SSViewer_Scope->__call(hasValue, Array)
    SSViewer_DataPresenter.php:309
  • SilverStripe\View\SSViewer_DataPresenter->__call(hasValue, Array)
    .cachethemes.optic.templates.Includes.Logo.ss:60
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Includes.Logo.ss, PageController, Array, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController, Array, SilverStripe\View\SSViewer_DataPresenter)
    SSViewer.php:764
  • SilverStripe\View\SSViewer::execute_template(Array, PageController, Array, SilverStripe\View\SSViewer_DataPresenter, 1)
    .cachethemes.optic.templates.Page.ss:125
  • include(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss)
    SSViewer.php:602
  • SilverStripe\View\SSViewer->includeGeneratedTemplate(/usr/home/greenejxcx/.tmp/silverstripe-cache-php8.1.25-usr-www-users-greenejxcx/greenejxcx/.cachethemes.optic.templates.Page.ss, PageController, , Array, )
    SSViewer.php:674
  • SilverStripe\View\SSViewer->process(PageController)
    Controller.php:302
  • SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, index)
    RequestHandler.php:202
  • SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
    Controller.php:212
  • SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:251
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ContentController.php:227
  • SilverStripe\CMS\Controllers\ContentController->handleRequest(SilverStripe\Control\HTTPRequest)
    ModelAsController.php:101
  • SilverStripe\CMS\Controllers\ModelAsController->handleRequest(SilverStripe\Control\HTTPRequest)
    Director.php:360
  • SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    VersionedHTTPMiddleware.php:41
  • SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    LoginSessionMiddleware.php:29
  • SilverStripe\SessionManager\Middleware\LoginSessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ConfirmationMiddleware.php:254
  • SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ExecMetricMiddleware.php:20
  • SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    PasswordExpirationMiddleware.php:84
  • SilverStripe\Security\PasswordExpirationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    BasicAuthMiddleware.php:68
  • SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AuthenticationMiddleware.php:61
  • SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    CanonicalURLMiddleware.php:190
  • SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPCacheControlMiddleware.php:42
  • SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    ChangeDetectionMiddleware.php:28
  • SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    FlushMiddleware.php:27
  • SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    RequestProcessor.php:66
  • SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    SessionMiddleware.php:20
  • SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    AllowedHostsMiddleware.php:60
  • SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    TrustedProxyMiddleware.php:176
  • SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
    HTTPMiddlewareAware.php:62
  • SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    Director.php:369
  • SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:117
  • SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
  • call_user_func(Closure, SilverStripe\Control\HTTPRequest)
    HTTPApplication.php:136
  • SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
    HTTPMiddlewareAware.php:65
  • SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
    HTTPApplication.php:137
  • SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, )
    HTTPApplication.php:116
  • SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
    index.php:24
GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\ArrayList::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 820 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/ArrayList.php

Source

811     }
812 
813 
814     /**
815      * Returns whether an item with $key exists
816      *
817      * @param mixed $offset
818      * @return bool
819      */
820     public function offsetExists($offset)
821     {
822         return array_key_exists($offset, $this->items);
823     }
824 
825     /**
826      * Returns item stored in list with index $key

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\ArrayList::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

Line 831 in /usr/www/users/greenejxcx/vendor/silverstripe/framework/src/ORM/ArrayList.php

Source

822         return array_key_exists($offset, $this->items);
823     }
824 
825     /**
826      * Returns item stored in list with index $key
827      *
828      * @param mixed $offset
829      * @return DataObject
830      */
831     public function offsetGet($offset)
832     {
833         if ($this->offsetExists($offset)) {
834             return $this->items[$offset];
835         }
836         return null;
837     }

Trace

GET /tips-and-tools/sustainable-practices/testing-for-healthy-soils/

[Deprecated] Return type of SilverStripe\ORM\ArrayList::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[