• Resolved braehler

    (@braehler)


    Hey there the problem came up twice during the last week:
    for some reason, on some of our customers listings, there is a strange issue with the uploaded pictures. The pictures were shown twice or three times on the front end, but when I had a look into the backend I was just able to see the “original number” of uploaded pictures. When I delete them, and reload them up again via the backend everything is fine.
    Any thoughts on that?
    Cheers

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    I’ve never seen this before or heard of a similar issue before, so I don’t know what to say. I guess the first step would be to take a look at your plugins and see if any of them might be interfering with the display of images somehow. Or, what if you try switching theme and reloading one of these listings, before you delete the image and reupload it. Do the multiple images still appear even with a default WordPress theme?

    Thread Starter braehler

    (@braehler)

    @richardmtl
    Sorry for the alte reply, but I had to waint until a new customer came up with this effect/ issue.
    Whtat we were able to find out is, that there seems to be a problem with images htat are like this fomrat IMG_35971-5.jpg.
    For some kind of reason, the images are either not displayed allthough they were uploaded and you can see them i the backend. Or, after each new try and hitting the safe button they are shown twice or moore

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hmm, that’s odd. Does this happen with a default theme too?

    Thread Starter braehler

    (@braehler)

    Yep, tried it with the default twenty nineteen. Same result. 7 images in the admin area, but only 5 shown

    Thread Starter braehler

    (@braehler)

    @richardmtl
    I don′t know if this is going to have an effect on this, but maybe it′s because of the not installed module “imagick” of php on our server?

    I need to try this out on a testing site

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hmm, I really don’t know. I can’t think of a reason why that would cause MORE images to appear. If you could reproduce it on a testing site (on a different server), or even better, NOT reproduce it, that might give us some clues. In other words, if you can’t reproduce it on a testing copy of the site on a different server, then you’ll know that there’s something odd in that server’s config.

    Keep me posted!

    Thread Starter braehler

    (@braehler)

    Hey @richardmtl

    so I was in contact with someoone and we were able to figure out the following:
    the issue may be related to the issue of trying to convert the file URL into an “attachment ID” which is what is required by the core WordPress gallery shortcode to output the gallery.
    When I look through the Media Gallery area for the specific file that was uploaded (by the filename), I do not see it showing in the Media gallery area for some reason. This tells me that something is happening in WordPress when WP Job Manager is inserting the image as an attachment to the listing (maybe it’s detecting the filename exists and there is a duplicate image)?
    This might come from a filter “job_manager_attach_uploaded_files”, but we are not using this one.
    Any thoughts?

    Thread Starter braehler

    (@braehler)

    @richardmtl
    one more thing I was able to figure out:
    in the meantime I had another customer with this issue and I was able to figure out the following. Again the images were in the IMG_35971-5.jpg format. But when I took a look at the media upload galery I found out that the url of the uploaded image was this
    wp-content/uploads/job-manager-uploads/job_galery/IMG_9805.jpg
    but with a closer look I found the same images in a scaled and rotated format
    like
    wp-content/uploads/job-manager-uploads/job_galery/IMG_9805-scaled.jpg
    When I change the directory of the file to the scaled one, its shown

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    Have a look at this:

    https://github.com/Automattic/WP-Job-Manager/issues/1973

    It sounds to me like your problem is related to that. What do you think?

    Thread Starter braehler

    (@braehler)

    Hi,
    yes this is exactly what I was discussing with trplex. He was able to figure out thats the issue comes from the scaling of the new core in wordpress

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Great, thanks for confirming. I’ll mark this thread as Resolved, then, since we now have that Github issue. Thanks again!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Gallery Problem’ is closed to new replies.