When you install Prestashop, and follow the instructions, it’s possible that you run into a ‘500 error’ when you want to access the back-end.
When I ran into this problem, I searched for a fix. Here’s a real simple solution that worked for me.
This tutorial assumes that you:
- Removed the /install folder
- Renamed the /admin folder to something else. In this tutorial, let’s pretend we renamed it to /backend.
All you need now, is a FTP Client and a Text editor.
Open your site in your FTP client
Open your website in your FTP client, and go to the former ‘admin’ folder.
- Find the following file: login.php
- Right click the file, and choose “Edit”
Edit the file in your editor (Not really)
The file will be opened in your default editor (in my case, Gedit). Now, to edit the file.
To “Fix” the problem, do the following:
- Click anywhere in the file (I suggest the end)
- Hit the spacebar, but immediately delete that extra space.
- Save the file.
Upload the ‘Changed’ file
Filezilla (or your FTP client) will ask if you want to re-upload the file. Click yes, and the file will be uploaded.
Now, try logging in at your back-end again. There’s a big chance that it’ll work now!
If this tutorial was helpful for you, feel free to share it or leave a comment. Prestashop tutorials are new to me, but I’m looking forward to writing more of them!
You can also download this tutorial as a PDF.
1 thought on “Fix the ‘500 error’ in Prestashop after fresh install”
You are the best! It worked perfectly!
Comments are closed.