Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jdenhaan

    (@jdenhaan)

    Interesting plot twist: everything works fine when I run PHP as mod_php in apache. As soon as I switch back to PHP-FPM, it stops working again.

    This kind of sucks though, as PHP-FPM is the preferred way to do it (faster, more scaleable)

    Edit: I switched themes, but no dice. Gues I’m stuck running mod_php for now.

    • This reply was modified 7 years, 4 months ago by jdenhaan.
    • This reply was modified 7 years, 4 months ago by jdenhaan.
    • This reply was modified 7 years, 4 months ago by jdenhaan.

    I have already found the problem. It’s in dcg-common-core.php in the get_featured_image function. For some reason you’re referencing non-existent image size names here:

    $size = 'DCG_Main_' . $dfcg_options['gallery-width'] . 'x' . $dfcg_options['gallery-height'] . '_' . $dfcg_options['crop'];

    The result of this concatenation is an iamge size that does not exist, as the only image sizes added by DCG are DCG_Main_hc, DCG_Main_br and DCG_Thumb. I replaced the line with this and it now works:

    $size = 'DCG_Main_hc';

    Note that a similar fix is required to make thumbnails work. Replacing:

    $thumb = get_the_post_thumbnail( $id, 'DCG_Thumb_100x75_true', $args );

    with

    $thumb = get_the_post_thumbnail( $id, 'DCG_Thumb', $args );

    in dcg-gallery-core.php will fix them.

    Hi!

    First of all, 4.0 is a big improvement management-wise.

    Unfortunately, there seems to be a bug where the slider refuses to pull in the right image size. It always uses the full-size image, even though thumbnails that match the slider size have clearly been generated (verified via FTP). I’ve tried checking and unchecking ‘hard crop’, but no love.

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