Upload photos crashing 100% of the time
OK I have the latest version of WP for iPhone and it just crashes all the time - really 100% of the time
I can start it up and hit Posts and I can type and select categories
but as soon as I try to upload a photo or video - nada...
photos - looks like it's uploading but as it gets to 100% - BANG - crash every single time
videos i've never managed to upload one yet without a problem
any suggestions - i've given up submitting error reports from within the app
would love to be able to post photos and videos to my site from my phone ala Tumblr which just works beautifully on the iPhone
thanks for any help
Hey Jason, thanks for submitting those crash reports! If you're using the app for a self-hosted installation of WordPress, it could be that there's a problem with the hosting setup you're running.
We're working on improving media uploading and fixing crashes in 2.6.4, hopefully we can fix the bugs you're reporting in this release.
I'm having exactly the same problem with my self-hosted blog. The iPhone client works perfectly, apart from the photo upload which crashes every time. I have the most recent stable versions of both WordPress itself and the iOS client. Any ideas?
it could be that there's a problem with the hosting setup you're running.
So what could the problem be? Where should I start looking? What should I turn off? etc.
I have the latest version and updates of everything... and am not using too many plugins... should i turn them all off and try again?
Any suggestions would be welcome as it's kinda of a deal killer for me to use hte app
I am also having this problem, and I would really like to know if there is anything I can do about it now?
I am thinking that the app does not know where to save the photos and I am looking for somewhere that I can set this up. On my Wordpress dashboard or code it in the files, but I can not find anything.
As I blog almost only photos and would like to to this also "on the go" this is important to me.
Thanks for any help!
Okay, maybe I can shed some light on this. Mind you I don't have an answer for uploading pictures, but I am able to correct the crashing issues.
iPhone 4 latest iOS and latest Wordpress app
Wordpress site hosted on a Debian server running under apache2
I could post new entries just fine, but every time I tried to upload a photo the app would crash.
Then, silly me, I tried to upload using a browser and I kept getting an HTTP error.
To fix that I had to create a wp-content/uploads directory and set the owner to www-data (the owner of the apache2 process). Then I could upload from the browser.
Then I noticed that the max upload size was 2MB. By default the photos on my iPhone tend to be larger than that. I edited the php.ini file and set both the upload and max post size higher (for Wordpress uploads the lower of the two will be the limit)
Now the app no longer crashes, but I can't upload photos.
In the logs I see:
user tarus: authentication failure for "/farm/blog/xmlrpc.php": Password Mismatch
and on the app I get the message:
Upload failed. Please try again.
Since adding a new post via XML-RPC seems to work just fine, my guess is that this is some sort of bug in the uploader, but the app no longer crashes once I fixed the upload directory issue.
Hope this helps, and I hope I'm not hijacking the thread.
ok tried stuff mentioned including turning off all plugins (except akismet and fancybox) and also adding php_value memorylimit text to .htaccess
now deleting wordpress from iphone and will reinstall in one last ditch effort to be able to upload an image
really this is just killing me... most of the time i want to put up images not just some text....
Damn I deleted the app, re-installed, turned iPhone on and off and now I can't even add my self hosted site to the app!! Argh!!
It just sits there and says adding/authenticating but does nothing
We noticed this to when my boyfriend was going to try the app to see if he could make the uploading work. I thought it was something temporary, but obviously not.
Let's hope that new version comes out real soon.....
ok finally managed to add my blog back to the app but still no luck uploading any photos
and that was using the default wordpress theme and no plugins....
I can add text alright so it's just media - which makes it quite useless to me
shame really... guess i'll try when the next version is released....
Okay, just tested this on another Wordpress instance I have running on a different server. This server is running CentOS 5 vs. Debian and the upload portion works fine. Thus there seems to be some strangeness with the iOS app and a default Debian apache2 install.
Just another data point for this issue.
Remember, however, to create your /wp-content/uploads directory and make sure it is writeable by the owner of the httpd process. Otherwise the iOS will crash outright.
...make sure it is writeable by the owner of the httpd process. .
As for someone who is not an expert at this.. How do I do this?
Thank you for sharing your ideas!
What is the O/S of the self-hosted system you are using?
@Tarus - I'm on Red Hat - if you could offer any help I'd be open to try something new :) Thanks
@Tarus - actually I have set my entire uploads directory to 777 via chmod
@taurus - a friend thinks they have Unix... Does it help? Web host is Apache.
@jasonstone - that works, too. But on Red Hat the httpd process is usually owned by the "apache" users, so
chown -R apache [full path]/wp-content/uploads
@smallfeet - well, it really depends on what flavor of Unix. If it is Linux there are two main camps. On Red Hat/CentOS the web server is usually the "httpd" process owned by the "apache" user. On Debian/Ubuntu it's the "apache2" process owned by "www-data". It is important to know which in order to set the permissions correctly.
@taurus - It is Linux they use and Debian.
thanks Tarus, unfortunately I don't think there is anyway I can chown as i don't have shell access as it's a shared hosting
Hmmm I was able to upload via WP web interface but I read somewhere that when a directory is created by the application/php then it owns the directory - so I renamed my uploads directory to something else and tried to upload via web interface again to get it to create the directory again
alas no luck, i get an error
Unable to create directory /home/httpd/vhosts/servername.com/httpdocs/wp-content/uploads/2011/01. Is its parent directory writable by the server?
not sure if this helps me get any closer to the source of the problem
does it flag any issues for anyone???
Ok got php processes running as FTP user - has helped as can now theoretically upload and publish but doesn't appear image is making it to server ok
Off to sleep now so will look more tomorrow
OK it added incorrectly formed html code however it DID work
so it does appear that the biggest issue is the owner of the uploads folder - that was killing it from working
however given that most people can't change the owner of a directory on their shared hosting site this is a show stopper - i asked my support team nicely if they could change it and they set it so all php runs as the FTP user and that seemed to fix it
Think the app needs to be more tolerant or something....
Thanks Tarus for your ideas and help :)
have you all tried the new version, 2.6.4? does it work for you now?
for me? no!
I have the same issue! Last time I was able to upload images from my iPhone was on 9/9/2010.
I just downloaded the latest version of the WordPress app in the hopes that this problem has been fixed, but no luck! :(
If you are running the latest Wordpress app - delete and re-add your blogs. It works fine for me now, but I kept getting auth errors until I deleted my blogs from the app and re-added them.
I have re-added my blog, reinstalled, restarted my iphone, nothing seems to help.
The message i get when i try to add a photo is (although in swedish..?)
"Upload fail - Could not write to file 20110113-092341.jpg (The file is to large. Files has to be less than 0Kb.
I press OK and the app crashes... Every time.
As I have two blogs, I use a network in WP. Could this be the problem?
Thank you so much for the tip! Re-adding the blog to the app did the trick. IT WORKS NOW!
THANK YOU, THANK YOU, THANK YOU!
@smallfeet - that sounds like a php.ini issue. Can you check your limits for upload and post?
Tarus - Thank you! I didn't think that would be the problem as I had no limits for this. But when I did add limits, 10MB, it worked!
Finally I can use my blog the way I want!
"delete and re-add your blogs" worked for me as well. I am finally able to add photos after a looonnnnggg time. Hopefully the guys at Wordpress iOS take note and fix this issue in upcoming versions.
This topic has been closed to new replies.