Title: Warning message when submitting topic
Last modified: September 17, 2016

---

# Warning message when submitting topic

 *  Resolved [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/)
 * (@themichaelglenn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/)
 * Hi, I just downloaded your plugin 30 minutes ago, and am using version 1.1.7,
   with WordPress 4.6.1 and bbPress 2.5.10
 * I’m on a “beta” version of a live site, so the link to my site is only good for
   the next few weeks:
 * [http://rpginsanity.com/beta/forum/members/8083-sending-messages/#post-8129](http://rpginsanity.com/beta/forum/members/8083-sending-messages/#post-8129)
 * (The “beta” part of the URL is temporary.)
 * Anyway, when I upload images into my forum posts, and click the Submit button,
   I get the following Warning message:
 * > Warning: rename(/home/example/public_html/beta/wp-content/uploads/hm_bbpui_temp/
   > 9ccmsoqzozsr3xtuzzoz6kpho7ig0z50.png,/home/example/public_html/beta/wp-content/
   > uploads/hm_bbpui/8129/9ccmsoqzozsr3xtuzzoz6kpho7ig0z50.png): No such file or
   > directory in /home/example/public_html/beta/wp-content/plugins/image-upload-
   > for-bbpress/bbp-image-upload.php on line 214
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/example/public_html/beta/wp-content/plugins/image-upload-for-
   > bbpress/bbp-image-upload.php:214) in /home/example/public_html/beta/wp-includes/
   > pluggable.php on line 1174
 * Is this similar to the test code being in the plugin, as described here? [https://wordpress.org/support/topic/receive-error-after-test-topic-is-uploaded-with-inline-image/](https://wordpress.org/support/topic/receive-error-after-test-topic-is-uploaded-with-inline-image/)
    -  This topic was modified 9 years, 8 months ago by [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Potent Plugins](https://wordpress.org/support/users/hearken/)
 * (@hearken)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8193919)
 * Hi there,
    No, this doesn’t look like an issue caused by test code. It looks 
   like the plugin can’t find the temporary uploaded image file when you submit 
   the post. Is there any chance that the file could have been deleted from the 
   server (beneath your WordPress uploads directory) in between the time you uploaded
   it and you submitted the post? Did the image show up in the post editor initially
   after you uploaded it?
 *  Thread Starter [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/)
 * (@themichaelglenn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8193956)
 * Hi,
 * The image shows up in the post editor, and if I press the “back” button on my
   browser (after submitting the post and seeing the warning message), it takes 
   me back to the editor, with my message still intact – but, the message has also
   been posted to the forum.
 * Also if I navigate back to [http://rpginsanity.com/beta/forums/](http://rpginsanity.com/beta/forums/)
   and then find the same topic again, all the posts and images etc. are there.
    -  This reply was modified 9 years, 8 months ago by [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/).
 *  Thread Starter [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/)
 * (@themichaelglenn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8194014)
 * I found the problem!
 * I’m adding links to my images, in the following manner:
 * After I upload the image, I click on it, and then click on the “Edit” button (
   the one that looks like a pencil), and I set the `Display Settings` to `Link 
   To Image URL`.
 * Then, when I click Submit, the code is stuck trying to sort out the temp directory,
   and the final image directory – and of course, at that point the image (the ‘
   file’ in my warning message) only exists in one directory. So, WordPress can’t
   match up the link with the image.
 * If I submit the post _without _linking to the URL, everything works fine, and
   I get no warning messages. From there, I can edit the post, and add a link, and
   it saves the post and the link works.
 * I really want to be able to link to the image URL, but I can’t see having to 
   tell my users to save the post first, then go back and add a link. Of course 
   the sensible approach is to just not link the images, and go with a lightbox 
   effect instead, so I may end up going that route.
 * (I’m glad I was able to poke around a bit, and figure out what was causing this!)
 *  [Potent Plugins](https://wordpress.org/support/users/hearken/)
 * (@hearken)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8194198)
 * Hi Michael,
    That makes sense… if the URL of the temporary image file exists 
   twice in the post, the plugin will try to move the image file twice. I’ve just
   released version 1.1.8 of the plugin, which suppresses the warning if moving 
   the image file fails. That way you should still be able to add image links without
   the warning being generated.
 *  Thread Starter [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/)
 * (@themichaelglenn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8194578)
 * Awesome I will plan on trying it out tomorrow and let you know how it goes. Thanks
   for the fast response!
 *  Thread Starter [themichaelglenn](https://wordpress.org/support/users/themichaelglenn/)
 * (@themichaelglenn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8195821)
 * The update works perfectly! I can now upload an image, click on the image and
   select “Edit,” and set the Align, Link To – AND – write a caption, all **before**
   Submitting the post.
 * I’m amazed at your quick response time, and will definitely be taking a look 
   at your pro version when it comes time for me to take this site live (well, the
   WordPress version of the site, that is…)
 * Thank you so much!
 *  [Potent Plugins](https://wordpress.org/support/users/hearken/)
 * (@hearken)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8199062)
 * No problem, glad I could be of assistance!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Warning message when submitting topic’ is closed to new replies.

 * ![](https://ps.w.org/image-upload-for-bbpress/assets/icon-256x256.png?rev=2488183)
 * [Inline Image Upload for BBPress](https://wordpress.org/plugins/image-upload-for-bbpress/)
 * [Support Threads](https://wordpress.org/support/plugin/image-upload-for-bbpress/)
 * [Active Topics](https://wordpress.org/support/plugin/image-upload-for-bbpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-upload-for-bbpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-upload-for-bbpress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Potent Plugins](https://wordpress.org/support/users/hearken/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/warning-message-when-submitting-topic/#post-8199062)
 * Status: resolved