• I use the Dynamik child theme with the Studiopress Genesis framework. Images uploaded for the theme to the /wp-content/uploads/dynamik-gen/theme/images/ folder stop being visible when the plugin is activated.

    For example, see this image: https://yankeesfamily.com/wp-content/uploads/dynamik-gen/theme/images/yankee_stadium_cropped.jpg

    The image is stored in the website’s file structure, but it can’t be viewed via the browser.

    When the plugin gets deactivated, the image reappears.

    Other images uploaded via Add Media seem to work fine.

    Going to Settings > Adaptive Images and then clicking Cleanup Cache doesn’t help. Neither does clicking Save Settings again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Terribly sorry for not having replied to this thread yet, but it seems that I did not get the notification from the system!

    1. First of all, I must confirm with you that the wp-content/uploads directory is indeed in the “watched directories” of the plugin.

    2. After this, do you think it is possible for you to double check if the rest of your images are actually being resized and delivered correctly? Do you see the cache being populated with images, when you access your website from a mobile device or from a desktop browser in responsive design mode?

    3. I could also use the classic debug info from the “Print debug” and “Print diagnostics” buttons in the plugin settings page.

    4. Lastly, after having activated the plugin, can you point at one of the images, which are presented with the problem, and view it alone in your browser? Do you see a special message there?

    Let’s see how it goes from here!

    Cheers,
    Takis

    Thread Starter vahost

    (@vahost)

    Well, after messing around with it, it seems to be working.

    I had the plugin turned off for the past few days, so I turned it back on again, cleared the cache, and checked.

    I was using Firefox, and the image wasn’t showing.

    So I checked other browsers (Chrome, Safari, Vivaldi, IE) and found that it was displaying correctly.

    I also tried it on my iPhone, and it displayed correctly there.

    I then checked the Adaptive Images folder in /public_html/wp-content/cache/adaptive-images and found that the cached images were there by name for the iphone resolution (460), but in the laptop’s folder (1400), there was an image called something like content-filler.png.

    I quit Firefox, then restarted it and checked again. Now the image shows in that location by its proper name.

    The site only has two images at this point, so there’s not a lot to check.

    There are two watched directories under the plugins settings:
    wp-content/uploads
    wp-content/themes

    The cache directory is:
    cache/adaptive-images

    Here are the diagnostics you requested. I’ve changed the domain name and account name:
    ✔ PHP GD library is installed.

    ✔ Image cache directory has been created.

    /home/account/public_html/wp-content/cache/adaptive-images => drwxr-xr-x

    ✔ Installation .htaccess file is setup OK.

    /home/account/public_html/.htaccess => -rw-r–r–

    ❖ Adaptive images settings dump:

    array(14) {
    [“resolutions”]=>
    array(24) {
    [0]=>
    int(3000)
    [1]=>
    int(2900)
    [2]=>
    int(2800)
    [3]=>
    int(2700)
    [4]=>
    int(2600)
    [5]=>
    int(2500)
    [6]=>
    int(2400)
    [7]=>
    int(2300)
    [8]=>
    int(2200)
    [9]=>
    int(2100)
    [10]=>
    int(2000)
    [11]=>
    int(1900)
    [12]=>
    int(1800)
    [13]=>
    int(1700)
    [14]=>
    int(1600)
    [15]=>
    int(1500)
    [16]=>
    int(1400)
    [17]=>
    int(1300)
    [18]=>
    int(1200)
    [19]=>
    int(1100)
    [20]=>
    int(1024)
    [21]=>
    int(840)
    [22]=>
    int(640)
    [23]=>
    int(480)
    }
    [“landscape”]=>
    bool(true)
    [“cache-directory”]=>
    string(21) “cache/adaptive-images”
    [“watched-directories”]=>
    array(2) {
    [0]=>
    string(18) “wp-content/uploads”
    [1]=>
    string(17) “wp-content/themes”
    }
    [“jpeg-quality”]=>
    int(75)
    [“sharpen-images”]=>
    bool(true)
    [“watch-cache”]=>
    bool(true)
    [“browser-cache”]=>
    float(180)
    [“hidpi”]=>
    bool(false)
    [“cdn-support”]=>
    bool(false)
    [“version”]=>
    string(6) “0.6.62”
    [“sanitized”]=>
    bool(true)
    [“wp-content-dir”]=>
    string(36) “/home/account/public_html/wp-content”
    [“wp-content-url”]=>
    string(36) “https://domain.tld/wp-content”
    }

    Web Server

    Apache
    Document Root

    /home/account/public_html
    PHP

    5.6.30
    PHP Time Limit

    30
    PHP Memory Limit

    256M
    PHP Post Max Size

    8M
    PHP Upload Max Size

    2M
    PHP Max Input Vars

    1000
    PHP Display Errors

    No
    PHP Error Log

    error_log
    MySQL

    5.6.35
    MySQL Ext/mysqli

    Yes
    MySQL Table Prefix

    wp_account_04142017_
    MySQL DB Charset

    utf8mb4
    WP

    4.7.4
    WP Multisite

    No
    WP Debug Mode

    No
    WP Site url

    https://domain.tld
    WP WP Home url

    https://domain.tld
    WP Permalinks

    /%postname%/
    WP home path

    /home/account/public_html/
    WP content dir

    /home/account/public_html/wp-content
    WP plugin dir

    /home/account/public_html/wp-content/plugins
    WP content url

    https://domain.tld/wp-content
    WP plugin url

    https://domain.tld/wp-content/plugins
    WP Locale

    en_US
    WP Memory Limit

    40M
    WP Max Upload Size

    2mb
    WP Active plugins

    Adaptive Images for WordPress v.0.6.62 by Nevma
    Limit Login Attempts Reloaded v.2.5.0 by wpchefgadget
    WP-SpamShield v.1.9.9.9.7 by Scott Allen
    WP Super Cache v.1.4.9 by Automattic
    WP MU plugins

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

The topic ‘plugin prevents image from appearing when uploaded by theme’ is closed to new replies.