I have a very funny problem.
I installed wordpress 3.9.1 on my server, I didn't change any wordpress file. I just unzip files and add to ftp.
when i tried to add some media file wordpress media uploader show to me this error line :
Here is Jpg from error message
http://funnyfennel.net/error.jpg
ERROR : HTTP error.
I think problem may be when you upload an image, there is a chance that your comments will show in the response coming from ajax which causes error to show. I have been through the same problem and find that my comments are showing in the response.when i removed it images are uploading nicely.
If you're still getting the HTTP Error, ask your hosting provider to disable the PHP module imagick- it fixed it for me.
Related
This is not a quick failure, I have spent a totally of 5 completely full days trying to figure this out. Initially I was limited by file size and then file type; in which I removed the Wordpress restrictions and am now "capable" of uploading my 177MB .glb file to Wordpress.
However when doing so, I receive the following error:
retriever.glb
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
I was on the phone with GoDaddy Specialists for 2.5 hours yesterday ensuring that this was not a Server issue or restriction on their side.. they confirmed that it was not. We pretty much ended the conversation that it is something I must figure out with me, myself, and I.
I went ahead and uploaded my .glb to the server through panel, everything worked fine. In fact I have a location for it here: https://www.tattiniboots.com/wp-content/uploads/2020/07/retriever.glb
However, this does not make the file discoverable to the 3D viewer plugins I have installed on the site through the media location.
I truly don't know where to go from here
I changed the name of the file to .png and attempted an upload and received the following error:
Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.
I just tried to update a normal .mov file that is 150MB and received the following error; really making me think this is something to do with file size:
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
Yes, normal images are uploading just fine (2MB-ish)
I just attempted to deactivate all plugins with consideration that maybe "Smush" or another was imposing issues: I then received the issue that the file type is not supported (even with the allow all file types code in my wp-config)
Is this just the case that glb is not allowed at all?
This must be a server thing. probably a run time error
Whoever supported you just doesn't know it. GoGoDaddy. ;)
Nevertheless... you can Use a plugin that's called
media sync. Check it out and best of luck
I want to upload scorm zip file on moodle. The zip file was just only 7MB but when I tried to upload the file. The loading status will reset to 1% after a while. Until it give an error of:
ERROR: Invalid JSON string
But when I checked my php.ini file. All is set higher than the uploaded file size.
Any help will be much appreciated. Thank you.
btw: I'm using IIS, PHP 5, moodle 3.1.5
The most common problem is site errors messing up output of json response. Did you turn off the error message output? In the Administration menu find Debugging section and set error selectbox to NONE. See if problem persists
When I am uploading images in WordPress media. It shows error.
error showing: An error occurred in the upload. Please try again later.
And also any of the images is not showing.
Here I click to attched image to the page but there is no image
Not any of the images are showing here only wp loader is rotating.
This issue comes when I make a second copy of wordpress site on the same server. I have given Site URL and Home URL correctly and also given permission to the all the folder. Yet this issue not resolved. but other wordpress site is working fine on this server.
There are many reasons to do not upload images in your WordPress media library.
That might be the issue of permission of your directory or as you said you have given permission already then you should check you upload path.
There are also some other steps to check and solve your issue.
Please follow this link. It will guide you step by step process and hopefully work for you.
I am currently working on a simple php website
The problem is , the images in my whole web site(happens in all php files) randomly corrupt and show the error
Resource interpreted as Image but transferred with MIME type text/html, however, if I try to refresh the page several times. The image can be loaded again and the error is gone.
I have checked all img path and the image is exist. Also, I checked there is no img src="" in my file. Is it due to server setting? I check .htaccess file and it is blank. How to fix the problem ? Thanks
One possible reason for this could be an intermittent server error, which serves an error page instead of the image resource.
Apache's access.log will tell you which response code the images were sent with (200 means "ok"). error.log will tell you the exact error message if you find an error.
This could also be the intermittent hick-up of a company or ISP proxy server.
I need help in finishing a Wordpress plugin I'm developing. I'm almost finished, but I am experiencing some problems and I can't figure out why I get the errors. I am posting the link to the plugin so you may download and test. I think it's the best way to discover what is wrong
What does it do?
The plugin lets you select a image and stores the image URL in a custom property.
You can then retrieve this custom property in your template design.
When you install it, it will add two custom metaboxes to POST and PAGE edit screen in the backend. Each custom property has a button for selecting image. When you click this button, a UI Dialog box opens and displays files and folders.
Once you have selected an image and saved the POST / PAGE, you can retrieve the custom property and use the image url in your template design.
Installation
Just dowload the plugin from here: http://stiengenterprises.com/download/wp-filebrowser
Unzip and copy the folder to you/plugin dir, then activate the plugin.
Known issues
1) 404 Not found
When clicking the 'Get image url' button, jQuery triggers jQuery("#fileBrowser").dialog() which then loads 'fileBrowser.php'.
At line one, I have the following code:
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');
This is what is causing the 404 Not Found error. This line did not cause any troubles in WP v2.9.1.
2) File upload
I've not been able to use jQuery Form Plugin to uplaod files. I would really like to use this for file Upload. I do not want to use Flash.
I have had a go at it, but no luck :( You can see my Stackoverflow ticket here:
Does anyone have a good example / tutorial on how to use jQuery Form Upload?
I would really really appreciate any help you can give me :)
UPDATE
after testing Todd's suggestion, it works on my local installation of WPMU. But I still receive an error message on my web server:
Warning: require_once(WP_HOME/wp-blog-header.php) [function.require-once]:
failed to open stream: No such file or directory in
/home/mysite/wpmu/wp-content/plugins/wp-filebrowser/fileBrowser.php on line 4
Fatal error: require_once() [function.require]:
Failed opening required 'WP_HOME/wp-blog-header.php'
(include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in
/home/mysite/wpmu/wp-content/plugins/wp-filebrowser/fileBrowser.php on line 4
Line 4 is require_once(WP_HOME.'/wp-blog-header.php');
404 Problem:
You do not have to use the
$_SERVER['DOCUMENT_ROOT']
In the WordPress wp-config.php there are the following constant:
define('WP_HOME','http://example.com');
Use these instead and that should fix your problem.
require_once(WP_HOME.'/wp-blog-header.php');
File Upload
This should get you pointed in the right direction:
http://ppshein.wordpress.com/2009/05/22/upload-files-with-jquery-ajax-and-php/
Thanks to Pavel Velikiy, I have fixed the 404 problem.
See separate thread here.
The solution was to add header('HTTP/1.1 200 OK') just after require_once.
As for upload part, I'll deal with that later :)
PS. I'm answering my own solution so I can mark it as solved.