Wordpress theme showing blank page and wp-admin show PHP code - php

I upload my site on GoDaddy and the site showed the blank page. All the configurations have been done properly.
The same site has been uploading on another hosting account where it is working fine.
URL that is not working: http://workshop.planvisionmn.com
The main page is just blank, when u try to access wp-admin it shows PHP code which never happened to me before.
Note: I tried to rename all the plugin`s to disable them and to check if they are the reason but the issue persisted.

Related

Empty and blank WordPress login page

I hosted my local project to online. I can see the website but I can't access to the admin panel because when I search domain/wp-admin it shows a blank page without any error .
This is my main domain http://qoute.onlinedev.me/wp-admin/
Who can solve this?
I make the define('WP_DEBUG', true); in my wp-config.php file.
It shows the issues and errors.
Note: Try it online
because it doesn't show any issue in my localhost but when I upload it on online Host it shows that I have the issue with functions.php file at first line.
And what is that: Just a space before the <?php tag.
I remove space and it fix my issue.

Issue accessing local hosted Wordpress site (redirects+other nonsense)

I have ran into quite the issue.
I have been developing a website hosted locally with MAMP. I always used localhost:90/wordpress/ to access the website and it was worked up till today. A few hours ago, I began the process of moving the website from local server to an actual domain. Unfortunately, I wasn't checking URLs and ended up changing some information and working on localhost myPHPadmin panel as opposed to the domain myPHPadmin panel. Long story short, I changed so much before I realized my mistake, then proceed to change even more, and now I am lost and don't know what to do. At this point, I am just trying to get access to my local hosted website so I can start over again.
The issue:
Everytime I goto localhost:90/wordpress, Chrome redirects me to localhost/wordpress and my website doesn't show, it says that the website can't be shown.
I have tried going into my local hosted myPHPadmin panel and changing siteurl and home to both say localhost, but no luck. Interestingly, when I change both to wordpress, it shows an unformatted version of my homepage (Kinda like just straight HTML), with limited images, however if I click any links then it brings me to wordpress/about and it doesn't exist. If I change it to just localhost:90, it shows my unformatted wordpress Page not found page. Can't access wp-admin with any of them.
I have tried using a replace tool recommended in another thread, but searching for localhost and replacing with localhost:90 yielded no results for me. I have also double checked the .htaccess folder and it is correct. I have cleared cookies/cache and still nothing. I am desperate.
Any help is much appreciated.
I am not sure what the issue is here so I am going to shoot in the dark here and hopefully one of these methods will get you out of your predicament. Since you say that you have reverted all the changes you made and still your website is inaccessible, even wp-admin.
You can try doing the following:
Change the siteurl and homeurl links in your PHPmyadmin to localhost:90/wordpress or whatever it was before when your site was running and functional.
In your Wordpress root folder, there is a file called wp-config.php. Open that file and find:
* #package WordPress
*/
Add after:
define('WP_HOME','localhost:90/wordpress');
define('WP_SITEURL','localhost:90/wordpress');
You will replace all localhost:90/wordpress if need be by which I have written in my codes to what the link was before; when the site was functional.
Check the file thoroughly and through Find/Replace function of your favourite text editor for no duplicate entries.
Now try accessing wp-admin. If you still cannot access your wp-admin, take a backup of your current wp-admin folder.
From a fresh Wordpress of the same version as yours, copy the wp-admin folder and replace it with your current wp-admin folder. Now try to access wp-admin again.
If you are able to access it and login, refresh your Permalinks. See if your site is accessbile again after doing these steps.
Update:
Since none of those steps worked for you, try doing the following:
Delete all the Wordpress core files from your localhost:90/wordpress EXCEPT wp-config.php and your wp-content folder.
Now from a fresh Wordpress folder, copy the files and folders EXCEPT wp-config.php file and wp-content folder. Paste them in your localhost:90/wordpress folder.
Try accessing your website now.
Update 2:
Try uploading your Wordpress to your online server and change the values of siteurl and homeurl in your wp-config.php file. We defined the localhost addresses in the file, now you will update those with your domain details.
Take a fresh backup of your database from your localhost and import it into a new database in your online server. Update the homeurl and siteurl in your newly imported database.
Update your wp-config.php with the new database name and username and password of the account you have given all privilages to access the database.
Try accessing wp-admin now.
If successful, update your Permalinks and then try accessing your website.
This will tell us if your localhost is faulty.

Wordpress Site only showing main page under Xampp

Sorry for the same problem again, but I have tried various solutions provided by other people and still cannot solve this problem.
I have twice pulled a live website (which works fine) down to run locally under XAMPP Version 5.6.31. The first time I did everything manually, but could not solve this problem. I deleted that installation and tried again using the Duplicator plugin, but ended up with the same problem.
The website main page has a menu on it which takes the user to different pages (not posts) on the website. Each page is based on an individual template which loads the page. Examples of the standard codes used to move from one page to another are:
1. user Login
2. echo "<script type='text/javascript'> document.location = '/index.php/user-login/'; </script>";
The localhost website files are in c:\xampp\htdocs\mywebsite. I can login to Wordpress and edit the website pages, view the plugins etc.
I have set the wp-config.php to the correct database-name/root/no-password settings, tried saving the permalinks (pressing SAVE twice), tried changing the permalinks, checked the .htaccess file, corrected the Xampp config settings of "AllowOverride" and "mod_rewrite", checked I can access the database using Xampp MySQL, checked the database permissions and tried different settings in "c:\xampp\htdocs\index.php".
If I type "http://localhost/mywebsite/index.php/user-login" into the browser, the correct login page is displayed. If I hover over the menu option on the main page of mywebsite, "localhost/index.php/user-login" shows in the bottom left corner of Firefox. Pressing that just refreshes the main page - it does not take me to the login-page.
c:\xampp\htdocs\index.php includes the lines:
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/mywebsite/index.php');
Any ideas will be greatly appreciated - thanks.

Magento blank admin pages

Some background information:
We developped a website in magento and it runs just fine on our server. Now we need to transfer the website, but as soon as we copied the database and all files to the new server we had some problems. The website seems to run just fine but when we login with the same login information as before all of the admin pages are blank. we can see the admin bar on top but not the content.
This site isn't live on the new server since we just changed the .hosts file in order to see the site.
I tried a lot things all around the internet but none of that seems to work.
What could couse this problem and how can we fix this?
I just found a solution.
i added these lines to my index.php file in order to see logs of the problem.
error_reporting(E_ALL);
ini_set('display_errors', 1);
Then i saw some error loggings on the admin page telling me there was a problem with CURL.
So i want to my php.ini file and i saw that CURL wasn't enabled there. So enabeling this did the trick.

wordpress admin panel not working

I installed wordpress on the sub folder to cpanel and completed the work.
Now, i am moving the website to other cpanel on main domain. Everything is working fine on front end. But when i am trying to login to admin then i am getting error : ERROR 500 - INTERNAL SERVER ERROR
If i am trying to access the admin panel using wp-admin then it giving same error. but i tried with the wp-login.php and it shows login page but after adding correct login details it show error 500.
Thanks.
Take care of few things:
Make sure URL's in DB tables are pointing to your domain.
ht-access is enabled.
Check setting in config again.
I wanted to add: activate debug in wp-config.php, in 90% of the cases it tells you what's going on.
define('WP_DEBUG', true);

Categories