Normal_ and Thumb_ files don't show up Normal_ and Thumb_ files don't show up
 

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

Main Menu

Normal_ and Thumb_ files don't show up

Started by Shelly, August 15, 2011, 11:26:01 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Shelly

Alright, I had some sort of weird troubles uploading pictures in the past, which made me re-install the gallery. I moved the "albums" section into the new gallery folder, deleted the already existing normal and thumb files that belonged to the old gallery and added the pictures to the new gallery. Well, the whole gallery is set up again, but another error occurred when I tried to upload new images today.

I used the search to see if anyone already had the same problem and it's pretty much to same as here: http://forum.coppermine-gallery.net/index.php/topic,33167.msg154705.html#msg154705 but since I am using the 1.5x version I created a new topic.

Anyway, when I try to add new pictures to an album (doesn't matter whether it's per batch or the regular uploader) the image is being added, but there doesn't seem to be an orig_ normal_ or thumb_ file. When I take a look at the folder via FTP it seems like the files have been created, but they're just blank files. I remember that it worked a while ago when I tried it and I actually don't remember changing any settings that might have caused the problem.

If anyone wants to try it, that's the gallery: http://marina-diamandis.org/gallery/

and I've created a test-account:

Username: tester
Password: testuser

It'd be really great if anyone could help me, I really don't want to set up the gallery for the third time, it would just takes ages again :/


Shelly

Thanks for trying it out, but that's weird, for me it doesn't for some reason. It keeps looking like this:

http://marina-diamandis.org/gallery/displayimage.php?album=501&pid=10040#top_display_media

Do you have any ideas what's wrong there?

Αndré

You tried to upload a png image file. Please try again with a jpg file and attach the file you just wanted to add to your gallery.

Shelly

Damn, that was it! It works with .jpg files ;D Thanks a lot!!!

Shelly

But is it possible to upload .png files somehow?

lurkalot

config / file settings / Do you have png listed in  "Allowed image types"  If not, then add it. ;)

To be honest I thought it was a default setting, as all my galleries have it, and png images work fine. 
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Αndré

Quote from: Αndré on August 15, 2011, 08:05:19 PM
attach the file you just wanted to add to your gallery

Quote from: Shelly on August 15, 2011, 11:26:01 AM
Username: tester
Password: testuser
Doesn't work anymore.


Try to switch between ImageMagick & GD2 as resizing method.

Shelly

Quote from: lurkalot on August 16, 2011, 10:07:36 AM
config / file settings / Do you have png listed in  "Allowed image types"  If not, then add it. ;)

To be honest I thought it was a default setting, as all my galleries have it, and png images work fine.
Hm, I do have it listed.

The tester/testuser account should work again. Attached the file I tried to add.

Quote from: Αndré on August 16, 2011, 10:12:31 AM
Try to switch between ImageMagick & GD2 as resizing method.
How does this work?


Shelly

I either did something wrong, or this doesn't help. It was set to GD2 and after changing it to ImageMagick it didn't upload the png files at all, instead error messages appeared, saying "Error executing ImageMagick - Return value: 127".

Joe Carver

Check to see if you have the correct path settings for your server and also confirm that ImageMagick is installed on your server. You might have to ask your host for help.

Αndré

Just to make this clear: it should work with both GD2 and ImageMagick. If you don't have ImageMagick on your server, switch back to GD2. If it doesn't work maybe your host has disabled it.

Stramm

check php info if png support is enabled (scroll down to the gd part)
Quote
PNG Support    enabled

Shelly

Do you mean phpinfo.php in the gallery folder? I can't even see the gd part, actually.

Αndré

Quote from: Shelly on October 31, 2011, 02:27:00 PM
Do you mean phpinfo.php in the gallery folder?
Yes.


Quote from: Shelly on October 31, 2011, 02:27:00 PM
I can't even see the gd part, actually.
That doesn't make sense. If you still have GD2 set as resizing method in the Coppermine settings and uploading (at least) jpg files works as expected, you should at least see that part:
QuoteJPG Support    enabled

Shelly

Weird, I fear I'm looking in a completely wrong place. That's my phpinfo.php file:

Quote<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2011 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
 
  ********************************************
  Coppermine version: 1.5.12
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/phpinfo.php $
  $Revision: 8154 $
**********************************************/

error_reporting (E_ALL ^ E_NOTICE);
define('IN_COPPERMINE', true);
define('PHPINFO_PHP', true);
require('include/init.inc.php');

$CONFIG['debug_mode']=0;

if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied']);
}

pageheader($lang_cpg_debug_output['phpinfo']);

ob_start();
phpinfo();
preg_match('#<body>(.*)</body>#s', ob_get_clean(), $matches);
$string = $matches[1];

$string = str_replace(' class="p"','',$string);
$string = str_replace(' class="e"','',$string);
$string = str_replace(' class="v"','',$string);
$string = str_replace(' class="h"',' class="tableh2"',$string);
$string = str_replace(' class="center"','',$string);
$string = str_replace(' width="600"','',$string);
$string = str_replace(' cellpadding="3"','',$string);
$string = str_replace('<table border="0"','<table',$string);
$string = str_replace('<table>','<table border="0" cellspacing="0" cellpadding="0" class="cpg_zebra" style="table-layout:fixed;width:100%">',$string);
$string = str_replace('<td>','<td style="text-align:left;vertical-align:top">',$string);

print '<div align="left" style="overflow:hidden;width:100%;text-align:left;">';
starttable('100%', cpg_fetch_icon('phpinfo', 2) . $lang_phpinfo_php['php_info'], 1);
print '<tr><td class="tableb">';
print $lang_phpinfo_php['explanation'];
print '<br />';
print $lang_phpinfo_php['no_link'];
print '</td></tr>';
endtable();
print '<br />';

print $string;
print '</div>' . $LINEBREAK;

pagefooter();

?>

lurkalot

Shelly, on your gallery main menu, you'll see a button called "Information" hover your mouse cursor over this, and in the dropdown menu you'll see phpinfo.  Click this, and that will give you your server info.  Scroll down to where it mentions GD, and see if it says enabled.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Shelly

Thank you, now I got it  ;D However, it says it's enabled :/

Αndré