• Resolved nexusbroadcast

    (@nexusbroadcast)


    For some reason it isnt including all the images in the posts and pages. It includes some of them. Ive checked permission and ownership of the files. There is no difference between the images it skips and those that it processes.

    There are other files in this directory that are being written so its not a permissions problem there either.

    Of course that includes a bunch of images I don’t use in the live pages anymore. And then the zip file is too big for cloudflare to process as I am using dev pages. I don’t know what else to do as I cant find any reason why it wont include some image files. I am having no issues from the plugin otherwise.

    There are no errors in the plugin log.

    If I add the upload directory or missing image to the additional files/directory setting in the plugin it works.

    /var/www/beta.mywebsite.com/public_html/wp-content/uploads/
    or /var/www/beta.mywebsite.com/public_html/wp-content/uploads/2023/10/quick-easy-setup-240×300-150×150-1.webp

    But I cant track down each file thats missing across the website and add it. And I cant just add the upload directory because it has a lot of images that aren’t currently in use. This makes the zip file too large for cloudflare. I use their dev pages for the static files and the max zip size it 25 MB. Normally my site is about a 15 MB zip.

    But that directory IS readable for many other files. So I am still at a loss for what is going on here. All permissions and file ownership/group are the same across all those files and directories.

    I have disabled ALL plugins except this one and stripped my .htaccess file to just the original wordpress stuff.

    I turned on diagnostics – again no errors. Its like its not even seeing these missing image in the pages and posts themselves.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nexusbroadcast

    (@nexusbroadcast)

    I fixed this by updating my wordpress url using the code below in phpmyadmin. I use beta.mywebsite.com on my local box to develop the site. Then the live site is simply mywebsite.com — inside these pages and posts it was listing mywebsite.com not beta.mywebsite.com – I guess not everywhere. I had the site and url settings set in wordpress to beta.mywebsite.com so I have no clue what happened. It works now. Though my zip file is now 122 mb – so it must’ve been missing way more images than I thought. Fortunately despite a cloudflare maximum warning of 25 mb it still accepts and imports my zip file.

    UPDATE wp_options SET option_value = replace (option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE wp_posts SET guid = replace (guid, 'oldurl.com','newurl.com');
    UPDATE wp_posts SET post_content = replace (post_content, 'oldurl.com', 'newurl.com');
    UPDATE wp_postmeta SET meta_value = replace (meta_value,'oldurl.com','newurl.com');
    Thread Starter nexusbroadcast

    (@nexusbroadcast)

    If you do this you’ll need to go back once again and change beta.beta.mywebsite.com to beta.mywebsite.com as it has changed the two site urls. After that everything works perfectly. If you find that it is pulling in ALL of your images, even those that are not included in published articles. Add the following to your .htaccess Options -Indexes That will stop that behavior.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing images’ is closed to new replies.