Hello friend, welcome to my blog post how to solve Opencart admin blank page issue. If you change your website hosting or you change the directory path of your OpenCart site, you can see a blank page in OpenCart admin. Today we will see the reason behind the issue and give you some solutions to overcome the problem.
Step 1: Check the error behind the issue
For knowing the exact issues we check the server side error using some codes. Open index.php of Admin directory, copy the below code and paste it here.
Now save the file and refresh the admin page. If you see some PHP error/issues, try to solve those.
Step2: Check your directory path
Open config.php from admin directory. Check your DIR path setting like DIR_APPLICATION path, DIR_SYSTEM path, DIR_DATABASE path, DIR_LANGUAGE path, DIR_TEMPLATE path, DIR_CONFIG path, DIR_IMAGE path, DIR_CACHE path, DIR_DOWNLOAD path, DIR_LOGS path, DIR_CATALOG path.
If any path settings did not match with the original path you can see the blank page for the admin section.
Step3: Check your database settings
When we transfer OpenCart site from one host to another then our database settings like database name, database hostname, database username, database password will change. Try to fix them from config.php. Give new server host database username, password, database name, host name.
Step4: Check Your host settings
When we transfer OpenCart site from one directory to another then also this type of issue occur. Try to check HTTP_SERVER path, HTTP_CATALOG path, HTTP_IMAGE path, HTTPS_SERVER path etc in config.php inside admin directory.
Give correct path in all setting fields. I think using the above methods you will overcome your blank admin page issue. If your problem still exists, contact your website hosting provider regarding this issue.
Here I try to solve the issue with my experience. I am having this issue couple of times. I rechecked the directory path and put the new one, then my issue is solved. I hope the above tricks will save your valuable time. Now you know how to solve OpenCart Admin Blank page issue. If you have any question or suggestion please comment below. If you like my post then please share it with your friends. Thank you.