• Just updated to 2.2.4 from 2.2.1 and an error is occurring when trying to save custom posts (for a slideshow) with uploaded images on Localhost.

    The image uploads okay, but when I hit save for the post I get an error.
    “Please enter a valid URL address pointing to the image file.”

    The image path is:
    https://localhost:8888/mydomainname.co.uk/wp-content/uploads/slide-waterdrop.jpg and the image definitely exists at this location.

    Tried another site on my dev machine that was still running 2.2.1 and images uploaded correctly with no error message. When I updated this site to 2.2.4 I got the same error, so this suggests the error is definitely connected to the 2.2.4 update.

    I use Types on over twenty sites, so really hope this can be resolved soon.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mussy

    (@mussy)

    Should point out that I haven’t tested this on a live site, but it’s a new problem on development sites that didn’t occur before the update.

    Thread Starter mussy

    (@mussy)

    Does seem to be the 2.2.4 update.

    in embedded/includes/fields.php

    Commenting out 275-307 in wpcf_add_mandatory_validaton_rules (added in 2.2.4) solves the problem.

    Can you advise when it’ll be possible to use images in localhost development again please?

    Anonymous User 14808221

    (@anonymized-14808221)

    I do not use Localhost:8888 but real URL’s when developing locally, such as mysite.mamp, with that it works perfectly fine.

    But I see that localhost:8888 is making troubles here, just as previously (and still) in URL fields.
    This is because this is not considered a real URL, but of course, it’s unacceptable, as many local development sites will use it.

    Meanwhile, on “real” websites or real URL (locally as well), this will work.
    But I will report this.

    Thank you for the heads up

    Thread Starter mussy

    (@mussy)

    No problem. Did think it would be the format of the dev URL that would be causing the validation error. This is the “out of the box” setup for MAMP though so will affect lots of users. Please advise when a fix is released.

    Anonymous User 14808221

    (@anonymized-14808221)

    We are changing this to also allow localhost:8888.

    It’s a JS validations so it requires some changes, but it has a major Status in our internal process.

    We will release a FIX ASAP, either as patch or erratum or included in the upcoming Update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image file upload on localhost’ is closed to new replies.