Wordpress admin login gives me blank page back - wordpress

Hi all I am having this problem with Wordpress admin login and W3 Total Caching.
Lets start from the beginning. When I visit the website it appears to be working just fine.
When I try to login on the Wordpress admin page it returns me a blank page. No errors nothing just a blank page.
This is not the first time it happens, so I called my hostings provider to check if anything is going on with the servers. So we solved the problem last time by just rebooting the server. That worked website was running again and could login in to wp admin area.
Now today same thing happens again. We did some research my hostings provider comes up with this error from wordpress.
mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /public_html/wp-includes/functions.php on line 3559.
I have no idea what this problem is and where it comes from.
Probably this is not the only problem with this site. We are also using W3 Total Caching for this site. Are there any issue's know with this plug-in that can make the server do strange things?
Kind regards

Using
define( 'WP_DEBUG', true );
is definitely the way to go.
We had recently removed a cacheing plugin but it had left behind some pieces of code in wp-settings that needed removing.

The fact that the wp-login page is blank means there's a code error somewhere (probably in a recently added/updated plugin). If you can, FTP onto your server, go to wp-content/plugins/, rename a directory that holds the contents of a plugin, then refresh your login page.
Once it loads, the directory you've just renamed is the one causing problems. Rename all of the other plugin directories to what they were previously, and either find an alternative plugin, or attempt to fix the plugin yourself if you know PHP.

The blank page means there's a server error, check the error logs, or add the following line to your wp-config.php file to get them to show on screen.
define( 'WP_DEBUG', true );
That will show you the errors so you can start debugging.

Create a phpinfo.php file with only this line of code
<?php phpinfo(); ?>
Upload the file to your server using an FTP Program (e.g FileZilla).
Look for the value of memory_limit.
If that value is lower than 64M, you should increase it to 92M (or 128M).
According to the WordPress documentation, here are some ways to change this:
Increase the amount of memory a PHP script may consume.
Note: If using a shared hosting service, you may need to ask your host to increase the limit.
Increase the memory limit setting in php.ini (e.g. memory_limit = 128M ;).
Increase the memory limit via .htaccess (e.g. php_value memory_limit 128M).
Increase the memory limit via wp-config.php (e.g. define('WP_MEMORY_LIMIT', '128MB');)
Check if it works.

Related

Elementor Plugin on Wordpress keeps loading and I get a console error /wp-admin/admin-ajax.php 500

how are you?
My website was working well and now I'm unable to create or edit pages using elementor because the 'loading' keeps spinning and nothing happens.
I see a console error where I get /wp-admin/admin-ajax.php 500
How can I fix this? I don't know what caused it.
Thanks!
there are many reason for this. But the common one is WP memory limit issue.
To handle this, first you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress to increase the PHP memory limit to 256MB.
Once you are done, you need to save your changes and upload your wp-config.php file back to your server.
I had this problem too, I just disabled plugins one by one and I found the problem!
one of my plugins caused this problem.

Connection_time_out error when trying to access my wordpress site - tried all solutions

I have a website that is hosted with gandi, the website was only showing initially for the wordpress admin and anyone who was not an admin could not see the website. After I tried somewhat haphazardly to find solutions, the website got completely disabled with a connection_timed_out error and I don't know if this was due to my actions. I remember disabling and enabling DNS records, Disabling and enabling DNSSEC. Deleting my HTTPS free SSL certificate and requesting another. I've reuploaded a version of the website that is from a week before the problem occurred using FTP a couple of days ago but the problem still persists. I now only have access through FTP and have deactivated all the plugins, renamed all the theme folders so Wordpress defaults to the original theme. I've increased the memory limit on wp-config.php file by adding 'define( 'WP_MEMORY_LIMIT', '64M' );' at the end, set the debug mode to true in that same file and I've also added'php_value max_execution_time 60' in .htaccess file but to no avail the website continues to give the connection timed out error.
I also bought the domain as deeraadesign.com, I remember the website completely crashing after I changed the site url on wordpress to deeraadesign.com from www.deeraadesign.com and I'm thinking that may have thrown off wordpress and now it is redirecting back and forth to a domain that is not the wordpress website? maybe DNSSEC destroyed the domain? Maybe I have too many themes on the website even though I have tried to deactivate them? I just don't know and all the solutions online are the saying the same things that I have already tried and not telling me anything new.
I mean, I have around 5 websites on gandi but it can't be the memory limit either as my hosting company says I only have 7GB/20GB and it also says my website is published and accessible?? so the problem is on Wordpress's end? Any help would be very much appreciated...
Thank you,
Hameed
Try this
add
php_value max_execution_time 300
in .htaccess file
Hope it will work

Can't enable caching in WP Super Cache

I'm having problem enable caching with WP Super Cache. Currently running Wordpress freshly installed for testing. The only thing I've done is installed WP Super Cache and removed Akismet and Hello Dolly.
The plugin activates, but I can't enable caching in settings. When I reload the settings page it says "Caching Off" again.
For some reason, it also keeps creating copies of wp-cache-config.php in wp-content, and copies of wp-config.php in the webroot. All these copies gets named a random number like 8734852931.php
A message in WP first says it has added
define( 'WP_CACHE', true );
to wp-config.php, but it didn't. When I add it manually (above require_once(ABSPATH . 'wp-settings.php');) i get another message:
Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.
The file /home/X/public_html/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.
Reloading doesn't hide it and WPCACHEHOME is not put into wp-config.php. If I manually add
define('WPCACHEHOME', '/home/X/public_html/wp-content/plugins/wp-super-cache/');
to wp-config.php the message goes away, but cache still wont turn on.
Apache error log says nothing of interest, even on debug level.
I've tried to do it all over again with chmod 777 on the entire webroot with the same results, so I don't think it's permissions.
I've also tried different PHP (running 5.6 now) and Wordpress versions.
There are people running exactly the same server setup as me, who has WP Super Cache running on their sites.
Anyone with an idea on what might be the issue here?
This is solved. It was
"disable_functions = rename"
that caused this issue.

WordPress website down

I'm new to programming & I have learned how to create websites using WordPress technology. I have created a website www.popstudio.in and it was working fine before.
Recently when I try to access the website, I get the following error.
The popstudio.in page isn’t working
popstudio.in is currently unable to handle this request.
HTTP ERROR 500
I have attached a screenshot, refer screenshot
Note:
This is WordPress based website.
I have renamed the plugins folder and still the website was down.
I have renamed the themes folder still the website was down.
Common Solutions for the 500 Internal Server Error.
The two most common causes of this error are a corrupted .htaccess file and exceeding your server’s PHP memory limit.
The .htaccess file in your WordPress directory can become corrupted after you install a plugin or make another change to your WordPress site. The fix is simple. All you need to do is create a new .htaccess file.
PHP memory limit issues often occur as the result of a poorly-coded plugin running on your site or a site that’s grown considerably over time and is using too many plugins. You’ll begin to exceed the PHP memory limits set by your hosting provider once either of these things happen. The result is a 500 internal server error.
Error 500 is a very generic error message. The information you're providing is not enough for someone here to help you.
The first place you want to look at is the log file. On an Apache server it is a file called error_log in the directory of your site.
You can check if your .htaccess file is properly configured.
Otherwise get in touch with your web host support!
Good luck
Have you tried to delete (after make a backup) the .htaccess file on the root path of the site? If it work, just resaved permalinks from the back-office after that.
Most of the 500 errors on WordPress are due to a problem with this file (corrupted, rights problem ...).
Go to wp-config.php and update it
define( 'WP_DEBUG', false);
to
define( 'WP_DEBUG', true );
Make sure that once you have found your issue, to return it back to 'false'. Just as a security 'best practice'.

WordPress Upload Media to a post issue

I'm struggling from an error on WordPress 3.8.1.
Whenever I try to upload a media to a post, it does not add, it says An error occurred in the upload. Please try again later..
But the weirder thing is that it is shown on dashboard/media/library even after this issue.
I also cannot see uploaded attached media to my posts (edit post / [add media button]) / media library / uploaded to this post, but in dashboard/media/library section , these old uploaded images are shown properly that which is uploaded to what post.
I have tried the followings:
Re-installed both my local version and en_US from both update manager and manually
Deleted wp-includes and wp-admin folders and replaced them manually.
I have checked chown and chmod of the wp-content/uploads folder. To make sure they are working, I have deleted wp-content/uploads/2014 folder, and after first upload that shows this error, the folder is created with right chown and chmod and files were there (wp-content/uploads/2014/01/26/file with resolutions.jpg)
I have deleted unneeded plugins, deactivated all plugins and themes, switched back to WordPress's default plugin, I have even reset active plugins json object at wp_options from SQL, did not help.
I have enabled php error logs, nothing related is shown
I have altered the WP_DEBUG definition to true, I have even defined WP_DEBUG_DISPLAY to true, no help.
When I try to add from wp-admin/media-new.php , using multi uploader, file is freezing at "Crunching…" step, but old browser upload works flawlessly.
I'm managing the VPS and hosting the blog myself with CentOS 6.5 x64. safe_mode is set as off. There is not a mod_security option in my php.ini. My upload_max_filesize in php.ini is set to 20M, memory_limit is 256M, only 3 sites are hosted and memory is quite empty while testing these. This also happens even with 50kb .jpg images, so this should not be related.
I have re-uploaded all wordpress files from a clean downloaded zip, no help.
I have tried adding AddType x-mapp-php5 .php .php4 to the end of .htaccess as suggested here, that did not help at all.
The thing is that, I have tried a clean installation to another domain on the same server, it is working as it should.
What could be the problem? How can I fix this?
Thanks in advance,
See if custom post type has any files that are in UTF-8. If you change it to ANSI, that should help, if thats an issue.
I had the same issue, and found that there is a problem with my theme itself... try doing the same action using the twentyten theme. if that works, then take a look and see if there is any conflicting code in the functions.php of the theme...
if you are using a child theme can I suggest making another child theme, or using an alternative them as in my experience not all themes "like" being used as a child...
If you are trying to upload into a custom post-type, change the capability_type setting in your functions.php file to 'post' and it should fix your problem.
Check permissions of your wp-content or wp-content/upload folders, If folder permission is not 755 then change it to 755 and re-upload again. I hope it will solve your problem.
If you are using a low scale server and added a plugin named "WP-SmushIt" then it will surely cause an error. Reason is simple this plugin uses CPU resources to minimize the size of images in process of optimizing it and so it crosses the server limited execution time. Solution is simple-> Go with higher plan servers or try changing server execution time listed in php config file.
Not directly related to this, but I have experienced the exact same issue after moving the very same site to a different server now. Only difference is now I've been using Nginx instead of Apache. I have checked the ownerships before and they were all correct (else the normal upload wouldn't work earlier either). I'm leaving this here just as a reference.
The fix on my newer case was simply changing the ownership of the web root and all the files inside.
Nginx and PHP5-FPM were running with same user: www-data, which is at the group with same name: www-data.
So changing of all the ownership of the files fixed in this case:
su
chown -R www-data:www-data /path/to/wordpress/root/
And the issue was gone.
I still don't know the original reason of my old issue, I had to wipe, start from clean and restore the posts, plugins etc. from scratch.
I was facing same issue in wordpress like media not loaded in popup. then i have resolved.
I think, Some times problem created by ajax response.Means ajax response comes with some additional content.
Wordpress media popup is loaded content by ajax(json Response) and ajax give response with some content like style and other.
For Example:-
<style>
.class{}
</style>
then json(ajax response).
So First check your ajax response in console.We have to disable all plugins then check it is work or not.If no then activate default theme. because content comes from plugin and theme.
check your folder permission, and mod_security settings, also try to increase max_execution_time and memory,

Resources