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

Failed opening required 'FastRoute/autoload.php' #17957

Closed
luimen6 opened this issue Dec 12, 2022 · 4 comments
Closed

Failed opening required 'FastRoute/autoload.php' #17957

luimen6 opened this issue Dec 12, 2022 · 4 comments
Assignees
Labels
packaging An issue that affect Debian, Ubuntu or another form of packaging

Comments

@luimen6
Copy link

luimen6 commented Dec 12, 2022

Describe the bug

Failed opening required 'FastRoute/autoload.php' after clean install with apt install phpmyadmin

[Mon Dec 12 18:25:49.031030 2022] [php:error] [pid 120684] [client ::1:50574] PHP Fatal error: Uncaught Error: Failed opening required 'FastRoute/autoload.php' (include_path='.') in /usr/share/phpmyadmin/autoload.php:4\nStack trace:\n#0 /usr/share/phpmyadmin/libraries/common.inc.php(95): require_once()\n#1 /usr/share/phpmyadmin/index.php(15): require_once('...')\n#2 {main}\n thrown in /usr/share/phpmyadmin/autoload.php on line 4

Server configuration

  • Operating system: Ubuntu 22.04
  • Web server: Apache
  • Database version: mysql Ver 15.1 Distrib 10.6.11-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
  • PHP version: PHP 8.2

Client configuration

  • Browser: Microsoft Edge
  • Operating system: Ubuntu 22.04
@williamdes
Copy link
Member

Hi

This is strange, how did you install phpMyAdmin?

@williamdes williamdes added the packaging An issue that affect Debian, Ubuntu or another form of packaging label Dec 12, 2022
@luimen6
Copy link
Author

luimen6 commented Dec 12, 2022

Hi

This is strange, how did you install phpMyAdmin?

Hi,

with apt install phpmyadmin

@williamdes
Copy link
Member

Okay, I think you should probably apt purge php-nikic-fast-route and re-install phpmyadmin

apt info php-nikic-fast-route should be installed. The file /usr/share/php/FastRoute/autoload.php is probably missing

Edit: include_path is wrong, it should be .:/usr/share/php

$ php -r "echo get_include_path();"
.:/usr/share/php

See normal package configs that made me find your bug: https://salsa.debian.org/phpmyadmin-team/phpmyadmin/-/blob/debian/4%255.0.4+dfsg2-2+deb11u1/debian/conf/apache.conf#L12

@williamdes
Copy link
Member

I think I understood what was wrong here, see: #18299 (comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
packaging An issue that affect Debian, Ubuntu or another form of packaging
Projects
None yet
Development

No branches or pull requests

2 participants