PHP & MYSQL Novice to Ninja, 7th edition

When I try to run the site using the “phpmysql7-OOP-EntryPoint” scripts I get a blank page in firefox and an error in Chrome " This page isn’t working “website” is currently unable to handle this request.
I am not sure how to resolve this problem. I have upgraded my server to PHP 8.1 but what else must I do to get this to work ?? or a little help on where to start of fixing this problem ?

You are getting either a php parse/syntax error or a fatal runtime error. Find the php.ini that is being used on your system and set error_reporting to E_ALL (it should always be this value) and set display_errors to ON, so that php will help you by reporting and displaying all the errors it detects. Stop and start your web server to get any changes made to the php.ini to take effect.

Thanks for the help. Found that after upgrade php from 7.4 I did not do all necessary to get 8.1 to work. Now have it working and now getting another error that i should be able to track down. Thanks for the fast response

I have tried to allow rewrite on my apache server but still get the same error.
I looked in my log and this is the server log:
[Wed Feb 09 12:21:54.301777 2022] [php:error] [pid 48396] [client] PHP Fatal error: Uncaught Error: Call to a member function public() on null in /var/www/html/autoload/classes/EntryPoint.php:21\nStack trace:\n#0 /var/www/html/autoload/public/index.php(8): EntryPoint->run()\n#1 {main}\n thrown in /var/www/html/autoload/classes/EntryPoint.php on line 21
can anyone please give me some advice on how to fix this problem. Thanks

I have decided to change my server so this information will no longer work

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.