• Resolved vikeh

    (@vikeh)


    Hi Guys,

    I have an issue with all the images on the website.

    All images in media folder turned out grey and obviously images are not loading in the frontend.

    If I download the files to my computer I can open them so they are not damaged.

    Any idea what to do?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Stef

    (@serafinnyc)

    When they load on frontend they’re alk grey? Sounds like an old JS snippet we used to use or CSS.

    Can you take a screenshot and post a url

    • This reply was modified 7 years ago by Stef.
    Thread Starter vikeh

    (@vikeh)

    They are grey in the administration. Frontend I have just the path of the image file instead of the actual image.

    I have put the website in maintenance mode as it looks crap.

    Screenshot link attached to understand how its looking.

    https://prnt.sc/nwne58

    Stef

    (@serafinnyc)

    Hard to say. Could be a plugin conflict, JS script or path broke. Do you have or can you create a staged version for testing? Would be nice to see if any errors are in console

    Thread Starter vikeh

    (@vikeh)

    What I did before this happened (but all other client websites didn’t) was I have moved the site to a new hosting. I just moved the whole cpanel account to my dedicated server.

    I can provide login details if necessary.

    Thanks in advance

    Stef

    (@serafinnyc)

    No. You cannot post any logins here in the forum. Sounds like you have the wrong paths. Have you checked the urls in the database? Sometimes the uploads folder doesn’t take when you bring things over like that.

    Thread Starter vikeh

    (@vikeh)

    In the database upload path and url path are empty but I checked my other websites and are the same.

    When I click on an image and it should open in lightbox, a window pops up saying “Image cannot be loaded. Make sure the path is correct and image exist.”

    I have added paths from some forums with the same issue but still, nothing works.

    Stef

    (@serafinnyc)

    When you go to SETTINGS > MEDIA do you see your media settings at all?

    Thread Starter vikeh

    (@vikeh)

    This is all I have.

    https://prnt.sc/nwnpz4

    Stef

    (@serafinnyc)

    Interesting. Have you done a S&R? Search and Replace yet in SQL?

    I’d run one just to make sure you have the paths correct. Make sure, you’re using a prefix to change these to that.

    UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL');
    UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL');
    UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL');
    UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL');
    UPDATE wp_comments SET comment_content = replace(comment_content , 'Existing URL','New URL');
    Thread Starter vikeh

    (@vikeh)

    I have just renamed the .htaccess in the uploads folder and all the images came!

    Stef

    (@serafinnyc)

    The old htaccess in the folder routine! Does this every time! Good job. Glad you found it.

    • This reply was modified 7 years ago by Stef.
    Thread Starter vikeh

    (@vikeh)

    I hope this will help others with the same issue!

    Thanks for your support still!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Images not loading’ is closed to new replies.