mocart Posted April 14, 2021 Share Posted April 14, 2021 I try to configure friendly URL, turn on in BO (regenerate .htaccess), but when i try to go by link, i get HTTP ERROR 500, at apache2 log i see this lines: [Wed Apr 14 12:49:46.494411 2021] [proxy_fcgi:error] [pid 12447:tid 140576225752832] [client 33.12.63.224:55198] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function dispatch() on boolean in /var/www/example.com/override/classes/controller/Controller.php:17\nStack trace:\n#0 /var/www/example.com/classes/Dispatcher.php(359): Controller::getController('PageNotFoundCon...')\n#1 /var/www/example.com/index.php(28): DispatcherCore->dispatch()\n#2 {main}\n thrown in /var/www/example.com/override/classes/controller/Controller.php on line 17\n', referer: http://example.com/ my apache vhost config: <VirtualHost *:80> # or 443 for SSL support ServerName example.com DocumentRoot /var/www/example.com # SSLEngine on # SSLCertificateFile /etc/apache2/ssl/example.crt # SSLCertificateKeyFile /etc/apache2/ssl/example.key # Uncomment the following line to force Apache to pass the Authorization # header to PHP: required for "basic_auth" under PHP-FPM and FastCGI # # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 # For Apache 2.4 or higher # Using SetHandler avoids issues with using ProxyPassMatch in combination # with mod_rewrite or mod_autoindex <FilesMatch \.php$> # SetHandler proxy:fcgi://127.0.0.1:9000 SetHandler proxy:unix:/run/php/php-fpm.sock|fcgi://dummy </FilesMatch> DocumentRoot /var/www/example.com <Directory /var/www/example.com> # enable the .htaccess rewrites AllowOverride All Options +Indexes Require all granted # Disable back office token # SetEnv _TOKEN_ disabled </Directory> ErrorLog /var/log/apache2/example.com.error.log CustomLog /var/log/apache2/example.com.access.log combined </VirtualHost> i use: PS. 1.6.1.1, apache2, PHP-fpm 7.0.33-47+ubuntu20.04.1, apache2 loaded modules: Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) alias_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) filter_module (shared) mime_module (shared) mpm_event_module (shared) negotiation_module (shared) proxy_module (shared) proxy_fcgi_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) status_module (shared) can anybody helps me please... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now