• Resolved donnahaynes

    (@donnahaynes)


    Hi there,

    I’m running Soliloquy Lite 2.4.0.2. If I have WP_DEBUG turned on, I see error messages for each image in my two Soliloquy sliders. For each image, the message is like this:

    Soliloquy: Error occured resizing image (these messages are only displayed to logged in WordPress users):
    Error: The dimensions of the original image could not be retrieved for cropping.
    Image: https://ypc.dev/wp/../shared/content/uploads/banner-farm1.jpg
    Args: array (
      'position' => 'c',
      'width' => 1920,
      'height' => 400,
      'quality' => 100,
      'retina' => false,
    )

    The site I am seeing the messages on is on my local machine, so you won’t be able to see these messages on the site yourself.

    Without being able to see the site, can you provide any assistance?

    If I hadn’t turned on WP_DEBUG, I wouldn’t have noticed these errors. I’m debugging as the site is running slowly, so trying to figure out what’s causing it.

    Let me know if there is any further information I can provide…

    Thanks in advance,
    Donna

    https://www.ads-software.com/plugins/soliloquy-lite/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Donna,

    Please ensure the image exists at https://ypc.dev/wp/../shared/content/uploads/banner-farm1.jpg

    If it doesn’t, you’ll need to ensure your WordPress configuration is correct. Specifically, WordPress Admin > Settings > General > WordPress Address + Site Address need to match the site URL.

    Once the issue is resolved, Soliloquy can find the image and resize it.

    Thanks,

    Tim.

    Thread Starter donnahaynes

    (@donnahaynes)

    Hi there,
    Thanks for the reply – sorry I only just noticed it.
    I have WordPress set up in a sub-directory, so my WordPress Address and Site Address are different:
    WordPress Address (URL): https://ypc.dev/wp
    Site Address (URL): https://ypc.dev
    The slider does actually display the images. Yes the images exist at the locations. Using the Debug plugin, I get this error on the page with the slider:

    WARNING: C:\xampp\htdocs\YorkePeninsulaCouncil\content\plugins\soliloquy-lite\includes\global\common.php:358 - getimagesize(C:\xampp\htdocs\YorkePeninsulaCouncil\wp/) [function.getimagesize]: failed to open stream: No such file or directory
    require('C:\xampp\htdocs\YorkePeninsulaCouncil\wp\wp-blog-header.php'), require_once('C:\xampp\htdocs\YorkePeninsulaCouncil\wp\wp-includes\template-loader.php'), include('C:\xampp\htdocs\YorkePeninsulaCouncil\content\themes\outreach-pro\front-page.php'), genesis, get_footer, locate_template, load_template, require_once('C:\xampp\htdocs\YorkePeninsulaCouncil\content\themes\genesis\footer.php'), do_action('genesis_before_footer'), call_user_func_array, outreach_home_add_discover_slider, soliloquy, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Soliloquy_Shortcode_Lite->shortcode, Soliloquy_Shortcode_Lite->get_slide, Soliloquy_Shortcode_Lite->get_image_slide, Soliloquy_Shortcode_Lite->get_image_src, Soliloquy_Common_Lite->resize_image, Soliloquy_Common_Lite->get_image_info, getimagesize

    Will my sub-directory set up be a problem with Soliloquy?
    Thanks,
    Donna

    Hi,

    Fault is listed in that error – specifically, no image is being presented to Soliloquy for resizing:
    getimagesize(C:\xampp\htdocs\YorkePeninsulaCouncil\wp/)

    The above points to a folder, not an image.

    Thanks,

    Tim.

    Thread Starter donnahaynes

    (@donnahaynes)

    Hi Tim,
    Thanks again for your reply, but I’m confused. Are you saying I need to step through the Soliloquy Lite plugin code to find out why it is being passed that file path rather than an image? I haven’t made any code changes to the plugin, and I’ve added the images to the slider in the normal way (I assume!), and without debugging switched on it appears that the slider is not having any trouble – i.e. the slider displays as I would expect it to.
    To make sure this wasn’t a issue with my local (Windows) environment, I now have a copy of the website experiencing this error on a proper Linux web server, and it’s displaying a slightly different error:
    NOTICE: /home/adroitcr/public_html/YorkePeninsulaCouncil/content/plugins/soliloquy-lite/includes/global/common.php:358 - getimagesize(): Read error!
    If I upgrade to the Pro licence, would you be able to assist me with this error? My website requires a login to access, so I could provide you with that. I am more than happy to upgrade, it’s a great plugin, but if I upgrade and it turns out that my WordPress sub-directory set up is not compatible with the plugin would I be able to get a refund?
    Thanks again, and sorry for being annoying :/
    Donna

    Thread Starter donnahaynes

    (@donnahaynes)

    I just re-read my post and realized I sound terrible! Basically asking you to support me then saying I’ll ask for a refund if it doesn’t work out! Please ignore the last part of my post above. What I mean is, can I upgrade to pro and will you please assist me with this error ?? I won’t ask for a refund even if it doesn’t work out. I’m happy to pay for pro anyway.

    I am getting the same error on Pro version, one error for each image. WP_DEBUG is set to false. The slider displays directly below the error messages, so the images are actually there and appear to have been resized correctly.

    Actually WP_DEBUG was set to true, but WP_DEBUG_DISPLAY was set to false. Errors were being saved to the log.

    Both,

    The errors you’re setting with WP_DEBUG enabled is deliberate and by design, as it tells us clearly that WordPress’ configuration, or a super-specific edge case, prevents Soliloquy from resizing images.

    This answers the common question we receive of why Soliloquy doesn’t resize XYZ image etc.

    If you are Pro customers, feel free to open a support request via https://soliloquywp.com.

    If you are Free customers, feel free to follow https://www.ads-software.com/support/topic/read-this-before-you-post-11?replies=1. If you’re willing to share credentials, please don’t do that here – drop us an email via the web site.

    Thanks,

    Tim.

    Same error here. Everything is correct, this error always appears in dynamic sliders.
    The files were uploaded via Media Uploader, are in the WP directory, etc.

    I’m using Canvas from WooThemes.
    Soliloquy paid version.

    Error: The dimensions of the original image could not be retrieved for cropping.
    Image: https://www.XX.com.br/core/wp-content/uploads/2015/12/dsc01645.jpg
    Args: array (
    'position' => 'c',
    'width' => false,
    'height' => false,
    'quality' => 100,
    'retina' => false,
    )

    Any ideas?

    Hi John,

    As Tim indicated, if you are Pro customer please open a support request via https://soliloquywp.com.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Soliloquy: Error occured resizing image’ is closed to new replies.