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

PHP Fatal error: mysqli object already closed in Hotel Management System #8

Open
Josaphat12-tech opened this issue Apr 10, 2024 · 0 comments

Comments

@Josaphat12-tech
Copy link

Description:
While working on my Hotel Management System project, I encountered the following error in the Apache error log:
[Wed Apr 10 17:28:29.126727 2024] [php:error] [pid 15690] [client 127.0.0.1:53152] PHP Fatal error: Uncaught Error: mysqli object is already closed in /var/www/html/Hotel-Management-System/index.php:10\nStack trace:\n#0 /var/www/html/Hotel-Management-System/index.php(10): mysqli_query()\n#1 {main}\n thrown in /var/www/html/Hotel-Management-System/index.php on line 10, referer: http://localhost/Hotel-Management-System/
This error indicates that the mysqli object is already closed at line 10 of my index.php file. Here's the corresponding stack trace:

#0 /var/www/html/Hotel-Management-System/index.php(10): mysqli_query() #1 {main}
It seems to be causing issues with the functionality of my application, particularly in the database interaction part. I've tried troubleshooting it, but I'm unable to pinpoint the exact cause.

If anyone has encountered a similar issue or has insights on how to resolve this, I would greatly appreciate your assistance. Thank you!

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

1 participant