I can't see thumbnails when batch uploading I can't see thumbnails when batch uploading
 

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

I can't see thumbnails when batch uploading

Started by Binks, November 27, 2004, 11:04:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Binks

Hi.
When i'm uploading a file using batch upload there is no thumbnails at all, in the "last upload", nor in the album view, i have beside album name, correct thumbnail, but inside album there only frames in places in wich there should be pictures. When i click the "frame" i also don't see the picture. I have no error massage, but when i batch uploading pics, there is no "ok" check afther i place the pics in the correct album. I also got massage "no file to display" when i want to delete picture using "edit" button beside album name.
The same think is when user want to upload the picture using upload form.
I have marked all my album folders as 777 and i created /upl folder for batch files.
Anyone know what is happening to my gallery?

Binks

Tranz


Binks


Binks

#3
One new thing appered.I logged to the gallery as normal user, and upload file, then i logged inn as admin, and when i wanted to accept sended files, i saw the picture, i acceped the file and on the second scren i got massage "no files fo displaed" "File: /home/binks/public_html/galeria/editpics.php - Line: 463"
What is going on??
It worked just a few days ago...

Binks

Tranz

#4
Right-click on the missing thumbnails and look at the properties. They point to a file called get_file.php which is not part of the coppermine package. It looks like incorrect application of a mod.

Binks

I know what get_file.php file is. I created it as cev team member omniscientdeveloper wrote. It's mod hide image locations.
The code is:
<?php 
// ------------------------------------------------------------------------- // 
// Coppermine Photo Gallery 1.2.1                                            // 
// ------------------------------------------------------------------------- // 
// Copyright (C) 2002,2003 Gregory DEMAR                                     // 
// http://www.chezgreg.net/coppermine/                                       // 
// ------------------------------------------------------------------------- // 
// Updated by the Coppermine Dev Team                                        // 
// (http://coppermine.sf.net/team/)                                          // 
// see /docs/credits.html for details                                        // 
// ------------------------------------------------------------------------- // 
// This program is free software; you can redistribute it and/or modify      // 
// it under the terms of the GNU General Public License as published by      // 
// the Free Software Foundation; either version 2 of the License, or         // 
// (at your option) any later version.                                       // 
// ------------------------------------------------------------------------- // 


// Code by:     Christopher Brown-Floyd 
// Date:        January 13, 2004 

define('IN_COPPERMINE'true); 
define('GETFILE_PHP'true); 

global 
$CONFIG

include(
'include/config.inc.php');
$CONFIG['TABLE_CONFIG'] = $CONFIG['TABLE_PREFIX'] . "config"
$CONFIG['TABLE_PICTURES'] = $CONFIG['TABLE_PREFIX'] . "pictures"

db_connect($db); 
$results mysql_query("SELECT * FROM {$CONFIG['TABLE_CONFIG']}");
while (
$row mysql_fetch_array($results)) { 
    
$CONFIG[$row['name']] = $row['value']; 
// while 
mysql_free_result($results); 
// Set error logging level 
if ($CONFIG['debug_mode']) { 
    
error_reporting (E_ALL); 
} else { 
    
error_reporting (E_ALL E_NOTICE); 

mysql_close(); 

if (!
function_exists('mime_content_type')) 

    function 
mime_content_type($path) { 
        
$image_params getimagesize($path); 
        if (
is_null($image_params)) 
            return 
null
        else 
            return 
$image_params['mime']; 
    } 


$pic_prefix = array( 
        
'thumb' => $CONFIG['thumb_pfx'], 
        
'normal' => $CONFIG['normal_pfx'], 
        
'fullsize' => ''
); 

$pid = (int) $_GET['pid']; 
$size htmlspecialchars($_GET['size']);

db_connect($db); 

$result mysql_query("select filepath,filename from {$CONFIG['TABLE_PREFIX']}pictures where pid=$pid;"); 
$result mysql_fetch_assoc($result); 
mysql_close(); 

$cfilepath $CONFIG['fullpath'].$result['filepath'].$pic_prefix[$size].$result['filename']; 
header('Content-type: '.mime_content_type($cfilepath)); 

$fp fopen($cfilepath,'rb'); 
echo 
fread($fp,filesize($cfilepath)); 
fclose(); 

function 
db_connect(&$db

        global 
$CONFIG
        
$db mysql_connect($CONFIG['dbserver'],$CONFIG['dbuser'],$CONFIG['dbpass']); 
        
mysql_select_db($CONFIG['dbname']); 

?>

Can u help me with this to work please. I'm not very good at coding:|

Binks

kegobeer

You should either remove that mod or re-read the post that deals with the mod and make sure you've applied it correctly.  Omni posted instructions on how to apply the mod.  If you can't figure out how to apply it, it would be best if you removed it from your Coppermine installation.
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

Binks

At first I thought the same way, but when i look throughout omniscientdeveloper post and when i compare it with what i've have done with my code, the conclusion was that i did exactly as he inscructed, i thought that maybe it will be good idea to leave this mod, but with some modifications(maybe) done with u're help:)

Binks

kegobeer

If you have problems with that mod, you should post your question on Omni's thread instead of starting a new one.  I don't use the mod and have no knowledge of it.
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