This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:image_upload_problems:start [2009/09/24 17:50] jonyo added more info |
tutorials:image_upload_problems:start [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Image Upload | + | ====== Image Upload |
The software now has two ways for clients to upload images into your site. What we call the " | The software now has two ways for clients to upload images into your site. What we call the " | ||
Line 11: | Line 11: | ||
LISTING SETUP > FILE UPLOAD & DISPLAY SETTINGS > Photo Directory URL | LISTING SETUP > FILE UPLOAD & DISPLAY SETTINGS > Photo Directory URL | ||
+ | |||
LISTING SETUP > FILE UPLOAD & DISPLAY SETTINGS > Server Path to Root of Photos Directory | LISTING SETUP > FILE UPLOAD & DISPLAY SETTINGS > Server Path to Root of Photos Directory | ||
You can find more about these settings in the above wiki manual links. | You can find more about these settings in the above wiki manual links. | ||
- | Once you have the above settings correct how to determine the image upload problem may depend on the method you have chosen to allow clients to upload images. | + | Once you have the above settings correct how to determine the image upload problem may depend on the method you have chosen to allow clients to upload images. |
===== Standard Uploader Debugging Messages ===== | ===== Standard Uploader Debugging Messages ===== | ||
- | One of the reasons we created this uploader was to head off some of the problems clients were having with the legacy uploader. | + | One of the reasons we created this uploader was to head off some of the problems clients were having with the legacy uploader. |
This uploader replaces those " | This uploader replaces those " | ||
Line 32: | Line 33: | ||
**See [[http:// | **See [[http:// | ||
- | If you do not get an error code, and the error message says there was an error processing the image, this usually means there was a PHP error, in which case you will need to look within the php error_log file for the error. | + | **No "error code"**: |
- | Simply uploading one image at a time cuts down on many errors. | + | If you are getting an error message similar |
+ | Server Error occurred while processing! | ||
+ | |||
+ | This means that the uploader did not get back any meaningful error messages, such as "wrong file type" or an error code as mentioned in the previous section. | ||
+ | |||
+ | * Do you have basic authentication on the directory you are using the software on? If so remove it for a test. The flash uploaded does some behind the scenes communication with the server to hide any errors from direct client view and basic authentication can corrupt that communication. | ||
+ | * If the Legacy Uploader produces a //white screen// or PHP Fatal Error: There was a PHP error such as running over the memory_limit, | ||
+ | * If the Legacy Uploader works but the standard uploader does not: | ||
+ | * The most common culprit is " | ||
+ | SecFilterScanPOST Off</ | ||
+ | * It could be the server " | ||
+ | * If you have added a < | ||
+ | * If you have added a < | ||
+ | |||
+ | If you are still having trouble finding the cause, another thing you can try with the standard uploader is to turn on "debug mode": | ||
+ | |||
+ | In the overall template used for the image upload page, by default this is the "basic page with my account links" template, edit the template and add the following right above the </ | ||
+ | |||
+ | <code html> | ||
+ | <script type=" | ||
+ | Event.observe(window,' | ||
+ | geoUH.debug = true; | ||
+ | }); | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Save the changes, then test uploading the image, and if that was inserted correctly, the error message it gives should have additional " | ||
+ | |||
+ | Simply uploading one image at a time cuts down on many errors. | ||
===== Legacy Uploader Debugging Messages===== | ===== Legacy Uploader Debugging Messages===== | ||
Line 46: | Line 75: | ||
The vast majority of image upload issue fall into the "php memory allowed" | The vast majority of image upload issue fall into the "php memory allowed" | ||
- | [[tutorials/ | + | [[tutorials/ |
===== Timeout ===== | ===== Timeout ===== |