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?
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/ and then find the same topic again, all the posts and images etc. are there.
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!)
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.
Awesome I will plan on trying it out tomorrow and let you know how it goes. Thanks for the fast response!
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!
No problem, glad I could be of assistance!