I keep getting a blank admin page? - wordpress

I have a WordPress site and now for some reason it no longer allows me to make changes via the admin backend. I just have this blank GUI, none of which make any change if you click on them
I just added a plugin called Monster insights to align the site with google analytics and since then I get this result. I have tried to rename the plugins folder to manually remove them out of the equation and still no luck. I have reviewed the Log file with little luck as well.
[04-Jun-2019 08:57:05 UTC] PHP Fatal error: Call to undefined function wp_is_recovery_mode() in /home/erwinb411/public_html/wp-admin/includes/update.php on line 840
[04-Jun-2019 08:18:10 UTC] PHP Warning: include_once(): Failed opening '/home/erwinb411/public_html/wp-content/themes/theme52521/includes/register-plugins.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in

i think is a problem of plugin's compatibility in your site.
Have you try to update wordpress core, plugin and theme?
if after update all you have the same problem is an compatibility issue.
Let me know.

Related

Why is my wordpress website is suddenly showing as a index list?

My website is already live for a long time. suddenly yesterday he open as a list seems like index.
www.gilron.org
Why is that?
(i don't have any cache plugin)
The console is showing an error:
Uncaught TypeError: $(...).fitVids is not a function
This error indicated that most probably you have disables the FitVids plugin or some upgrade on the template might have removed it.
I see no js library included with the Fitvids plugin.
Documentation of the fitvids plugin on their github page.
https://github.com/davatron5000/FitVids.js

WordPress - Code Snippet plugin

I am working on a new Wordpress blog and it's very important to have code snippets in it.
So to highlight the code snippet I downloaded a Code Snippet plugin from https://wordpress.org/plugins/codesnippet-20/
Now, everything is screwed up. Below is the error when I access the site.
Warning: require_once(geshi.php): failed to open stream:
No such file or directory in /home1/jamburster/public_html/wp-content/plugins/codesnippet-20/codesnippet.php on line 126
Fatal error: require_once(): Failed opening required 'geshi.php'
(include_path='.:/opt/php56/lib/php:/home1/jamburster/public_html//wp-content/plugins/codesnippet/lib:/home1/jamburster/public_html//wp-content/plugins/codesnippet/lib/PEAR')
in /home1/jamburster/public_html/wp-content/plugins/codesnippet-20/codesnippet.php on line 126
Here is what I did.
1. Downloaded the archive from https://wordpress.org/plugins/codesnippet-20/
2. Uploaded the plugin WordPress -> Plugins -> Add Plugin. Browsed the downloaded one and clicked on upload.
3. Activated the plugin.
Can anyone please help.
i suggest you, using crayon syntax highlighter instead of current plugin
Ok, so it looks to me like the plugin is having trouble finding a file called geshi.php. I just downloaded the plugin and activated it in my WordPress admin dashboard and I got the same error. So this isn't specific to you. One thing to note is that this plugin is not currently being maintained.
"This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used
with more recent versions of WordPress."
However, I believe I have a fix for you. Go into your plugin and open the codesnippet.php file. Go to line 126 and replace that line with this:
require_once('/lib/geshi.php');
It looks like the directory structure of the plugin got changed without the necessary changes being made in the code base. I just tried this change on my machine and I am now able to activate the plugin without WordPress crashing. I haven't tried to use it, though.

Can't load WP admin panel and can't figure out why..?

I have a WordPress site that is having some sort of an issue I can't seem to figure out. When I try to load the admin panel I get the following:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles
should not be registered or enqueued until the wp_enqueue_scripts,
admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see
Debugging in WordPress for more information. (This message was added
in version 3.3.) in
/home/airassoc/public_html/wp-includes/functions.php on line 3370
Notice: register_sidebar_widget is deprecated since version 2.8! Use
wp_register_sidebar_widget() instead. in
/home/airassoc/public_html/wp-includes/functions.php on line 3201
Notice: register_widget_control is deprecated since version 2.8! Use
wp_register_widget_control() instead. in
/home/airassoc/public_html/wp-includes/functions.php on line 3201
Warning: Cannot modify header information - headers already sent by
(output started at
/home/airassoc/public_html/wp-includes/functions.php:3370) in
/home/airassoc/public_html/wp-includes/pluggable.php on line 1179
All of those notices are referring to core WP files, though, and WP itself has been updated to the latest version as of a week or two ago.
I'm thinking I must have something (theme or plugin) causing this, but the PHP notices aren't giving me any help. I've been going through (from the server) and deleting any plugins I think may be causing it but I haven't had any luck.
Any tip on how to troubleshoot this sort of thing would be greatly appreciated. Thanks!
Most likely if you have changed any files for your theme this can cause the dashboard and site to go down and not load, you may need to restore the default files for your theme you can do so by going to the public_html folder thru cpanel of your host and upload the theme files back again.

How to Fix WordPress Debugging Errors

I have been having some weird behavior in the dashboard of my WordPress site. Out of the blue, my site started to appear corrupted. When writing a post, the publish button would dim after a minute or two and I had to exit the page and redo the post, saving immediately. Then my widgets stopped saving. I tried enabling accessibility under screen options but then I couldn't disable it. Then I couldn't even save a new post at all.
What I have done is: 1) rename plugins folder, 2) tried everything in the Twenty Twelve theme, 3) installed clean copy of WordPress from fresh download. None of these things worked. I ended up having to change my user settings in PHPAdmin to turn off the accessibility option for the widgets. So, after more research I added the Debug Bar and this is what it said:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /hsphere/local/home/boniandk/amorysabor.com/wp-includes/functions.php on line 3041 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /hsphere/local/home/boniandk/amorysabor.com/wp-includes/functions.php on line 3041 Notice: Constant WP_MEMORY_LIMIT already defined in /hsphere/local/home/boniandk/amorysabor.com/wp-config.php on line 92
But now I don't know what to do. I don't even know if any of these errors have to do with my issues.
Site link is: http://amorysabor.com

Notice: register_uninstall_hook was called incorrectly

I automatically updated my wordpress installation to the latest version. Everything looked normal unit "updating database..." where it got stuck. I waited for a long while and then closed the page, since nothing was happening.
Then I got a error message saying something about maintenance, which I got rid of after deleting the maintenance file.
Wordpress displays that it runs the latest version, but when I try to reinstall I get the same errror. I've tried disabling all plugins and switch to the default theme, but no luck.
I set the debug to true and I got this message:
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information.
Everything looks normal except a image on the front page is breaking the layout.
Any tips?
The way I fixed this type of problem, was to do a global search in my project for the function call.
Some plugins had been installed which had calls such as this:
register_uninstall_hook(__FILE__, array($this,'uninstall_removedata'));
but it should be this:
register_uninstall_hook( __FILE__, 'uninstall_removedata');
If you see a message that something is called incorrectly, the Codex can be very helpful to make sure you use the correct syntax.
In this case it is here:
http://codex.wordpress.org/Function_Reference/register_uninstall_hook
Some WordPress Plugin which you have installed is firing the uninstall hook and is not setup properly.
Can you find the path to the file from the error message?

Resources