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

Got Twig\Error\RuntimeError after running composer update #19276

Closed
shinsenter opened this issue Aug 30, 2024 · 6 comments
Closed

Got Twig\Error\RuntimeError after running composer update #19276

shinsenter opened this issue Aug 30, 2024 · 6 comments
Assignees
Milestone

Comments

@shinsenter
Copy link

Describe the bug

It seems that a recent update of Twig on August 29th is the cause. This morning, I ran composer update in the phpMyAdmin directory, and the following error appeared.

Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("PhpMyAdmin\Error::relPath(): Argument #1 ($path) must be of type string, Twig\Environment given, called in /var/www/html/libraries/classes/Error.php on line 452").

Expected behavior

I can open phpmyadmin on the browser.

Screenshots

Screenshot 2024-08-30 at 10 22 15

Server configuration

  • Operating system: Alpine Linux v3.20
  • Web server: nginx/1.26.2
  • Database version: MySQL Server 8.0.39-1.el9
  • PHP version: PHP 8.3.10 (fpm-fcgi) (built: Aug 1 2024 19:23:22)
  • phpMyAdmin version: 5.2.1

Client configuration

  • Browser: Safari
  • Operating system: macOS

Additional context

The recent update of Twig:
https://github.com/twigphp/Twig/releases/tag/v3.12.0

@shinsenter
Copy link
Author

Update: I tried downgrading Twig with the below command, and the issue was resolved.

composer require twig/twig:3.11.0

@SachinBahukhandi
Copy link
Contributor

Seems to be discussed here as well: #19114

@shinsenter
Copy link
Author

@SachinBahukhandi Yeah, it happens again :(

@AdamReece-WebBox
Copy link

Found this via #19112 too, can confirm downgrading Twig to 3.11.x works. :)

@shinsenter
Copy link
Author

It happens again today.

@MauricioFauth
Copy link
Member

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

5 participants