Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

grav.CRITICAL: Page Not Found

Started by Muut Archive 10 years ago · 8 replies · 419 views
10 years ago

The website is working but it gives us the error. What might be the problem?

PHP

[2016-05-26 12:19:54] grav.CRITICAL: Page Not Found - Trace: #0 /var/www/u0056176/data/www/truck-center.ee/vendor/pimple/pimple/src/Pi mple/Container.php(113): Grav\Common\Grav::Grav\Common\{closure}(Object(Grav\Common\Grav)) #1 /var/www/u0056176/data/www/truck-center.ee/user/plugins/form/form.php( 43): Pimple\Container->offsetGet('page') #2 [internal function]: Grav\Plugin\FormPlugin->onPageInitialized(Object(RocketTheme\Toolbox\E vent\Event), 'onPageInitializ...', Object(RocketTheme\Toolbox\Event\EventDispatcher)) #3 /var/www/u0056176/data/www/truck-center.ee/vendor/symfony/event-dispat cher/EventDispatcher.php(181): call_user_func(Array, Object(RocketTheme\Toolbox\Event\Event), 'onPageInitializ...', Object(RocketTheme\Toolbox\Event\EventDispatcher)) #4 /var/www/u0056176/data/www/truck-center.ee/vendor/symfony/event-dispat cher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'onPageInitializ...', Object(RocketTheme\Toolbox\Event\Event)) #5 /va r/www/u0056176/data/www/truck-center.ee/vendor/rockettheme/toolbox/ Event/src/EventDispatcher.php(23): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('onPageIni tializ...', Object(RocketTheme\Toolbox\Event\Event)) #6 /var/www/u0056176/data/www/truck-center.ee/system/src/Grav/Common/Grav .php(449): RocketTheme\Toolbox\Event\EventDispatcher->dispatch('onPageInitializ.. .', NULL) #7 /var/www/u0056176/data/www/truck-center.ee/system/src/Grav/Common/Grav .php(282): Grav\Common\Grav->fireEvent('onPageInitializ...') #8 /var/www/u0056176/data/www/truck-center.ee/index.php(38): Grav\Common\Grav->process() #9 {main} [] []
---
10 years ago

Looks like the trouble is in the precache plugin.... Any ideas?

10 years ago

or not in this plugin. This is really strange.

10 years ago

Looks like the form plugin is trying to initialize a page that doesn't exist.

Are you using form on the front end? Did you modify form plugin config?

10 years ago

Well, if i am not mistaken we did not even touch/use it. And i am not :)

10 years ago

It's used by admin but should not be causing any errors unless you changed something

10 years ago

Pm me a zip of the site and I'll take a look.

10 years ago

Ok, so this is pretty simple. Those logs are generated when you visit an invalid URL. This is because you have removed the 'error' plugin which traditionally handles 404 errors in a 'pretty' way. You can simply install this back with:

BASH
$ bin/gpm install error

After that you should style the resulting error page to fit in your theme.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago