Page using database is not working,

Hello,
I have a problem on my website, all statics pages works and for the one page using database is not working, I have a 500 error and on local it’s working
I checked DATABASE_URL on .env file the elements are correct

http://blackwell-academy.rf.gd/

I use a Symfony Framework

regards
Bryan

Do you have any more information about the issue? Like an error message from either PHP or the database connection?

I just have on the page :

Oops! An Error Occurred

The server returned a “500 Internal Server Error”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

from file .env I do :
DATABASE_URL=mysql://epiz_xxxxxxxx:[email protected]/epiz_xxxxxxxx_blackwellAcademy

I don’t know Symfony that well, does it have an log file or debug mode which you can use to figure out the actual error?

Okey, I just find the problem,
thanks to the log I saw where the problem came from.

Doctrine\Common\Persistence\ObjectManager
Is not the good ’

the good one is :

use Doctrine\ORM\EntityManagerInterface;

thank you @Admin :slight_smile:

1 Like

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