Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Re: 1.4.3 Upload problems  (Read 7103 times)

0 Members and 1 Guest are viewing this topic.

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« on: January 27, 2006, 11:13:24 pm »

Ok, I'm having some problems and I asked the questions in an unrelated topic I started on another board. I was asked to ressurect an old thread and post my questions here, so that's what I'm doing. I'll try to bring you up to speed with what I've done so far....

I am having a problem with my new fresh 1.4 installation (not an upgrade)......

I am getting the common error of "Unable to create thumbnail or reduced size image". I have searched the boards and found that is a common problem. I found this thread...  http://forum.coppermine-gallery.net/index.php?topic=23342.0  and followed the instructions to add in picmgmt.inc.php

Code: [Select]
       
$fh=fopen($dest_file,'w');
fclose($fh);

above the line

Code: [Select]
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
I found that line twice around ine 245 and 273. I changed both and the new code looks like this.....

Code: [Select]
          if (!$src_img) {
                $ERROR = $lang_errors['invalid_image'];
                return false;
            }
            $dst_img = imagecreate($destWidth, $destHeight);
            imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $destWidth, (int)$destHeight, $srcWidth, $srcHeight);
            $fh=fopen($dest_file,'w');
fclose($fh);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
            imagedestroy($src_img);
            imagedestroy($dst_img);
            break;

        case "gd2" :
            if (!function_exists('imagecreatefromjpeg')) {
                cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed', __FILE__, __LINE__);
            }
            if (!function_exists('imagecreatetruecolor')) {
                cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support GD version 2.x, please switch to GD version 1.x on the admin page', __FILE__, __LINE__);
            }
            if ($imginfo[2] == GIS_GIF && $CONFIG['GIF_support'] == 1)
                $src_img = imagecreatefromgif($src_file);
            elseif ($imginfo[2] == GIS_JPG)
                $src_img = imagecreatefromjpeg($src_file);
            else
                $src_img = imagecreatefrompng($src_file);
            if (!$src_img) {
                $ERROR = $lang_errors['invalid_image'];
                return false;
            }
            if ($imginfo[2] == GIS_GIF)
              $dst_img = imagecreate($destWidth, $destHeight);
            else
              $dst_img = imagecreatetruecolor($destWidth, $destHeight);
            imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $destWidth, (int)$destHeight, $srcWidth, $srcHeight);
            $fh=fopen($dest_file,'w');
fclose($fh);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
            imagedestroy($src_img);
            imagedestroy($dst_img);
            break;
    }

I uploaded this new edited file to the server and I got the exact same result; a broken link icon and when clicking on it, I get the same error of "unable to create thumbnail...."  Is there anything thing else I can do to try and fix this problem? Thanks for the help.

http://www.applebytexas.com/coppermine/

temp user
username: test
password: test
« Last Edit: February 09, 2006, 08:56:40 pm by Nibbler »
Logged

Nibbler

  • Guest
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #2 on: January 28, 2006, 12:46:43 am »

Thank you. I followed the instructions for changing to the debug setting. The saw the debug info after trying to uploade a pic but I didn't see any error messages but then again I don't know what it all means. Should I post the debug info here?
Logged

Nibbler

  • Guest
Re: Re: 1.4.3 Upload problems
« Reply #3 on: January 28, 2006, 12:49:14 am »

I was able to upload a picture just fine.
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #4 on: January 28, 2006, 01:13:14 am »

Ok, I just tried logging in and uploading a single file thru the "Upload File" button in the main menu, which I had no idea existed. It worked fine and the photo uploaded. I have been previously using the "Batch Add Files" option, which I thought was the only way to upload files. I am sorry, that is probably my fault for not stating that I was using the "Batch Add Files" option but I thought it was the only way. It is logically the best way to upload large quantities of files, which I'll be doing. It is what I did in the past with 1.3 and it worked great. Any idea on what could be causing the problem on with that option? Thanks again.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: 1.4.3 Upload problems
« Reply #5 on: January 28, 2006, 03:05:26 am »

when batch-adding, what error message do you get (if any) when clicking on the thumb.
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #6 on: January 28, 2006, 03:38:19 am »

Thanks for the help GauGau.

I hope this is what you are talking about. After attempting to upload the photos the page titled "Adding new files to the gallery" load and under the "Result" column, instead of the "Ok" symbol I get a broken file symbol. When I click it I am redirected to a new blank page with a message that says "Unable to create thumbnail or reduced size image."

Hope that info helps. If not please let me know what you else you need to know. Thanks
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #7 on: January 29, 2006, 12:52:15 am »

No ideas? :-\
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: 1.4.3 Upload problems
« Reply #8 on: January 29, 2006, 10:01:10 pm »

This is not a hotline >:(! What files have you been trying to batch-add? Post deep links to the files that can't be added.
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #9 on: January 30, 2006, 10:11:45 pm »

Sorry, I certainly didn't mean to offend. I understand you don't get paid for this and I appreciate your help, but that doesn't mean I'm not willing to pay. Maybe a system like "Google Answers" would work out for users who are in a hurry or do not have the paitence to wait and hope for answers that might never come? I'd be more than willing to pay $10 thru PayPal right now for anyone who can give me a definate answer to this question in a timely manner or at least spend the time helping me figure it out as quick as reasonably possible. I've spend far more that $10 worth of my time scratching my head, searching the forums etc. Maybe a "hotline" would be a good idea.  Just a thought????

I'm afraid a deep link isn't going to help you because I have hotlinking to any images on my server pevented. If need be I can temporarily turn that back on but I have a problem with people hotlinking to many of my images on my server and using them on their MySpace websites and blogs. The link to 3 test files that can't be added via batch-add are ....

http://applebytexas.com/coppermine/albums/photography/portfolio/test/P3080124.jpg
http://applebytexas.com/coppermine/albums/photography/portfolio/test/P3090170.jpg
http://applebytexas.com/coppermine/albums/photography/portfolio/test/PixieOnPoint.jpg

If I need to re-enable hotlinking please let me know and I'll turn it back on. If this is not the info you need please let me know what it is you need and I'll be more than glad to get it for you. Thanks and sorry for the impaitence on my part.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: 1.4.3 Upload problems
« Reply #10 on: January 31, 2006, 02:31:52 am »

This is what displays in the address bar when I click on any of your links:

http://www.applebytexas.com/home/appleby/public_html/jpg,jpeg,gif,png,bmp

Quote from: Your Website
Not Found
The requested URL /home/appleby/public_html/jpg,jpeg,gif,png,bmp was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.applebytexas.com Port 80

If you disable hotlink protection, does your gallery work correctly?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Re: 1.4.3 Upload problems
« Reply #11 on: January 31, 2006, 03:08:08 am »

There seems to be an error in the hotlink protection code in .htaccess.
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #12 on: January 31, 2006, 04:04:43 am »

Ok, thanks. I've disabled hotlink protection temporarily so that we can try and clear the first issue up. I will then later figure out what the error is with hotlink protection. And for the record I am enabling/disabling the protection thru Cpanel. I am doing nothing manually.

But for now it is OFF and clicking those links will take you directly to the photos. However, I did try batch-adding files again with the protection off the result is the same with the broken image link and when clicked the same error of "Unable to create thumbnail or reduced size image."

Thanks for the help fellas!
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #13 on: February 08, 2006, 08:56:07 pm »

I sure don't want to be bumping this too early since I've read the "hotline" guidelines but it's been almost 2 weeks and I've been at a 100% standstill on building my website, so I figured I could ask again by now. If it can't be fixed, do I just need to find another photo album software or try reinstalling Coppermine again? Thanks for the help.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: 1.4.3 Upload problems
« Reply #14 on: February 09, 2006, 04:09:09 am »

What are the permissions for your batch add directories?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Audioslave

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: 1.4.3 Upload problems
« Reply #15 on: February 09, 2006, 10:31:58 am »

Hi!

I had the exact same problem as you. I could upload pictures normally, but the batch-add function didnt work. The solution was very simple though, I had just forgotten to change the permissions on the batch-add folder I was using. So like kegobeer suggested, check the permissions on your batch-add directories.
Logged

JasonR

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: 1.4.3 Upload problems
« Reply #16 on: February 09, 2006, 08:36:30 pm »

BAM!!!!!!!!!!!!!  ;D   That was it!!!! I had the permissions at 755, which I thought was correct and I'd already checked that before I made my first post. In my ignorance I thought that was correct but I was obviously wrong. I changed them to 777 and tested it and it worked perfectly! Thanks guys, the help has been greatly appreciated and now I can start building my website again. Thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.041 seconds with 20 queries.