I messed up a wp installation so I decided to backup the database and re-install, then I deleted all the wp database tables and imported my backup
Now It doesn't output even errors ( http://toniweb.us/codigo/ ), even that I changed the debug option into true:
define('WP_DEBUG', true);
Any idea what could I try now to find out where the error comes from?
-EDIT-
Also tried:
ini_set('error_reporting', 1);
error_reporting(E_ALL);
1/ Can you log in to the admin area? I just tried to visit your admin login screen and got presented with the 'Wordpress needs to update the database' message, this is common after failed upgrades/migrations, usually hitting the update button will fix your issues (update: in this case it appears to have done so).
2/ Try switching to the default Wordpress theme (rename your current theme via FTP if you can't access the admin area). If you can access the admin area then try to reset your permalinks (just select the same option you have now, it will update it in the database).
3/ Failing that, check your themes functions.php file for any white space at the end of the document, this sometimes produces a blank white screen instead of your site.
Related
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.
My wordpress site was working fine , but wordpress update it to V 5.4 and after that my website is not working , not even i can access my admin dashboard.
I tried all these step to solve this
MANUAL INSTLLATION (RECOMMENDED)
Download the WP Safe Mode plugin and unzip it, you’ll now have a
wp-safe-mode folder.
Connect to your server (for example via FTP) and go to your website
folder.
Add this line to your wp-config.php file:
if( !defined('WPMU_PLUGIN_DIR') ) define( 'WPMU_PLUGIN_DIR',
dirname(__FILE__).'/wp-content/wp-safe-mode' ); //WP Safe Mode
Create the folder named wp-safe-mode inside your wp-contents folder.
Uploade the file wp-safe-mode/bootstrap/wp-safe-mode-loader.php into
the newly created wp-safe-mode folder.
Upload the entire wp-safe-mode folder to your plugins folder in
wp-content/plugins.
If your site is broken and you cannot install plugins or access the dashboard, you can modify the loader file temporarily to gain access by following these additional steps:
Open the plugin file wp-safe-mode-loader.php and change this line:
public $safe_mode_on = false;
to
public $safe_mode_on = true;
Upload the modified wp-safe-mode-loader.php file to the
wp-contents/plugins/wp-safe-mode folder.
Visit your site, deactivate plugins etc.
Undo the changes you just made to wp-safe-mode-loader.php when you
want to disable safe mode.
But nothing works for me. Can you please suggest something so i can fix my problem
Theme Conflict Troubleshoot:
To perform this, you just activate a default theme, like Twenty Nineteen. Unfortunately, because your site is showing an error, you will need to perform the troubleshoot with either your web host’s file manager (like cPanel’s Filemanager), or use FTP or sFTP (it’s like secure version of FTP.) It’s important to note that in switching themes, you won’t lose your chosen theme’s settings. To do this, you rename your active theme’s folder by adding DISABLE or OFF to the end of the folder’s name. For example, if you’re using Twenty Eighteen and the folder is ‘twentyeighteen’, you would name it ‘twentyeighteenDISABLE’ or ‘twentyeighteenOLD’ . Go back to the front of your site and refresh.
The objective is to check whether the mistake leaves. In the event that it doesn’t, it is anything but a subject issue. Try to rename the organizer back to its unique name when you’re finished investigating.
Plugin Conflict Troubleshoot
If it’s not the theme, it might be a plugin issue. In a way, troubleshooting is similar. However, it’s much easier to rename the plugin folder to ‘pluginsOFF’. Visit the site, and log-in. This will turn off all of the plugins. Please note that it won’t remove the original settings of those plugins, as they will be there when you reactivate them later on.
Once the plugins are off, go back and rename the folder back to ‘plugins’. Go to your WordPress admin area and reactivate each, one-by-one, until you get the screen that says “There has been a critical error on your website”. The plugin that you just reactivated, is the problem.
You can either disable the plugin that caused the problem or remove it or roll it back to the previous version using the rollback plugin and wait until the developer releases a new version of the plugin.
I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.
So I went and edited a plugin called Huge IT portfolio and added an echo "1"; exit(); in it and now i can't access the admin panel (yet i can access the site) it just gives me the echo 1.
What can I do to revert the changes to it? I can't even paste the code anymore since i can't access it
If you can access the admin panel anymore you have a few options, they all involve accessing the website via FTP.
Rename the plugins folder (ex plugins_old), logging in now will cause all plugins to disable.
Rename the directory of your specific plugin, logging in now will cause this plugin to disable.
Download the file you edited in the WordPress dashboard, undo your edits and upload it again.
I moved my wordpress site from one host account to another. I keep my URL unchanged. After that, my site is work fine - but only on front side. I cannot login to admin area - there is only blank white screen after i enter my username and password. Here is a brief detail what i have installed and what i try to do for now:
front end is work just fine - mean that DB connection is ok
login form is appear correctly. I even try to enter wrong username and/or password in order to check auth procedsure - it's ok for incorrect login. If credentials is correct - white blank screen.
have very simple template - no fancy sliders, no sophisticated framework - "simply works core"
have Better WP security installed - i try to delete plugin folder - no change
try to clean/delete .htaccess - no change
try to get manually a secret key from .htaccess and login with him - again white blank screen.
trying to run wordpress in debug mode - no error messages. Also no errors form php in error.log (edited at 28.10.2013)
Please, if anyone have same or similar problem - i'll be very happy to resolve this. My blog is a long time active, i have a lot of posts and pages there.
try change this on your wp-config.php to see if the wordpress dump any useful information about this white screen.
define('WP_DEBUG', false);
Replace that line with the following:
// Turns WordPress debugging on
define('WP_DEBUG', true);
// Tells WordPress to log everything to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Doesn't force the PHP 'display_errors' variable to be on
define('WP_DEBUG_DISPLAY', false);
// Hides errors from being displayed on-screen
#ini_set('display_errors', 0);
hope that helps :)
After few days of hard but unsuccess tryouts, i found a solution. It's drastic and not well explain what happen, but it worked for me - and hope for something else too. So:
rename wp-content\plugins diretory to __plugins - this will deactivate ALL plugins
rename .htaccess to .__htaccess - this will remove all url rewrite records
clean browser cache
login from wp-admin\
when try to access plugin list, a lot of messages appear - sayng for deactivating all plugins
restore plugins and htaccess to their original names
and finally - activate all needed plugins again
In conclusion - this does not answer the question why (even if URL is not change) this happen. It also not so pleasant if you have a lot of plugins - you must remember which of them is activated.
Thank you all, that problem is closed for me.
I fixed it.
I tried the following:
define('WP_MEMORY_LIMIT', '64M');
Change Plugins name
Check white spaces
Increase memory
Change Theme
Upload new wp-admin
All of them didn't work..
I downloaded wp-config with ftp and changed the encoding using notepad++ from utf8-BOM to just utf8
A white screen only tells you that something has gone wrong.
This can be anything. Speculating is just a waste of time.
Go and find the error.log of your webserver!
Then last lines of this file should tell you what went wrong.
When you don't understand it, you can ask again.