-
Notifications
You must be signed in to change notification settings - Fork 13
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
PHP Fatal error: Uncaught ErrorException: #14
Comments
Point 7 is about the following:
So I do not see how you can get a php error from trying to do that step. Anyhow as the error appears in the You also may want to take a look at the examples folder which shows how to setup httpd and ska. Even thou it is for alpine there won't be a lot of differences. |
config.ini
apache2-vhost
Additionally i've tried to connect to the database via the used database credentials. This works as aspected. But we are still getting the above mentioned error. |
Ok I had a look at it and the error says that it fails at the The parameter should be To verify that I would like you to add two lines after the dirname in the
Afterwards reloading the page should print the path found by the application. That way we can see whether my assumption is correct |
$base_path ist actually null, when used in core.php (Line 38). We changed the following code in core.php:
This seems to fix this issue. |
That's very weird. To me this sounds more like a misconfiguration on the php part because that variable should not be null. At the moment, however, I do not see any obvious misconfiguration. Lets keep an eye on that because if there is something wrong with the About the permission error, that is expected behaviour. Authentication and authorisation is seperated in this application. The webserver handles authentication (you did that by adding the user and its password to the htaccess file) and the app handles authorisation (you have to do that by adding the user to the database). By default there is only one user called |
Hello I use Ubuntu 20.04 i followed your installation guide and at Point 7 always this error occures.
PHP Fatal error: Uncaught ErrorException: Trying to access array offset on value of type null in /var/www/ska/core.php:86
Stack trace:
#0 /var/www/ska/core.php(86): exception_error_handler()
#1 /var/www/ska/core.php(41): path_join()
#2 [internal function]: autoload_model()
#3 /var/www/ska/core.php(61): spl_autoload_call()
#4 /var/www/ska/core.php(28): setup_database()
#5 /var/www/ska/scripts/cron.php(4): require('/var/www/ska/co...')
#6 {main}
thrown in /var/www/ska/core.php on line 86
Did you already test your software on ubuntu server 20.04?
Apache 2.4.41
MariaDB 10.3.2.22
PHP 7.4.3
The text was updated successfully, but these errors were encountered: