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.
Related
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.
I have this error and I seems can't get any decent answer on the web. Your answers will be much appreciated.
Thanks
Take a look at the documentation for wp_get_active_and_valid_themes(). You'll see that it's a private core function, which means plugins and themes aren't supposed to use it. It's also defined on wp-load.php. This most likely indicates one of two things.
1) Your WP Installation isn't valid. Reinstall the most recent version of WordPress and it should fix itself.
2) If you're attempting to use WordPress functions outside of WordPress (for example, in a custom PHP file), you're not properly loading in wp-load.php with require_once( 'path/to/your/wp-load.php' );
this just happened to several sites for me as well that were using WP Super Cache. i just deactivated all plugins and the theme (via wp_options db table) and reactivated them and it was fixed. strange
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.
I'm currently helping someone with their Wordpress site. They are running Wordpress 3.5.1. The problem is that I cannot drag and drop any widgets into their widget areas. I ran the Javascript console and found this error:
Uncaught TypeError: Object [object Object] has no method 'hoverIntent'
load-scripts.php?c=0&load%5B%5D=admin-bar,hoverIntent,common,jquery-ui-core,jquery-ui-widget,jquery…:3
I have moved the whole Wordpress site to a testing server. The problem is that this Wordpress site is running a custom theme, and a bunch of plugins (even som custom as well), so I guess updating the WordPress-script is not an option, if I don't want to mess up things completely.
I have deactivated and removed both the theme and all plugins, and the problem still persists. I can't understand why, as it should technically be a clean WordPress install.
Any suggestions would be appreciated though!
Try deactivating plugins one by one and check to see if everything is ok. I has happened alot that plugins break javascript or css in the backend that cause some js functionalities to break.
Seems like I was missing some necessarry JS files in the wp-includes/js/ folder. Downloaded files from http://wordpress.org/download/release-archive/.
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