Wordpress pictures and thumbnails not working - wordpress

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

Related

Wordpress unable to add Image to Page/Post

When creating a new page/post, I can't add images using the "Add Media" feature.
The image selected does not load on the editor. Google Inspect reveal the following error:
POST http://stss.org.sg/wp-admin/admin-ajax.php/load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-respons…:445 404 (Not Found)
Have anyone encountered similar issue?
Wordpress Version: 4.7.4
thanks!
Have you tried deactivating all the plugins and see of it works. If it works with all of the plugins disabled you can enable them one by one until it is broken again and you know it is a plugin problem.
If it is still broken try another theme and see if that works.
I just had the same problem, I couldn't insert single image into editor, even though inserting gallery of images worked ok. WordPress was already upgraded to latest version, all plugins were deactivated and default theme activated.
Finally I got it working after turning off ModSecurity in Cpanel for this domain.

Wordpress featured images and media library thumbnail no longer displays

I have a WordPress blog that is on a VPS. Everything has been working fine until today when I realised that my featured images are no longer displaying. I logged in to my dashboard, media library, and all the image thumbnails are no longer displaying properly.
Before this time, I had a little issue with my caching plugin (W3Total Cache), so I deactivated it, and my site continued to function normally. But now, no featured image is displayed all through the site. What amazes me is that inline images in a post are still displaying in the site. See example.
Now my site's homepage is just blank, because no featured images are displayed. As of today, images which I attached in the post are just seen as links, but if the link is clicked, it redirects to the image. Here are some of the things I've tried so far:
I've run df -h ssh command to verify if my diskpace is full.
I've restarted mysql server several times.
I've manually downloaded wordpress .zip file, and upload to the site.
I've automatically reinstall wordpress using http://www.example.com/wp-admin/update-core.php.
I've switched to a default theme.
I've tried some of the resources similar to this question here, but none of the proffered solutions resolved my issue.
My permission settings for all the sub-directories under wp-content is 755. I have also tried changing them to 775 and 777.
*. I've used the Regenerate Thumbnails plugin to try to regenerate the thumbnails, but it returned an error The error message was: The originally uploaded image file cannot be found at, but when I view the image directly from my browser, it returns the image.
I've also used the WP Original Media Path plugin to try and restore the media path (if it was messed up), but to no avail.
I've deactivated all plugins too.
I just checked my wp_postmeta table in my DB and it returned this error wp_postmeta table is marked as crashed
How do I rectify this issue?
Since the source of your homepage has nothing in the main section:
<section class="entry-content clearfix" itemprop="articleBody">
</section> <!-- end article section -->
and also due to the last item in your question, I assume you have a database problem instead of missing files (which I think would throw some 404s in my browser instead).
Do you have WP_DEBUG_LOG? If so, check wp-content/debug.log for errors. Be sure to launch phpMyAdmin and browse around the tables to see everything is good in there.
Use CHECK TABLE to confirm if tables are corrupted, and in that case use REPAIR TABLE to try to fix them (maybe phpMyAdmin has those in its GUI, I'm not sure right now).
In IIS -> Php Manager-> Php Extensions -> php_gd2.dll enable. refresh or restart the server it will work...
After long days try got this solution.

Wordpress Media Thumbnail/Permalink

I have an issue with my Wordpress installation. I dont know when it happened so maybe someone can help me to find the problem.
Suddenly all my media thumbs are missing. recreation gives me an error. when uploading new files, thumbnails and links are created properly. Permalinks to the imagefiles are broken but i can use the images placed on my website (direct link/gallery). Permalink of broken files is set to WP root.
According to your question it looks that you are making a copy of your website in to new server.
If so then please make sure 2 things.
You have copied your uploads folder.
You have replaced all older link by new link in DB.

Not able to add new menu items in WordPress 4.1

I am building a Word Press site with a large custom menu structure (around 100 items). I have successfully added some menu items, but now not able to add more menu items.
I get no error messages or any indication that something went wrong.
After searching around, I have discovered a number of discussion threads that suggest this could be a max_input_vars issue.
I have tried any/all suggestions from these threads, and no luck. I noticed that a number of other people in these threads also seem to have hit a wall.
Any thoughts on how to proceed? Any help appreciated!
The most probably is that your theme or one of your plugin is causing some issue. I recommend you to do this task for debugging the issue:
First off all make sure to have WP_DEBUG turn on in your wp-config.php file: Debugging in WordPress. If you see any error, fix it. If no error, continue to the next task.
Activate the default WordPress theme Twenty Fifteen and try to add and image to a post again, if it doesn't work, it means that your theme is not the problem. Continue to the next task.
Deactivate all your plugin, one by one, and try to add an image to a post after each plugin deactivation. If after deactivating all the plugins the error continues... the next task.
If nothing works, I will re-install WordPress. You can keep your themes, plugins and media by keeping the wp-content folder. Just delete wp-admin, wp-include and all the files, download a new version of WordPress and upload again this files.

The whole wordpress website got RESET

My wordpress blog was working perfectly fine, until one day when suddenly my blog got down. All I could see was a blank white page. I still don't know the reason.
But initially, I was able to figure out the Debug messages, which were some compatibility issues between prototype of function Walker() and some theme function extending Walker(). So, I somehow managed to resolve those issues, by changing the theme function prototype.
But still, I could only view a blank page without any error. Then, I went through my child theme files and I found that there was some PHP code written to upload image file in child "style.css". Fortunately, I had backup of my Blog so I restored my child style.css.
After so many efforts, I still couldn't restore my complete Blog.
Although, All the posts and everything is there in DB, but I can't see any post on my Blog and Admin panel. It seems that my created categories are no longer there in Admin panel, when I restored theme.
Can anyone please help me to find out...
Why it happened and How my blog got reset ?
How can I restore my blog and reflect all my posts from DB to Admin-panel & Blog ?
It looks like somebody hacked you up. And, edited some files on your server.
Wordpress, actually doesn't offer any backup features. But, most of the web hosting services have a usual backup option. So, you might consider that.
Or, if your Wordpress database is right in place, as before, then you the possible error is that your Wordpress core files are corrupted or edited by anyone. So, you might consider, deleting your Wordpress and reinstalling it, (without deleting your databases). This would not affect your blog at all, because all Wordpress information is stored in the databases. But, remember to backup the files of wp-content folder and copy them to your new installation.

Resources