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

[3.7.0-rc.1] Error 500 after update: PHP Fatal error: Cannot redeclare e() #4381

Closed
wdebusschere opened this issue Jun 15, 2022 · 2 comments
Closed

Comments

@wdebusschere
Copy link

Description

After update:

PHP Fatal error: Cannot redeclare e() (previously declared in /var/www/html/sitename/vendor/illuminate/support/helpers.php:108)

Your setup

Kirby Version
3.7.0-rc.1

Additional context
2 plugins: afbora/blade and pedroborges/meta-tags

@distantnative
Copy link
Member

It seems like one of your composer dependencies is registering a global function with the same name as Kirby's core functions (e()). Before 3.7, other libraries would just overwrite Kirby's functions which could lead to problems that were really hard to debug (not knowing why that function suddenly would behave differently).

So from 3.7 onwards, you need to set the constant KIRBY_HELPER_E to false if you want to allow another library/code to define their e() function and not Kirby its own.

@distantnative distantnative reopened this Jun 15, 2022
@distantnative distantnative closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2022
@wdebusschere
Copy link
Author

Caused by afbora/kirby-blade#20

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