Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Twig_Filter_Function' not found #4

Open
KoljaL opened this issue Apr 9, 2020 · 1 comment
Open

Class 'Twig_Filter_Function' not found #4

KoljaL opened this issue Apr 9, 2020 · 1 comment

Comments

@KoljaL
Copy link

KoljaL commented Apr 9, 2020

Hey Andi

I installed your plugin in the alpha Version of PicoCMS3 ang get this Error when calling the Editor:

Fatal error: Uncaught Error: Class 'Twig_Filter_Function' not found in /www/htdocs/domain.de/plugins/pico_edit/pico_edit.php:37 
Stack trace: 
#0 /www/htdocs/domain.de/vendor/picocms/pico/lib/AbstractPicoPlugin.php(101): Pico_Edit->onPageRendering(Object(Twig\Environment), Array, 'index.twig') 
#1 /www/htdocs/domain.de/plugins/PicoDeprecated/PicoDeprecated.php(319): AbstractPicoPlugin->handleEvent('onPageRendering', Array) 
#2 /www/htdocs/domain.de/plugins/PicoDeprecated/lib/AbstractPicoPluginApiCompatPlugin.php(81): PicoDeprecated->triggerEvent(1, 'onPageRendering', Array) 
#3 /www/htdocs/domain.de/plugins/PicoDeprecated/plugins/PicoPluginApi1CompatPlugin.php(258): AbstractPicoPluginApiCompatPlugin->triggerEvent('onPageRendering', Array) 
#4 /www/htdocs/domain.de/plugins/PicoDeprecated/lib/AbstractPicoCompatPlugin.php(74): PicoPluginApi1CompatPlugin->onPageRendering('index.twig', Array) 
#5 /www/htdocs/domain.de/plugins/PicoDeprecated/lib in /www/htdocs/domain.de/plugins/pico_edit/pico_edit.php on line 37

I just comment the Line 37 out:
// $twig_editor->addFilter('var_dump', new Twig_Filter_Function('var_dump'));
and the Editor ist working.

The same solution works with this error:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/domain.de/plugins/PicoPagesList/PicoPagesList.php:67) in /www/htdocs/domain/plugins/pico_edit/pico_edit.php on line 33

Thank you for this needfull Plugin :-)

@AndiLeni
Copy link
Owner

Hey,

I'm glad you like my plugin.

Unfortunately I'm not working with PicoCMS anymore and as far as I can see Pico 3 is in a very early stage of development.

If you like, you are welcome to create a pull request, which I will merge as soon as version 3 is stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants