WordPress.org

Ready to get started?Download WordPress

Forums

"error_loading_image" in "image_resize" function (3 posts)

  1. pille72
    Member
    Posted 1 year ago #

    Hello
    i'm trying to build an plugin which selects the first image within a post, and resize it to my wanted width/height.

    After i've implemented the function image_resize with my filepath i get the following error:

    error_loading_image -> File ..... exists?

    after a google marathon i haven't found any solution.
    i found that the error message comes from the function "file_exists"...my file exists and there are 777 permissions on uploads/ folder...

    what can i do ? are my images blocked by safe_mods or something else?

    thanks for help

  2. Joke Brandhorst-Portegies
    Member
    Posted 1 year ago #

    I have the same problem. My file exists (I have retrieved the dimensions of the image) but the image_resize-function suggests that the file doesn't exist. Does anybody have an idea?

  3. Joke Brandhorst-Portegies
    Member
    Posted 1 year ago #

    I've found it: the imagename had a "http://"-string in it and the file_exists-function that is called from image_resize can't handle http-protocol. After translating this to a relative pathname everything works fine.

Topic Closed

This topic has been closed to new replies.

About this Topic