coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: sillyonline on March 01, 2006, 06:05:09 PM

Title: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: sillyonline on March 01, 2006, 06:05:09 PM
When I try to batch add files I get the following error: "Unable to create thumbnail or reduced size image."

When I set the Method for resizing images to GD Version 1.x then it works, but the thumbs resolution is then not
correct.

Can someone tell me what to do to fix this?

Regards,

Silly

example: http://www.sillyonline.nl/gallery/index.php

USER:
------------------
Array
(
    [ID] => f5c5bc96a884c7f234a59378d19ff981
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => sillyonline
    [groups] => Array
        (
           
Title: Re: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: Joachim Müller on March 01, 2006, 08:34:43 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: erroneus on March 02, 2006, 05:59:17 AM
I'm getting the same error msg. I applied the "replace code" to

imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);

(this came out twice in picmgmt.inc.php and I replaced both instances)

I still am getting the same error msg after attempting to batch upload pictures. The upload troubleshooting link you posted doesn't help, and I can upload pictures individually (clicking on Upload file) with no problems.
Title: Re: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: Joachim Müller on March 02, 2006, 07:03:14 AM
Quote4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Title: Re: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: Joachim Müller on March 02, 2006, 07:06:01 AM
The upload troubleshooting doesn't help because you haven't read it thoroughly enough, although the important bit is even written in red letters. I'll quote it to you once more, highlighting the important bit:
Quote4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
::)
Title: Re: "Unable to create thumbnail or reduced size image." CPG 1.4.4
Post by: erroneus on March 02, 2006, 10:53:32 AM
my problem was that I didnt chmod my folders. haha. When my folders arent chmod'ed and I try batch uploading I get the infamous "unable to create thumbnail" error. I bet half the people getting that didnt chmod to 777. My folders were chmod'ed to 755 by default and nothing worked til I chmod'ed to 777.