Support » Plugin: User Submitted Posts » [Plugin: User Submitted Posts] Images Don't Display After Uploading

  • Resolved boyce1

    (@boyce1)


    I’ve installed the plugin, created a page with the form and that works fine.

    However, the images upload but I can’t get them to display in the post.

    I’ve read that you need in insert <?php post_attachments(); ?> in “the loop” but I have no idea what that might be.

    I’m using the Weaver II theme and have tried inserting it in page.php but it didn’t work and I really don’t know WHERE it should be placed.

    Any help appreciated!

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

Viewing 15 replies - 1 through 15 (of 33 total)
  • I think a lot of peeps are asking the same question but it looks like this plugin has been abandoned.
    You could try the plugin WP User Frontend. It didn’t work on my theme, possibly due to a plugin clash but it might be worth a go.

    It’s the only other similar plugin I can find that is current.

    studio500,

    I think you’re right about this plugin being abandoned – too bad, it seemed like it had good potential!

    Thanks so much for the tip, I’ll give it a try. Much appreciated!

    Nothing?

    Oh…
    this plugin has been abandoned.
    God

    Plugin Author Jeff Starr

    (@specialk)

    Nope, not abandoned, just been super-busy. User Submitted Posts is now updated with all sorts of new features, improvements, and bug-fixes.

    For images not loading or displaying, there are several things to check:

    • Check the permission settings on the upload folder(s) by ensuring that you can successfully upload image files thru the Media Uploader.
    • Double-check that all the image-upload settings make sense, and that the images being uploaded meet the specified requirements.

    Note: when changing permissions on files and folders, it is important to use the least-restrictive settings possible. If you have to use more permissive settings, it is important to secure the directory against malicious activity. For more information check out http://digwp.com/2012/09/secure-media-uploads/

    Hi Jeff,

    Glad to hear you’re still working on this!

    Just updated to your new version and now when I attempt to use it I get this error:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/whyboys/www/www/w/wp-content/themes/weaver-ii/header.php:14) in /home/whyboys/www/www/w/wp-content/plugins/user-submitted-posts/views/submission-form.php on line 5

    If I submit a post it does show up as pending, however, as before the image is still not attached and again it DOES show up in the post’s gallery but not in the body of the post itself.

    Running WordPress 3.4.2

    Thanks!

    Plugin Author Jeff Starr

    (@specialk)

    Try this:

    Open submission-form.php and locate this code (on line 5):

    session_start();

    Replace that line with this:

    if (!isset($_SESSION)) {
         session_start();
    }

    Let me know how it goes!

    Hi Jeff,

    I gave it a try but I get the same error message. Just the clarify the file I modified was in /plugins/user-submitted-posts/views/submission-form.php

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/whyboys/www/www/w/wp-content/themes/weaver-ii/header.php:14) in /home/whyboys/www/www/w/wp-content/plugins/user-submitted-posts/views/submission-form-classic.php on line 5

    But now the image does not show up in the posts gallery.

    Plugin Author Jeff Starr

    (@specialk)

    Yes that is the correct file.. to investigate further it would help to have a copy of the “/themes/weaver-ii/header.php” file, if you can send it zipped to jeff at perishablepress dot com I’ll be glad to take a look.

    Plugin Author Jeff Starr

    (@specialk)

    Just noticed something.. please try adding the same code:

    if (!isset($_SESSION)) {
         session_start();
    }

    to the file /user-submitted-posts/views/submission-form-classic.php, just as before, replacing session_start(); on line 5.

    There are two possible submission forms, new and classic (or whatever). If you look at the two errors you’ve posted, the first time you were using the new form submission-form.php and the second time you were using the classic form submission-form.php. So now we’re covered either way, hopefully it works.

    Sent file as requested.

    Thanks for your help Jeff.

    Slightly new error.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/whyboys/www/www/w/wp-content/themes/weaver-ii/header.php:14) in /home/whyboys/www/www/w/wp-content/plugins/user-submitted-posts/views/submission-form-classic.php on line 6

    Line 6 reads:

    session_start();

    Plugin Author Jeff Starr

    (@specialk)

    Okay, restore the file to its original state and then try commenting out the session start like so:

    // session_start();

    The only thing that this will affect is the “remembering” of form field values. By default when a visitor submits a post and there is an error, the field values will be restored or remembered after the page reloads. Commenting out the session start will disable that functionality, but also prevent the error and get things working with your theme.

    In the meantime I’ll find a better solution for the next plugin update.

    Sounds like a plan. Thanks again!

    My images upload OK but I still don’t know how to display them. If I need to add code can you please tell me which code & where to add it?

    Cheers

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘[Plugin: User Submitted Posts] Images Don't Display After Uploading’ is closed to new replies.