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

Fatal error - Unintelligible message

Solved by pamtbaau View solution

Started by ToTechBase 5 years ago · 3 replies · 528 views
5 years ago

Hey everyone,
after new year my site is not visible anymore, and I have absolutely no glue, what the error means:

" Fatal error : Uncaught RocketTheme\Toolbox\Compat\Yaml\Exception\ParseException: Unexpected characters near "re interested we got something for you. Begin your journey with cool projects, ideas and plans right here!'" at line 10 (near "description: 'Build your own stuff, the way you want it, with our help! Craftsman, Art, electronics, wood working, metal working what ever you're interested we got something for you. Begin your journey with cool projects, ideas and plans right here!'"). in C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Inline.php:75 Stack trace: #0 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Parser.php(536): RocketTheme\Toolbox\Compat\Yaml\Inline::parse(''Build your own...', false, false, false, Array) #1 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Parser.php(258): RocketTheme\Toolbox\Compat\Yaml\Parser->parseValue(''Build your own...', false, false, false, 'mapping') #2 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Parser.php(320): RocketTheme\Toolbox\Compat\Yaml\Parser->doParse('description: 'B...', false, false, false) #3 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Parser.php(246): RocketTheme\Toolbox\Compat\Yaml\Parser->parseBlock(9, 'description: 'B...', false, false, false) #4 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Parser.php(78): RocketTheme\Toolbox\Compat\Yaml\Parser->doParse(Array, false, false, false) #5 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\Compat\src\Yaml\Yaml.php(65): RocketTheme\Toolbox\Compat\Yaml\Parser->parse('title: ToTechBa...', false, false, false) #6 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\rockettheme\toolbox\File\src\YamlFile.php(151): RocketTheme\Toolbox\Compat\Yaml\Yaml::parse('title: ToTechBa...') #7 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\File\CompiledFile.php(66): RocketTheme\Toolbox\File\YamlFile->decode('title: ToTechBa...') #8 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledConfig.php(111): Grav\Common\File\CompiledYamlFile->content() #9 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledBase.php(180): Grav\Common\Config\CompiledConfig->loadFile('site', 'C:/Program File...') #10 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledBase.php(112): Grav\Common\Config\CompiledBase->loadFiles() #11 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledConfig.php(61): Grav\Common\Config\CompiledBase->load() #12 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Service\ConfigServiceProvider.php(136): Grav\Common\Config\CompiledConfig->load() #13 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Service\ConfigServiceProvider.php(50): Grav\Common\Service\ConfigServiceProvider::load(Object(Grav\Common\Grav)) #14 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\pimple\pimple\src\Pimple\Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #15 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Processors\InitializeProcessor.php(176): Pimple\Container->offsetGet('config') #16 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Processors\InitializeProcessor.php(73): Grav\Common\Processors\InitializeProcessor->initializeConfig() #17 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\InitializeProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #18 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #19 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Grav.php(303): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #20 C:\Program Files\Xampp\htdocs\AWS-Homepage\index.php(58): Grav\Common\Grav->process() #21 {main} Next RuntimeException: Failed to read site.yaml: Unexpected characters near "re interested we got something for you. Begin your journey with cool projects, ideas and plans right here!'" at line 10 (near "description: 'Build your own stuff, the way you want it, with our help! Craftsman, Art, electronics, wood working, metal working what ever you're interested we got something for you. Begin your journey with cool projects, ideas and plans right here!'"). in C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\File\CompiledFile.php:91 Stack trace: #0 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledConfig.php(111): Grav\Common\File\CompiledYamlFile->content() #1 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledBase.php(180): Grav\Common\Config\CompiledConfig->loadFile('site', 'C:/Program File...') #2 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledBase.php(112): Grav\Common\Config\CompiledBase->loadFiles() #3 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Config\CompiledConfig.php(61): Grav\Common\Config\CompiledBase->load() #4 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Service\ConfigServiceProvider.php(136): Grav\Common\Config\CompiledConfig->load() #5 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Service\ConfigServiceProvider.php(50): Grav\Common\Service\ConfigServiceProvider::load(Object(Grav\Common\Grav)) #6 C:\Program Files\Xampp\htdocs\AWS-Homepage\vendor\pimple\pimple\src\Pimple\Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #7 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Processors\InitializeProcessor.php(176): Pimple\Container->offsetGet('config') #8 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Processors\InitializeProcessor.php(73): Grav\Common\Processors\InitializeProcessor->initializeConfig() #9 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(50): Grav\Common\Processors\InitializeProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler)) #10 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Framework\RequestHandler\Traits\RequestHandlerTrait.php(62): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #11 C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\Grav.php(303): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest)) #12 C:\Program Files\Xampp\htdocs\AWS-Homepage\index.php(58): Grav\Common\Grav->process() #13 {main} thrown in C:\Program Files\Xampp\htdocs\AWS-Homepage\system\src\Grav\Common\File\CompiledFile.php on line 91"

My last update was on 30th of December 2021 and everything worked flawlessly.

I would be really pleased if anyone can help me out with the message.

Best regards and a happy new year.

5 years ago

@ToTechBase

Looks like a YAML error of the frontpage matter, this might a rogue character that doesnt conform to YAML standard.

When you say "update" , have you physically updated anything in particular (grav's last update was 2 months ago) , maybe a plugin or do you mean "you updated an page"

Does an article / page / front matter with
The error seems to be bad mark up / frontmatter

Unexpected characters near “re interested we got something for you. Begin your journey with cool projects, ideas and plans right here!’” at line 10

(near “description: ‘Build your own stuff, the way you want it, with our help! Craftsman, Art, electronics, wood working, metal working what ever you’re interested we got something for you. Begin your journey with cool projects, ideas and plans right here!’”).

Maybe post that pages frontmatter which relates to that page might help.

Or if you can run the command in the the C:\Program Files\Xampp\htdocs\AWS-Homepage\ directory of php bin/grav yamllinter it may help you find the error and the page it is falling over and report it findings

:)

5 years ago Solution

@ToTechBase If you upgraded from Grav 1.6.x to Grav 1.7.x you might experience Yaml compatibility issues. Grav 1.7.x is more strict. See Upgrade Guide Most Common Issues point 2.

According the error, the issue is located in /user/config/site.yaml near line 10.

5 years ago

Thank you, both of you. Your tips helped me find my bug.

According the error, the issue is located in /user/config/site.yaml near line 10.

The mistake was exactly at line 10. I had an " ' " in the text, and that was mainly the problem.
Thank you both of you again, and thank you for this forum. 🙂

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago