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.
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 downloaded a theme called MyWriter. In my WP panel it says I should update it, when I click update I get this error:
Update Failed: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
It uploaded correctly and works fine as well. But I thought before I start customising it properly, I should update it. Does anyone know how I can get past this?
Thanks,
Can you download the theme package and unzip it manually? The most likely cause of the error is that the zip is corrupt or that it was not compressed with zip.
If you can unzip the theme package, you could then upload the latest version via FTP to the folder /wp-content/themes/mywriter (please note the actual folder would be case sensitive so if its myWriter or MyWriter or some other variation be careful to upload it to the right place).
Or you could try rezipping it (using zip) and upload it via WordPress admin.
Incidentally, if you are intending to customise the theme substantially, then you should use a child theme. Otherwise next time the theme is brought up to date by the theme author you could stand to lose all of your customisations. For more information about creating a child theme, the official WordPress guidance can be found here https://codex.wordpress.org/Child_Themes and is explained more simply here https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
Hope this helps.
I've been having a few problems with my Wordpress Installations on a couple of my website.
The first problem is that uploading pictures works but when if I add the image to a post for example, it adds it but shows a broken image thumbnail. When I try to access the image though it throws a 403 error. Tried changing the permissions of my uploads directory to 755. Didn't work though.
You can visit this link to get an idea of what's happening.
No thumbnails are showing up on the admin panel. Normally, in the theme installation window, there's a thumbnail on every theme that shows what the theme looks like, in my installation there's nothing like that. It just show blank thumbnails.
I've uploaded an image showing the thumbnail error here.
At first I thought something was wrong with my Wordpress Installation, but after reinstalling it a couple times, I can see that it's something else. Your help would be greatly appreciated.
Use This only permission issue, use 666 for upload folder then images is working well. check this https://codex.wordpress.org/images/e/eb/podz_filezilla_13.gif
If permissions didn't fix it then try this:
1/ Double-check that your PHP configuration is up to date with the latest WordPress version. I made the mistake cause I was previously working on Magento 2 and forgot to switch from PHP 7.2 to 7.4.
2/ Try basic approach deactivate all plugins and see if one is clashing. Do the same with your them or try a native theme TwentyThirteen instead.
3/ Install "Regenerate All Thumbnails" go-to tools and force thumbnails regeneration for the entire library
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.
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?