After just installing the new Grav version via the admin panel the site is no longer accessible. Going to the page ‘localhost/site’ it gives the error ‘You don’t have permission to access this resource.’ Goging to ‘localhost/site/admin’ gives the error ‘The requested URL was not found on this server.’
I am using Xampp on Windows. Latest version.
Thanks!
Anybody? Still not able to access the page. Found a tip on the Grav page to change param_sep: ‘;’ but still not working
Thanks for answering!
I followed the scond sugestion and that gives the PHP 8.2.4 infopage
I am working on windows so setting permissions is a little bit different. I went to the root folder of the site and made sure the settings at the security tab of the file properties are allowing access to all users for reading, writing and executing
However it still not working.
I have two other sites also made in Grav. For these I did not update to the latest version of Grav, and these are still accesible… So somehow updating Grav made the site unaccessible.
Update:
I feel ashamed, but problem is solved.
For some reason the index.php and some other files were deleted from the home directory.
The same happend to another site I updated the Grav version via the admin pannel Now I know how to fix it, but still curious why this is happening
Missing were
Index.php
.dependencies
.editorconfig
.gitignore
codeception.yml
@Richards, Odd… would you mind:
- sharing from with version to which version you are upgrading?
- sharing any relevant errors in Grav’s logfile?
I just did another upgrade.
This time to version 1.10.42 from 1.7.34
And again index.php etc disappeared.
is this error relevant?
[2023-09-23 20:57:13] grav.CRITICAL: Trying to access array offset on value of type bool
@Richards, I presume you upgraded from Grav 1.7.34 to Grav 1.7.42.3, which comes with Admin 1.10.42?
The critical error might be relevant if it breaks the upgrade. But it could arise anywhere. The stacktrace might provide more information about the origin of the error.
Yes,
the old admin plugin was 1.10.34
the old grav was 1.7.34
Do you mean the complete logfile with the stack trace?
[2023-09-23 20:57:13] grav.CRITICAL: Trying to access array offset on value of type bool - Trace: #0 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Debugger.php(843): Whoops\Run->handleError(2, ‘Trying to acces…’, ‘D:\Xampp\htdocs…’, 100) #1 D:\Xampp\htdocs\Top-it\user\plugins\admin\vendor\p3k\picofeed\lib\PicoFeed\Parser\DateParser.php(100): Grav\Common\Debugger->deprecatedErrorHandler(2, ‘Trying to acces…’, ‘D:\Xampp\htdocs…’, 100) #2 D:\Xampp\htdocs\Top-it\user\plugins\admin\vendor\p3k\picofeed\lib\PicoFeed\Parser\DateParser.php(76): PicoFeed\Parser\DateParser->getValidDate(‘Y-m-d\TH:i:sP’, ‘2022-12-25T12:0…’) #3 D:\Xampp\htdocs\Top-it\user\plugins\admin\vendor\p3k\picofeed\lib\PicoFeed\Parser\Atom.php(153): PicoFeed\Parser\DateParser->getDateTime(‘2022-12-25T12:0…’) #4 D:\Xampp\htdocs\Top-it\user\plugins\admin\vendor\p3k\picofeed\lib\PicoFeed\Parser\Parser.php(142): PicoFeed\Parser\Atom->findFeedDate(Object(SimpleXMLElement), Object(PicoFeed\Parser\Feed)) #5 D:\Xampp\htdocs\Top-it\user\plugins\admin\classes\plugin\Admin.php(1812): PicoFeed\Parser\Parser->execute() #6 D:\Xampp\htdocs\Top-it\user\plugins\admin\classes\plugin\AdminController.php(483): Grav\Plugin\Admin\Admin->getFeed(false) #7 D:\Xampp\htdocs\Top-it\user\plugins\admin\classes\plugin\AdminBaseController.php(104): Grav\Plugin\Admin\AdminController->taskGetNewsFeed() #8 D:\Xampp\htdocs\Top-it\user\plugins\admin\admin.php(1008): Grav\Plugin\Admin\AdminBaseController->execute() #9 D:\Xampp\htdocs\Top-it\user\plugins\admin\admin.php(558): Grav\Plugin\AdminPlugin->initializeController(‘getNewsFeed’, Array) #10 D:\Xampp\htdocs\Top-it\vendor\symfony\event-dispatcher\EventDispatcher.php(264): Grav\Plugin\AdminPlugin->onPagesInitialized(Object(RocketTheme\Toolbox\Event\Event), ‘onPagesInitiali…’, Object(Symfony\Component\EventDispatcher\EventDispatcher)) #11 D:\Xampp\htdocs\Top-it\vendor\symfony\event-dispatcher\EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event)) #12 D:\Xampp\htdocs\Top-it\vendor\symfony\event-dispatcher\EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, ‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event)) #13 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Grav.php(592): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(RocketTheme\Toolbox\Event\Event), ‘onPagesInitiali…’) #14 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\PagesProcessor.php(48): Grav\Common\Grav->fireEvent(‘onPagesInitiali…’, Object(RocketTheme\Toolbox\Event\Event)) #15 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\PagesProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #16 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #17 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\TwigProcessor.php(38): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #18 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\TwigProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #19 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #20 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\AssetsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #21 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\AssetsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #22 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #23 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\SchedulerProcessor.php(40): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #24 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\SchedulerProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #25 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #26 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\BackupsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #27 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\BackupsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #28 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #29 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\TasksProcessor.php(69): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #30 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\TasksProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #31 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #32 D:\Xampp\htdocs\Top-it\user\plugins\admin\classes\plugin\Router.php(65): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #33 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Plugin\Admin\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #34 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #35 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\RequestProcessor.php(64): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #36 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\RequestProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #37 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #38 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\ThemesProcessor.php(38): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #39 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\ThemesProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #40 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #41 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\PluginsProcessor.php(39): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #42 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\PluginsProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #43 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #44 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\InitializeProcessor.php(130): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #45 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Debugger.php(546): Grav\Common\Processors\InitializeProcessor::Grav\Common\Processors{closure}() #46 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Processors\InitializeProcessor.php(129): Grav\Common\Debugger->profile(Object(Closure)) #47 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\InitializeProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #48 D:\Xampp\htdocs\Top-it\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #49 D:\Xampp\htdocs\Top-it\system\src\Grav\Common\Grav.php(307): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #50 D:\Xampp\htdocs\Top-it\index.php(47): Grav\Common\Grav->process() #51 {main}
@Richards, Looking at the trace, picofeed is throwing the error at D:\Xampp\htdocs\Top-it\user\plugins\admin\vendor\p3k\picofeed\lib\PicoFeed\Parser\DateParser.php(100)
Searching through issues and pull-requests in repo of Picofeed yields this PR: Fix php warning in PHP8.2 in getValidDate() by mantis · Pull Request #13 · aaronpk/picofeed · GitHub. (Note the post from Grav’s rhukster)
This PR should fix issue DateTime::getLastErrors() not returning false when no errors/warnings · Issue #9431 · php/php-src · GitHub
The fix is available in the latest version of Admin, but not in the Admin version you are using for the site you wish to upgrade.
I have no idea why this leads to missing files in your case.
Suggestion:
- Try using the cli instead of Admin:
bin/gpm selfupgrade -f
Thanks! I have the latest admin plugin running now, so that should fix it then. Otherwise I will use de CLI or just put index.php etc back myself.