I have a avatar upload problem. I have made sure allow_url_fopen and allow_url_include are turned on, but i am still getting a failed message.
In my error console in Safari, I get an error 500 from admin-ajax.php after exactly one minute after uploading. Strangely, the headers send back the uploaded file after a few seconds of uploading the file, but it still apparently doesn’t actually upload.
I’m stuck.
In my apache error.log i’m getting:
[Thu Jun 14 10:51:50 2012] [error] [client 46.37.44.131] PHP Warning: getimagesize(http://stmungoswomens.tngdev.co.uk/wp-content/uploads/2012/06/abcdfgergerg1339667448.png): failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.\r\n in C:\\Sites\\rebuildingshatteredlives.org\\htdocs\\wp-content\\plugins\\user-meta12345\\views\\showFile.php on line 22, referer: http://stmungoswomens.tngdev.co.uk/register/
[Thu Jun 14 10:51:50 2012] [error] [client 46.37.44.131] PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\\Sites\\rebuildingshatteredlives.org\\htdocs\\wp-content\\plugins\\user-meta12345\\views\\showFile.php on line 22, referer: http://stmungoswomens.tngdev.co.uk/register/
If I look in my wp-content/uploads/ directory – the uploaded file does actually get placed in there, and uploaded successfully. The headers come back as a success saying the file is uploaded, but my form is getting stuck somewhere.
If I watch the ‘timeline’ tab in Safari/Chrome, the file uploads with Uploader.php in 3 seconds, and then heads onto the next process, admin-ajax.php, which sticks at Pending for 60 seconds, then fails with an error 500.
I don’t get what is happening here. The file uploads successfully with Uploader.php, so what is that admin-ajax.php bit for?
I also have the message: upload Failed. I tried checking disable ajax upload in Fields Editor for avatar field. I also notified my web host who had no trouble uploading a file when he logged into my dev2 site, despite that i get Failed message repeatedly. (means permissions are ok?) Tried 4 diff. formats. jpg, jpeg, png, and gif.
thanks, eve
I think the problem is a PHP version thing. I had no joy with this on my dev server with PHP 5.3.0, however it worked perfectly on my local MAMP with PHP version 5.3.6. If I switch my MAMP back to 5.2.x, the problem can be recreated locally too.
I spoke to my host and they were apprehensive about upgrading the PHP, so for now I have just removed the Avatar upload field from my register process and have included a separate plugin, opening in a popup to upload avatars.
The plugin is User Avatar, it’s a bbPress plugin. It works perfectly.
Hello,
Version 1.1.2rc4 introduce non-ajax file upload beside non-ajax one. If ajax upload is fail in your case, try non-ajax upload. Please note, for using non-ajax upload check “Do not use AJAX submit” with your form in “Forms Editor” and check “Disable “AJAX Upload” in “Fields Editor” for avatar or file upload.
I had the same problem,
the non ajax configuration is working
Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.