WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] Images sporadically not being set as Featured Image (14 posts)

  1. Matija Erceg
    Member
    Posted 8 months ago #

    When someone uploads an image, it only attaches itself as the Featured Image about one every few times. The other times, no featured image is set, but the file does appear in Media.

    Here are screenshots of my settings:
    http://i.imgur.com/vyn3aTV.png
    http://i.imgur.com/TZN2Hws.png

    I am using Version 20131107 of the plugin. Why would this happen sporadically? I am guessing it's a bug if it's inconsistent. Any help would be appreciated!

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

  2. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    Haven't heard of this before, but if you get any specific info or errors, I will be glad to investigate and make any needed changes for a next version of the plugin. Thanks!

  3. Matija Erceg
    Member
    Posted 8 months ago #

    The only way I'm able to reproduce this error is to submit 2 posts in close succession (but I'm not sure if that's going to reproduce it for you).

    Submission 1: Image is attached to post (when viewed under Media), but NOT set as featured image

    Submission 2: Works perfectly (Image is attached to post and set as featured image)

    Re-submit Submission 1: Works Perfectly

    So, I know it's not related to the JPGs themselves. Do you think there might be an issue with the shared hosting I'm on (bluehost)?

  4. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    It could be hosting, plugins, the theme, or any other number of things involved.. it's usually easier to begin with disabling plugins, using the default theme, and then work your way to testing the host..

  5. jacksaunsea
    Member
    Posted 8 months ago #

    I am having this same issue.

  6. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    Any error messages or anything? It's difficult to just guess at it..

  7. jacksaunsea
    Member
    Posted 8 months ago #

    I understand. I actually just figured out the issue and it seems to be working perfectly now. I believe a function I was using to hide the form from logged out users was interfering with attaching the image to posts (although as Matija Erceg said, it would attach the image sometimes but not others, which is a bit odd).

    The function I was using created a shortcode that I placed around the (ex. [members][user-submitted-posts][/member]) shortcode to hide from logged out users.

    I have simply deleted that function from my functions.php file and now simply use <?php if (is_user_logged_in() ) { //only logged in user can see this ?> <?php } ?> to hide from logged out visitors and it seems to be attaching image as featured every time now.

    This is such a wonderful plugin and the easiest one I have found for my purposes on my website. Thank you!

    Perhaps this information will help others experiencing this issue.

  8. Matija Erceg
    Member
    Posted 8 months ago #

    I was not hiding the form or wrapping it in any additional shortcodes.
    If there was an error message, I would definitely post it.
    Jack, if you find that the issue persists, please post back, as I still have no leads on the cause..

  9. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks Jack, glad you got it sorted.

  10. jacksaunsea
    Member
    Posted 8 months ago #

    It would appear that I declared victory over this issue prematurely.

    It's rather odd. It seems as though it is saving the posted content as some sort of cacge. A user can publish their post, which hasn't attached the image as featured as the plugin is set to do, and there is no success message, although the text of the post has been published. Then, if they navigate to other pages and return to the page where I have the publishing form, their published content is till in the form. If I delete the cache in my browser, it then functions perfectly with the featured image being attached as it should.

    Deleted plugins, done what I can, now I'm a bit stuck. I'll keep at it and let you all know if I find a solution :)

    - Jack

  11. jacksaunsea
    Member
    Posted 8 months ago #

    Alright, I finally figured out that it was a conflict with the Jetpack plugin that was causing the sporadic issue. Do you have Jetpack installed, Matija?

  12. Matija Erceg
    Member
    Posted 8 months ago #

    It was not activated (but it was installed) - so I don't know how it could have interfered..

  13. jacksaunsea
    Member
    Posted 8 months ago #

    @Matija, Ah, well you may try deleting it from WordPress (as that erases saved data as well that deleting from ftp does not) and see if that corrects the problem.

  14. jacksaunsea
    Member
    Posted 8 months ago #

    FYI I believe there is a conflict with images uploading as featured with the WP to Twitter plugin as well.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.