WordPress.org

Forums

Photos do not display when posting from Iphone (22 posts)

  1. blw
    Member
    Posted 6 years ago #

    I am using WordPress 2.7.1

    When I upload a post using the WordPress Iphone application (and it seems from Ecto and Iblogger as well), instead of the picture displaying correctly, I just get lines of code like this:

    p>a href=”http://www.wilsons.id.au/wp-content/uploads/2009/02/p-480-319-740de145-9641-4318-af0c-20b0c99d64e1.jpeg”>img src=”http://www.wilsons.id.au/wp-content/uploads/2009/02/p-480-319-740de145-9641-4318-af0c-20b0c99d64e1.jpeg” alt=”" width=”199″ height=”300″ class=”alignnone size-full wp-image-364″ />/a>/p>

    It seems that there is some incompatibility here. Can anyone please help.

    I have reinstalled WordPress already and tried uploading without any plugins but it does not make any difference.

  2. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    I am having the same problem. It looks to me like you're having trouble with the actual HTML getting garbled. I believe that is fixed by using this plugin.

    However, I am having trouble where the image isn't actually transferred correctly. The post itself works correctly (using the above plugin) but the image comes up blank. See this image.

    Any help is greatly appreciated.

  3. jb6262
    Member
    Posted 5 years ago #

    cdevroe --

    Self-hosted or wordpress.com?

    I'm assuming WordPress 2.7.1?

  4. jb6262
    Member
    Posted 5 years ago #

    OK - self hosted... Saw your site.

    I assume this happens every time? No variance?

    What plugins do you have installed?

  5. jb6262
    Member
    Posted 5 years ago #

    CDEVROE --

    Wondering if this might help -

    http://iphone.forums.wordpress.org/topic/photos-not-uploaded?replies=4#post-459

    Similar problem - fixed by making sure the setting for upload path was correct... See here for some more info...

    http://www.bestwpthemez.com/wordpress/how-to-change-file-upload-path-in-wordpress-blog-1185/

    ... Let us know...

    JB

  6. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    JB,

    Thanks for taking a look at my problem. I didn't know you replied since WP.org didn't email me, so sorry for no response.

    I tried the suggested fix by adding upload directory to my wp-config.php file. That still doesn't work.

    :(

  7. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    Note: I've now updated to 2.8 and have tried every single suggested action to solve the issue - but I have yet to figure it out.

    No JPG gets uploaded yet it knows the full URL to the photo and its dimensions.

  8. jb6262
    Member
    Posted 5 years ago #

    Very strange... thanks for trying the upload directory idea.

    Tell me what plugins you're running?

  9. jb6262
    Member
    Posted 5 years ago #

    Also, let's do process of elimination... If you have not had successful posting of pics to a "regular" wordpress.com blog, would you test that for me? Just make yourself a wordpress.com blog, default theme, and post a pic...

    Also, what OS is your self-host?

  10. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    Plugin list: Advertising Manager, Akismet, LibXML2 Fix, Lightbox 2, Twitter for WordPress, Twitter Tools, Viddler WordPress plugin, Widon't, WordPress.com Stats, WP-Footnotes, WP Super Cache

    As far as I know none of these plugins directly effect posting. I do have a WordPress.com account and I will try that and let you know how it goes.

    My host is Dreamhost. I'm not exactly sure what OS version they are using but I'm guessing it is a build of Linux.

    Also of note: This worked great for some time and, one day, just stopped. That is why I was having a LibXML problem.

  11. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    I finally had some time to try it on one of my WordPress.com blogs and it worked just fine. Sigh.

    Any thoughts?

  12. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    I want to give more information. It appears that the file uploads but is incomplete. Notice how this URL does not 404.

    http://cdevroe.com/wp-content/mobile/photos/2009/06/l_640_480_042CE6F1-E09B-4745-97CD-4956523C552E.jpeg

    It is 32 KB (which I think is too small). Downloading the file and opening it in Photoshop gives this error: http://img.skitch.com/20090618-1ux2am9uu8yc7xhy9y71u3nanc.png

    At this point I've dug into the code to the point where I don't know what else to look at. The file is simply being corrupted (or is not being fully uploaded) somehow.

  13. jb6262
    Member
    Posted 5 years ago #

    First thought is that working on WordPress.com strongly suggests the issue is on the host side, not the app...

    Also mentioning that it suddenly stopped working is of interest... any chance you remember the date? It might be interesting to contact Dreamhost and ask if any sort of change was made to their servers in the same timeframe...

    Do they support WordPress out of the box with an account or did you install it yourself?

    I will research a bit and get back with you... If you get a moment, you might check any e-mails from dreamhost for any changes they made...

  14. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    I'm running PHP 5.2.6 and LibXML 2.6.16

  15. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    jb6262: I'm in discussions with Dreamhost support at the moment (via email). I'll let you know what I'm able to figure out there.

    Out of the box Dreamhost support WP fairly well (or at least they always have). They even have one-click installs (which I didn't use) for it.

    If you would like access to my FTP, WP-Admin, or anything else, please let me know and I'd be more than happy to give you access to these things in order to figure this out and potential help others that have or will run into this issue.

  16. Joseph Scott
    Member
    Posted 5 years ago #

    The file that you point to at http://cdevroe.com/wp-content/mobile/photos/2009/06/l_640_480_042CE6F1-E09B-4745-97CD-4956523C552E.jpeg is 53840 bytes and looks to be a corrupt JPEG image.

    If your server is using libXML 2.6.16 I don't think you need to the libxml fix plugin.

    Are you able to upload an image using the media icons from the edit post screen in wp-admin? Do they show up properly, or corrupted like this one?

    Working on the assumption that an uploaded image through wp-admin does work correctly here's the next thing I'd try. Disable all of the plugins and try to upload an image via the iPhone app again. If that works okay they enable each plugin one at time, uploading an image from the iPhone again again after each one. If this is a problem coming for a plugin then this will narrow down which plugin it is.

    I'm having a little tingle in the back of the brain that the hack involved in the libxml fix plugin might be the thing that is corrupting the image upload. I'll try to confirm this suspension.

  17. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    josephscott: I deactivated all of my plugins. Same result.

    To answer your question about whether or not I'm able to upload via the Media area in the WordPress admin, I am. I can upload when writing a post, in bulk, with no problems at all.

    I have another WordPress blog on the same server at http://cdevroe.com/flip/ - It is a completely separate installation with its own set of plugins. I tried uploading there with the same result as my normal blog. I deactivated all plugins there also, and tried that.

    This is definitely server related, it would seem, I just don't know what to tell Dreamhost to update.

  18. jb6262
    Member
    Posted 5 years ago #

    It could even be a combination of the libxml and something Dreamhost changed around the time you began to experience the problem I suppose...

    What was the order of events? Did it work fine without the libxml and then begin to fail - at which point you installed the libxml? Or did you have the libxml installed some time before it stopped working?

    Keep us posted on what they say about changes around the time you began to experience the problem...

  19. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    jb6262: I installed libxml patch plugin because it wasn't working. As hard as I try to think of anything that I may have changed to make it stop working, I can't think of anything.

  20. Colin Devroe (Plain)
    Member
    Posted 5 years ago #

    Fixed. I replaced the xmlrpc.php file with one that I downloaded for WordPress.org and everything seems to be working now. I wish I had kept the old one so that I could have compared the two but on a whim I replaced the file and it worked. (Even after I compared their relative sizes and they were both the same.)

    To give a bit more detail: I always update using the internal core updater. So I wonder if that doesn't replace the file correctly, or at least didn't in this case? I'm afraid I have more questions than answers.

    I'll try to do some digging after my vacation and update this thread accordingly. Thanks to everyone for all their help on this. It has been frustrating but as it is with many things, it was something simple and easily overlooked.

  21. jb6262
    Member
    Posted 5 years ago #

    Thanks cdevroe for posting your solution - perhaps that will help someone else too. Feel free to contact back after your vacation - hope it's a good one!

  22. BHopkins
    Member
    Posted 5 years ago #

    Same problem and same solution. Wasn't showing uploaded pics so i upgraded to 2.8.2 via internal upgrader and it didn't work. Downloaded from WordPress.org and uploaded xmlrpc.php and it works!

Topic Closed

This topic has been closed to new replies.

About this Topic