WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. richelliot
    Member
    Posted 1 year 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?

    Thanks

    http://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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/

    Chris

  4. John McManigle
    Member
    Posted 12 months 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:

    require('../../../../wp-load.php');

    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
    Member
    Plugin Author

    Posted 11 months ago #

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

  6. richelliot
    Member
    Posted 11 months ago #

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

  7. richelliot
    Member
    Posted 11 months ago #

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

  8. Jeff Starr
    Member
    Plugin Author

    Posted 9 months ago #

    Implemented in v20131107! Thanks again, John :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.