User Submitted Posts
[resolved] Adding extra images doesnt work (Cant load usp.php ) (8 posts)

  1. richelliot
    Posted 2 years ago #

    When i click the 'add another image' link nothing happens

    I get the following error message in my console:

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.mysite.com/wp-content/plugins/user-submitted-posts/resources/usp.php?ver=20130720

    The weird thing is when I copy and paste the link it cant find into a browser, it works?

    Any ideas on how to fix this?



  2. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    The add another image link is a faux link for jQuery to add another input for images. Its functionality is affected by the settings, most specifically the number of allowed images. Not sure if that helps, but there you go.

  3. whiskerc
    Posted 2 years ago #

    I have the same problem.

    In the settings the minimum number of images allowed is set to 0 and the maximum if 5

    I have also noticed that even if the user selects one photo to upload, it doesn't get uploaded. (I imagine this is a side effect of the missing JS file)

    Here is a link to the page with the user-submitted-posts form in it: http://www.bigfacelittleface.co.uk/send-us-your-photos/


  4. John McManigle
    Posted 2 years ago #

    I was having the same problem, but think I found the solution here.

    In short, you (and ideally Jeff in an upgrade) need to replace line 8 of usp.php (in wp-content/plugins/user-submitted-posts/resources) with:


    It appears that including wp-blog-header.php, since the WordPress 3.0 upgrade (maybe?), results in a 404 even though the content is correct, because it's not returning a WP post.

    That is, even when you're loading it yourself in a browser window, it's still returning 404, it's just returning the script as the "404 page" or whatever you want to call it.

  5. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    Thanks John, that is helpful information that will be applied to next update.

  6. richelliot
    Posted 2 years ago #

    Great stuff. I will try this solution later today and report back.

  7. richelliot
    Posted 2 years ago #

    I just implemented John's fix and I can confirm it worked. Thanks John :)

  8. Jeff Starr
    Plugin Author

    Posted 1 year ago #

    Implemented in v20131107! Thanks again, John :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.