Wordpress home page is blank but every other page is working fine - php

I am trying to move an existing site that works fine on the old server to a new server. On the new server the homepage is just showing blank page. however when i navigate to "wp-admin" or other pages like "about-us" shoiws up just fine and i am also able to login in my wp-admin. It's just the homepage that is blank..
I have tried to enable debug and also tried looking into wp_content/debug.php and it's empty:
define('WP_DEBUG',true);
define('WP_DEBUG_LOG',true);
define('WP_MEMORY_LIMIT','256M');
Next thing i tried is the permalink settings -> permalink -> "save" it also didn't work.
I have also tried by switching php version php7.3 same as the old server, didn't help
then finally i tried removing the plugins one by one and figured after removing this particular elementor plugin (https://www.eletemplator.com/ele-custom-skin/) the home page was loading fine. However this plugin is very important as most of the pages are using templates from this plugin to display the content.
Now that I know this plugin is causing the issue on the new server could it be because of the loading time? with this plugin on the old server everything works fine.
hope someone can help on this

For resolving this issue you can choose following steps:
1: First you try to disabling all the plugins of yours and then see if the front end comes back. If you can’t do it from the backend due to any reason, you can as well rename /plugins/ folder to /plugins-broken/ or similar, using FTP access.
2: If it does, then start enabling plugins one by one until the issue reappears. Then you’ll know what caused it.

After trying all the solutions, finally came to understanding that it was a memory limit issue on the httpd.conf apache server setting. After increasing the limit for RLimitMEM = 204535125 it was working!
this link really helped! incase someone faces this issue in the future please look into the httpd.conf settings for the memory limit. Further reference from a previously asked similar question: PHP out of memory error even though memory_limit not reached

Related

I can't open my WordPress login from a local Install

I just changed my WP user password from the Admin area of my local installation (using MAMP here). So right after I saved, everything went blank.
When I try to go to http://localhost/My-Theme/wp-admin/ I get nothing but a white page (the little MAMP favicon still on the tabs corner of the browser)
However when I go to http://localhost/My-Theme/ I can see my theme running.
Any ideas??
This is really frustrating, thank you in advance.
Firstly, you should see your apache logs so they will clarify you a bit more because it could be because of many reasons, for example problems with your database. Try to remove plugins and themes so you can see if this works or not, if it works try to add them 1 by 1 and you could see if theme or plugin fails and give this mistake.
I had a similar issue some time ago. This worked for me:
Try renaming the active theme folder (in wp-content/themes). Once renamed, WordPress will revert to using the WordPress Twenty Fifteen theme. Try to enter the login page again.

Fresh Wordpress install not reflecting changes on files instantly

I have a fresh wordpress 4.0 install on my server for a specific domain and when I make changes to any of the theme files it won't show up in the browser for a few reloads. I just add "asdf" to the theme file to test changes. I can refresh 20 times but no changes show up until like 20 seconds later.
What I have tried:
Turned off firefox's cache.
Turned off wordpress cache.
Tested other domains on my server with wordpress and they work properly.
Installed wordpress with "server installer apps"(3 times) and also with manual installation.
I refresh with ctrl+f5
Tried with firefox and with chrome, same results.
Its a fresh install so no plugins, no settings changes. There is no caching and my other domains work properly. No errors show up in the console.
I have no idea what the problem could be. My server company, mediatemple, said it could be my ISP, but other domains on my site work properly from the same computer/network. For some reason the problem is specific to this domain and the problem persists through all the themes.
I don't know what to do next. Any suggestions would be greatly appreciated. :)
Update:
Have tried manual install of wordpress 3.9 and that does nothing.
I added a new folder to the root and in that folder I added a file called index.html to test if this file, which is unaffected by wordpress, would show instant changes and IT DOES. So the problem seems to be based within wordpress and specific to this domain.
I spoke to Mediatemple for the 3rd time now and this guy was much more helpful and he actually solved the problem.
When you add a domain to mediatemple it automatically sets the PHP version to "FastCGI", which normally is fine, but it caused problems specifically on this one domain's wordpress install for unknown reasons. So he switched the PHP version to "CGI (Stable)" and that fixed every problem.
I hope this will be helpful to someone in the future. :]

PHP changes not updating on live site

I'm working on a WordPress installation hosted by HostGator. I have added new code to a php file which is used for the home page gallery slider. The changes work on my local installation but do not appear on the live site. I have even attempted to insert gibberish code into the file to see if it would update, It did not. This leads me to believe it's being cached somewhere and not updating.
I have disabled all suspected caching plugins.
Added define('DISABLE_CACHE', true); to wp-config.php
Cleared all browser caches, and CTR + F5
Verified the code is sound
Waited overnight to see if it would update eventually
STATUS UPDATE:
I've continued to do the steps I've outlined above. I've had suggestions that it may not be the correct file that I am editing. The problem with that assumption, is that it works fine on the local host test site, just not on the live. If anyone has suggestions in that regard it would be helpful as well.
UPDATE 2:
I'm attempting to determine if my Instant Wordpress 4.3.1 runs a different php version than HostGator (php 5.2.17) but I can't find it in the documentation.

Wordpress plugins are active but not checked in admin tool

Ok, so I have a big problem. Or at least an indication of a big problem. You see I went to create a dev version of a recently launched site. I copied all the files over to a new directory, created my apache entries, created a brand new database for it, and copied over that database.
Then I made sure to change the www.mysite.com entries to dev.mysite.com in the database. All of that looked good and I restarted apache. After running into some issues with the dev site I decided to back away for the night. I went to check the production site and it was suddenly down. So I removed the SSL entry in default-ssl in Apache and restarted Apache again and that was fine.
Then I went into admin and noticed that on the plugin page it bolds the active plugins. It gives an accurate count. And the plugins are working. But the checkbox next to each isn't showing checked.
So I thought that maybe I messed up the database on accident. So I just blew away the db and re-imported it really quick from the backup I made before all this started (about 30 minutes ago). And it looks the same. The site is working, but I am having problems with admin.
Does anyone have any advice? This is freaking me out a bit. I have never had a problem like this before with creating a dev site and never had Wordpress do crazy stuff like this before.
I will add that this is running the latest version of Wordpress and WooCommerce. It seems like the site is working. But this is leaving me very concerned about other issues.
The checkbox next to my active plugins isn't checked either. I think this is normal. You check them yourself in order to apply bulk actions to multiple plugins at once (e.g. check three plugins and then use the bulk action dropdown to active all three at once).
Sorry if I've misunderstood your problem here.

Unable to access admin section of Wordpress using MAMP

I have been developing a Wordpress site locally using MAMP, and I have run into an issue twice now where when I leave at night and come back, I can't access the admin page. I have debugging on, and there aren't any fatal errors. I can access the front-end of the site just fine, but I can't log into the admin page. All I get is a white screen like:
Here is the front end:
As you can see the front end is working well, but I can't get into the admin section. I've tried to re-login and it just doesn't work.
What could be causing this? The last time this happened, I had to reinstall the entire site. I really don't want to do this every day. I know that everything was working when I left, and I haven't made any changes today.
I just ran into a problem with a brand new MAMP install along with a fresh WordPress install, with current files downloaded on 2020-06-08. MAMP installed perfectly. WordPress also installed perfectly, and the default website was accessible on my localhost. When I tried to login to wp-admin, however, I kept getting prompted to enter my username and password with no errors.
I followed every "fix" I could find and none of them worked. I uninstalled and reinstalled everything, created new databases, etc. multiple times with the same results.
After nearly 48 hours, I looked at MAMP preferences and went to the PHP tab and noticed there are two versions (7.3.9 and 7.4.2). I switched to 7.3.9 and I was able to login.
It looks like one of your plugins may be causing some trouble, as per this line:
Warning opendir(/Applications/MAMP/htdocs/wordpress/wp-content/plugins/tmm_shortcodes/views/.DS_Store/popups/): failed to open dir: Not a directory in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/tmm_shortcodes/index.php on line 148
Try disabling the plugin through your PHPMyAdmin and try loading the admin page again. You should be able to find the list of active plugins in the wp_options table under
active_plugins. Make sure to save a copy of the contents of that field in a text file, in case something goes wrong so you can reset it to the original parameter.
I understand this is a very old post, but had this problem recently.
Found that my wp-config-sample.php file was missing a closing php tag ?>. Amended that and the login worked fine.
Thought I'd add my experience here. Might help someone down the line!

Categories