Forums

[Plugin: TDO Mini Forms] TDO upload attaching to separate empty post (9 posts)

  1. sglachan
    Member
    Posted 1 year ago #

    WP Version: 2.5.1
    TDO Mini Forms Version: 0.12
    ============================

    I have modified the Default Form to have a title, content and upload.

    When filling out the form:

    * Browse and uploading the file puts the file on the server
    * Preview shows the title and content with the link to the uploaded file correctly
    * [BUT] when I press SEND and submit the post, then go into Admin to moderate/publish the post I find that there are two posts waiting for approval!

    On post has the correct title and contect (text) and the other has no title and has a link to the uploaded file attachement. As far as I understand - this second un-titled post should not appear there at all and it's attachment link should be appearing in the other post.

    Can anyone please help me?

    Note: I have un-checked the option in the Upload Widget titled: "Do not use TDOMF handler for URL of download"

    ALSO:

    The 'Latest Activity' Log after the form submit is as follows:
    ----
    [admin][17-06-08(16:39:07)] Added 640.thumb.20080401-102534-1.jpg as attachment
    [admin][17-06-08(16:39:07)] Attempting to update post with file upload info
    [admin][17-06-08(16:39:08)] post 0 is number 2 submission!
    [admin][17-06-08(16:39:08)] Publishing post 0!
    [admin][17-06-08(16:39:08)] Current ts is 1213684748
    ----

    Is it odd that the post is '0'?

    Hoping you guys have seen this before or understand what I am doing wrong.

    Thanks.

  2. the_dead_one
    Member
    Posted 1 year ago #

    Yes it is unusual. What is your configuration for the Upload Files widget?

    Also, why did you uncheck "Do not use TDOMF handler for URL of download"? This means you *will* use the TDOMF handler for the URL of your post.

    Also, what other plugins are you using?

  3. sglachan
    Member
    Posted 1 year ago #

    Thanks for the reply :)

    I unchecked that box as a last resort as another post advised it - it changed nothing. So I have reverted back to version 11.1 to see if that changed anything and left all settings as default.

    * It uses the "Default Author" generated by TDO
    * "Form 1" has been modified to only have "Text 1", "Content", "Upload Files" widgets (the TDO settings and upload files widget settings are all default).
    * When posting via the TDO form ("Form 1") creates a post with the text title and content (eg. Post #50), a hidden post with the uploaded file name as the title and an empty content (eg. post #51), and another post with empty title and a link to the attached file in the content (eg. post #53) - I only figured out #52 was hidden some how when I hovered over the links in Manage->Posts and realised a Post Number was missing, but could access it via the url manually, if that makes any sense.
    * Moderation does not appear in the TDO Moderation section as no post are listed there after submitting the form - however each post appears under Manage -> Posts as unpublished so i moderate from there to publish them.
    * With every submission it seems that the log (pasted in previous above entry) talks about updating and adding attachment info to "post 0" ... this seems odd, like it's not getting the current post id or something and maybe when it looks for post 0 and can't find it it just adds another post for each action (hence the 3 posts??)

    I think I might try and make another instance of Wordpress 2.5.1 and try again and maybe run it under WP 2.3 also for comparison as it seems everyone else in WP world has it working for them! :-D

  4. sglachan
    Member
    Posted 1 year ago #

    ===================
    Latest Activity Log
    ===================

    [admin][18-06-08(10:46:06)] Added ajax-loader.gif as attachment
    [admin][18-06-08(10:46:06)] Attempting to update post with file upload info
    [admin][18-06-08(10:46:06)] post 0 is number 5 submission!
    [admin][18-06-08(10:46:06)] Publishing post 0!
    [admin][18-06-08(10:46:06)] Current ts is 1213749966

  5. sglachan
    Member
    Posted 1 year ago #

    Very Sorry. :(

    Correction:

    "and another post with empty title and a link to the attached file in the content (eg. post #53) - I only figured out #52 was hidden..."

    ...should be...

    "...and another post with empty title and a link to the attached file in the content (eg. post #52) - I only figured out #51 was hidden..."

  6. the_dead_one
    Member
    Posted 1 year ago #

    I'll try and reproduce it with on my test setup, but it sounds really really strange. Are you using any other plugins? Can you post nand upload normally (i.e. with TDOMF)?

  7. sglachan
    Member
    Posted 1 year ago #

    Update:
    -------
    Moved back to Wordpress 2.3 and TDO seems to be working fine. I'm going to leave it at this as I don't have time to look into it any further.

    Thanks for the help the_dead_one.

  8. sglachan
    Member
    Posted 1 year ago #

    Sorry didn't see your comment above - yeah really odd. No other plugins running and can post normally through Admin as well as with TDO (when the form does not have the upload widget in it.

    sorry I couldn't continue on it and work out what was going on - I just don't have the time :(

    Will end up trying it on a different web server in the future I'd say.

    Cheers.

  9. the_dead_one
    Member
    Posted 1 year ago #

    Hi sglachan,

    Someone else had a similar problem with post id 0 on the support forums and I tracked it down to some weirdness in the DB. Apparently in this case "post_content" in the posts table had no default value (when it should). When TDOMF creates the post, it leaves post_content out because it'll be filled by widgets later. This initial creation fails because SQL complains that post_content needs to be set to something.

Topic Closed

This topic has been closed to new replies.

About this Topic