Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: ERREUR CRITIQUE: functions.inc.php . Besoin d'aide SVP.  (Read 8929 times)

0 Members and 1 Guest are viewing this topic.

maileaudy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
ERREUR CRITIQUE: functions.inc.php . Besoin d'aide SVP.
« on: January 20, 2012, 01:38:53 pm »

Bonjour :-)

Il y a 2 jours j'ai voulu passer à la version 1.5 , malheureusement ça n'a pas marché, dans la panique j'ai donc réinstallé les fichiers coppermine que j'avais sauvegarder juste avant.. je suis donc revenu à la version 1.4.

Ma galerie a donc récupéré son apparence initiale mais il reste une erreur :-(

Les différents albums apparaissent mais on ne peut y accéder voir les vignettes de chaque photo: "ERREUR CRITIQUE".
Le message suivant apparait:

While executing query 'SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from Copperminepictures WHERE ((aid='149'  ) )   ORDER BY position DESC  LIMIT 0 ,20' in include/functions.inc.php on line 1001

mySQL error: Unknown column 'owner_name' in 'field list'

Fichier: /homepages/31/d291689598/htdocs/Coppermine/include/functions.inc.php - Ligne: 264

Et voici un extrait du fichier php en question: functions.inc.php
Ligne 264...
Code: [Select]
function cpg_db_error($the_error)
{
        global $CONFIG,$lang_errors;

        if ($CONFIG['debug_mode'] === '0' || ($CONFIG['debug_mode'] === '2' && !GALLERY_ADMIN_MODE)) {
            cpg_die(CRITICAL_ERROR, $lang_errors['database_query'], __FILE__, __LINE__);
        } else {

                $the_error .= "\n\nmySQL error: ".mysql_error()."\n";

                $out = "<br />".$lang_errors['database_query'].".<br /><br/>
                    <form name=\"mysql\"><textarea rows=\"8\" cols=\"60\">".htmlspecialchars($the_error)."</textarea></form>";

            cpg_die(CRITICAL_ERROR, $out, __FILE__, __LINE__);
        }
}

Et ligne 1001:
Code: [Select]
        // Regular albums
        if ((is_numeric($album))) {
                $album_name_keyword = get_album_name($album);
                $album_name = $album_name_keyword['title'];
                $album_keyword = addslashes($album_name_keyword['keyword']);

                if (!empty($album_keyword)) {
                        $keyword = "OR (keywords like '%$album_keyword%' $forbidden_set_string )";
                } else {
                  $keyword = '';
                }

                $approved = GALLERY_ADMIN_MODE ? '' : 'AND approved=\'YES\'';

                $query = "SELECT COUNT(*) from {$CONFIG['TABLE_PICTURES']} WHERE ((aid='$album' $forbidden_set_string ) $keyword) $approved $ALBUM_SET";
                $result = cpg_db_query($query);
                $nbEnr = mysql_fetch_array($result);
                $count = $nbEnr[0];
                mysql_free_result($result);

                if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name';

                $query = "SELECT $select_columns from {$CONFIG['TABLE_PICTURES']} WHERE ((aid='$album' $forbidden_set_string ) $keyword) $approved $ALBUM_SET ORDER BY $sort_order $limit";

                $result = cpg_db_query($query);
                $rowset = cpg_db_fetch_rowset($result);
                mysql_free_result($result);
                // Set picture caption
                if ($set_caption) {
                build_caption($rowset);
                }


        $rowset = CPGPluginAPI::filter('thumb_caption_regular',$rowset);

                return $rowset;
        }

Merci d'avance pour votre aide et vos réponse ;).
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: ERREUR CRITIQUE: functions.inc.php . Besoin d'aide SVP.
« Reply #1 on: January 20, 2012, 03:36:23 pm »

un lien vers la galerie ? Y a t'il des plugins installés ? avez vous lancé update.php ?
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

maileaudy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: ERREUR CRITIQUE: functions.inc.php . Besoin d'aide SVP.
« Reply #2 on: January 20, 2012, 05:45:44 pm »

Merci pour votre réponse... :)

Voici ma galerie:
http://mlle-karine.fr/Coppermine/

Il n'y a pas de plugins installés à ma connaissance.

Oui j'ai lancé update.php mais le problème persiste :s

Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.