• Resolved rompstar

    (@rompstar)


    so my Media Library doesn’t load image thumbnails / also when I create a new Post, I am able to upload a new image to the Media Library, but it doesn’t display anything and I get an error.. “this image has an empty alt attribute”, but I don’t think this is the reason why it is not loading ?

    I already did google about this and made sure my permissions are good, but still, the thumbnails or new images to new posts don’t show up, images show fine for existing posts, thanks!

    I run my own server on Ubuntu and latest install of WordPress, thanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you look in wp-contents/uploads/whatever, wherever the image file is, do you see the thumbnails, too?

    Thread Starter rompstar

    (@rompstar)

    ya, I see smaller versions of the images, I believe those are the thumbnails

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, so they’re being created. At least, that’s happening!

    Are the permissions and ownership the same as the main image?

    Please post a link to an affected page.

    Thread Starter rompstar

    (@rompstar)

    Thread Starter rompstar

    (@rompstar)

    when I click on the image its self I get some error 500 and I see a reference to some wp web site, itsn’t wordpress at war with them, maybe it a plug-in causing that ?

    I can delete that crap if so…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It appears that your images are actually being served from the wp.com CDN and not directly from your site. This *should* have nothing to do with the current unpleasantness.

    Are you using the image optimization and CDN features of Jetpack? If so, try turning off that option. (It may be under “site acceleration” or something like that; see https://jetpack.com/support/site-accelerator/.)

    Calling up the image URL causes an Error 500 on the server. You should be able to find the reason for the error in your hosting’s error log. Contact your hoster’s support if you have any questions.

    Thread Starter rompstar

    (@rompstar)

    I turned off “Image CDN”, still not working… where would image optimization be ?

    Thread Starter rompstar

    (@rompstar)

    turning OFF the “Image CDN” makes none of my images work now… so I put that back. and actually when I disable the “Jetpack Boost” plug-in all my images break, any idea ?

    • This reply was modified 1 month, 2 weeks ago by rompstar.

    When I call up the URL of an image I get an Error 500, example: https://kodiakbrewing.com/wp-content/uploads/2024/10/AI_Beer-7.png – I would still recommend the above.

    Thread Starter rompstar

    (@rompstar)

    I looked at the error log, and found this, looks like .htaccess issue…

    [Fri Oct 11 13:55:53.208823 2024] [core:alert] [pid 68280] [client 87.129.186.254:60502] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context, referer: https://kodiakbrewing.com/using-ai-for-beer-recipe-exploration/
    [Fri Oct 11 13:55:53.532546 2024] [core:alert] [pid 67953] [client 87.129.186.254:60503] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context, referer: https://kodiakbrewing.com/using-ai-for-beer-recipe-exploration/
    [Fri Oct 11 13:55:53.537127 2024] [core:alert] [pid 67990] [client 87.129.186.254:60504] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context, referer: https://kodiakbrewing.com/using-ai-for-beer-recipe-exploration/
    [Fri Oct 11 13:55:56.575385 2024] [core:alert] [pid 67992] [client 87.129.186.254:60506] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context, referer: https://kodiakbrewing.com/using-ai-for-beer-recipe-exploration/
    [Fri Oct 11 13:59:00.648886 2024] [core:alert] [pid 67998] [client 54.37.23.159:43900] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context
    [Fri Oct 11 14:02:51.883562 2024] [core:alert] [pid 67953] [client 192.0.114.116:46866] /srv/www/wordpress/wp-content/uploads/.htaccess: Require not allowed in context

    .htaccess file:

    Require all denied

    • This reply was modified 1 month, 2 weeks ago by rompstar.
    Thread Starter rompstar

    (@rompstar)

    I changed it to:

    Order Allow,Deny
    Deny from all

    it works now, did I do it right ?

    There is apparently an .htaccess file with an incorrect command in the upload directory. Delete the .htaccess file, which does not belong there anyway. The images should then be visible.

    EDIT:

    Yes, the change is also a solution. However, it is questionable why the file is there at all.

    Background: whether Require or Order works depends on the Apache version used. This has obviously changed in your hosting and/or this file has somehow been created and stored incorrectly.

    • This reply was modified 1 month, 2 weeks ago by threadi.
    Thread Starter rompstar

    (@rompstar)

    yay, it works!!! wooohoooo, this calls for a Beer!

    Thread Starter rompstar

    (@rompstar)

    I run my own server, I got tired of godaddy and wanted to get back hands on keyboard to learn.. ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.