• Resolved mechanicman

    (@mechanicman)


    I have USP running on my website: https://www.mechanic-man.com
    Specifically on this page: https://www.mechanic-man.com/index.php/user-submitted-projects/

    I’ve had it setup to allow three picture uploads and it worked fine for quite some time. It’s a fairly new website and I’m not getting much traffic yet but last night I decided to try a post just to validate USP was still working. It will only allow one image to be uploaded. Clicking on “add another image” just scrolls the page to the top and will not load another “choose file” button.

    I have the Include JavaScript box checked, I have the correct URL in the targeted loading box. I have the image settings at a minimum of 1 and a max of 3.

    It does work with a single image including recaptcha, email notification, page redirect and success message. Any ideas what I need to do or look for?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    The USP JavaScript is required for the multiple-image feature to work properly. And it looks like the USP JavaScript is not included in the source code for that page. It could be that the URL is incorrect in the plugin settings. A simple test would be to leave the “Targeted Loading” setting blank, and then clear your browser cache (and any cache plugins), and then try again.

    I’m also seeing a lot of JavaScript errors on the page, so that is something that may be interfering, especially if other plugins are involved. I recommend troubleshooting your plugins see if there are any conflicts.

    It also looks like you are running some sort of cache plugin and/or maybe a performance plugin. I would begin troubleshooting with those, and then proceed from there.

    Let me know if there are any further infos I can provide, glad to help.

    • This reply was modified 7 years, 6 months ago by Jeff Starr. Reason: clarity
    Thread Starter mechanicman

    (@mechanicman)

    Jeff, Thank you for your reply. I’d like to respond to several of your points. I did as you suggested and removed the link from the targeted loading box, cleared the cache and it still did not work. The link that was in the targeted load box was copied and pasted from the working page so it was not an error in the link and I tried this several times.

    As far as “a lot of Java errors” I’d like to know what you scanned with so I could try. Every test I know to use comes back with around 5-8 JS errors and they all have to do with either my theme, Jetpack or Google. Not too much I can do with any of them. At least with my limited ability. LOL As of right now, I have a GTMetrix score of 94, A Google PageSpeed score of 92 on mobile and 94 on desktop.

    The plugin did work at one time for multiple images so I know it’s something at my end but I’m really at my wits end trying to find it!

    The cache plugin I use is WP Supercache and the performance plugin you mentioned is Above the Fold Optimization. Are there any known conflicts between those and USP?

    Also, is it possible for you to post or email me the script and I will manually add it myself?

    Thanks for your time and help,
    Paul

    Plugin Author Jeff Starr

    (@specialk)

    Glad to help:

    1) “I did as you suggested and removed the link from the targeted loading box, cleared the cache and it still did not work.”

    The only reason the JavaScript would not be loading is because of some other plugin (or maybe the theme, but not likely) is interfering. In order to resolve the issue, you will need to do some basic troubleshooting. While testing plugins, make sure to leave the “Targeted Loading” setting blank, as it helps to eliminate confounding variables.

    2) “As far as “a lot of Java errors” I’d like to know what you scanned with so I could try.”

    “Java” is something entirely different than “JavaScript”, but I know understand what you are saying. To find JavaScript errors on any web page that I visit, I use a browser extension called “javascript-errors-notifier”, available on GitHub.

    3) “The plugin did work at one time for multiple images so I know it’s something at my end but I’m really at my wits end trying to find it!”

    Yep, the plugin still works great, but something (like a plugin or setting) changed on the site, and now there is a conflict. As per #1 above, you will need to do some troubleshooting to determine the cause of the issue.

    4) “The cache plugin I use is WP Supercache and the performance plugin you mentioned is Above the Fold Optimization. Are there any known conflicts between those and USP?”

    No there are no known conflicts with any plugin that is written according to the WP API. One of the reasons, however, that I mentioned/emphasized “cache plugins” in my previous reply is that they are known to cause all sorts of issues with “live” page elements, like stat counters, social media stuff, contact forms, and etc.

    5) “Also, is it possible for you to post or email me the script and I will manually add it myself?”

    Yes, you can manually add the USP scripts, they are located at:

    /resources/jquery.usp.core.js
    /resources/jquery.usp.files.js

    Also I should mention that, if you are unable to troubleshoot other plugins on a “live” production site, another great approach is to set up a quick 5-minute WordPress, leave everything at the default settings/plugins/theme, and then install and test USP fresh. Then after verifying proper functionality, you can begin adding your other plugins, one at a time, testing after each, to determine which one is breaking things.

    I hope this helps, let me know if I can provide any further infos.

    • This reply was modified 7 years, 6 months ago by Jeff Starr. Reason: missing word
    Thread Starter mechanicman

    (@mechanicman)

    Jeff,

    I fixed it. I had a setting in another plugin that I believe was conflicting with WP Super Cache (trying to perform the same task). Thanks again for your help and the heads up on “javascript-errors-notifier”. I will be trying that. I’m very new to this it’s my first site but I’m getting kind of obsessed with making it work well.

    Plugin Author Jeff Starr

    (@specialk)

    Awesome, glad you got it sorted. Thanks for the follow-up message.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only single image upload allowed!’ is closed to new replies.