• Good day.

    I’ve downloaded the plugin about 3 weeks ago and have been going back and forth to figure out what the problem might be. I am not a website developer and have minimal experience with websites. But, still I took it upon myself to do my own company website.

    At first the cache folder wasn’t created so I did it manually. But, the images aren’t created in the cache folder. I’ve visited the site from various mobile devices and smaller screen laptops – all displayed the images incorrectly.

    Calculate cache size
    Total files in the adaptive images cache: 0
    Total directories in the adaptive images cache: 0
    Total size of the adaptive images cache: 0

    I recently spoke to my hosting company and according to them they started using the NGINX caching server.
    Should this be the issue could you please assist me on how to change settings and where to add text as described.

    Please have a look at my website: https://bushward.co.za/bushward-safaris/

    Appreciate your time and advice.

    Debug info
    ? PHP GD library is installed.
    ? Image cache directory has been created.
    /home/bushwptf/public_html/wp/wp-content/cache/adaptive-images => drwxr-xr-x
    ? Installation .htaccess file is setup OK.
    /home/bushwptf/public_html/.htaccess => -rw-r–r–
    ? Adaptive images settings dump:
    array(12) {
    [“resolutions”]=>
    array(7) {
    [0]=>
    int(1980)
    [1]=>
    int(1024)
    [2]=>
    int(800)
    [3]=>
    int(720)
    [4]=>
    int(640)
    [5]=>
    int(480)
    [6]=>
    int(300)
    }
    [“landscape”]=>
    bool(true)
    [“hidpi”]=>
    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(730)
    [“cdn-support”]=>
    bool(false)
    [“version”]=>
    string(6) “0.6.61”
    [“sanitized”]=>
    bool(true)
    }

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

    (@nevma)

    Hello, my friend,

    This is going to be a long answer, so stay tight!

    First of all, thank you for sharing your website url with us.

    I see that your images are in the form of https://bushward.co.za/wp/wp-content/uploads/Bushward-Aerial-30.jpg, so you have probably set your WordPress installation in a subdirectory named /wp, as described in https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory.

    Can you confirm if this is true?

    If so, then unfortunately, this is a case that our plugin did not take into account up to its current version. It has been thoroughly discussed here https://www.ads-software.com/support/topic/htaccess-path-to-adaptive-images-script-php-is-always-wrong/ and a workaround has been found by @milenoi2016. This workaround is also mentioned in https://www.ads-software.com/support/topic/not-creating-cache-folder/#post-8518649.

    What you need to do is go to the plugin folder and:

    
    // In adaptive-images-actions.php file
    
    // Remove the $request_uri_base here: 
    $adaptive_images_php_script = $request_uri_base. '/' . $adaptive_images_dir_path_relative . '/adaptive-images-script.php';
    
    // So it becomes: 
    $adaptive_images_php_script = '/' . $adaptive_images_dir_path_relative . '/adaptive-images-script.php';
    
    // Actually simply remove the $request_uri_base.
    

    I know this is a dirty and temporary way to fix the problem, but it will be included in the next versions of the plugin.

    Let me know if this works for you.

    One last question: are you using NginX as your main server, instead of Apache? Or are you using it as a caching server, in front of Apache? This little question can make all the difference in the world, because NginX is a different kettle of fish, but let’s take it one step at a time.

    Cheers,
    Takis

    Thread Starter bushward

    (@bushward)

    Takis,

    Thank you for your response and information. Looks like I installed wordpress in a subdirectory. So, I’ve changed the adaptive-images-actions.php file and removed the $request_uri_base. part.

    Refreshed everything but no changes visible when going to the website from mobile or smaller screen devices.

    According to my hosting company they are using Nginx only as a caching server. Apache is still the main server.

    Riaan

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Riaan,

    If they are using NginX as a caching server then you could try to enable the CDN support option in the plugin settings page. However, our support for CDNs is still experimental, due to the inherent way that these systems work and bypass your website in order to protect them from high traffic. So, maybe you can check it out and let me know how it goes.

    Cheers,
    Takis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin not working – possibly Nginx’ is closed to new replies.