Final Extract plugin for cpg 1.5.x - Page 2 Final Extract plugin for cpg 1.5.x - Page 2
 

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]

Main Menu

Final Extract plugin for cpg 1.5.x

Started by François Keller, November 28, 2009, 06:58:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gldickens3

Hi Αndré,

Sorry, but that doesn't work for me.  I used the plugin manager to upload the plugin which then caused this error with Coppermine in debug mode:

QuoteCritical error

There was an error while processing a database query.

While executing query 'SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,my_profile FROM cp_final_extract_config WHERE Group_Id=1' in plugins/final_extract/include/init2.inc.php on line 20 mySQL error: Table '<database_name>.cp_final_extract_config' doesn't exist


File: /home/zeebytes/public_html/gallery/include/functions.inc.php - Line: 258

FYI,

GOrdon

Αndré

As I said, you need to uninstall the plugin first. Make sure that fex_enable doesn't exist in your config table, as the plugin installer checks for that value:
        if(!isset($CONFIG['fex_enable'])) {
            $query="INSERT INTO ".$CONFIG['TABLE_CONFIG']." VALUES ('fex_enable', '1');";
            cpg_db_query($query);
            // create table
            $db_schema = $thisplugin->fullpath . '/schema.sql';
            $sql_query = fread(fopen($db_schema, 'r'), filesize($db_schema));
            $sql_query = preg_replace('/CPG_/', $CONFIG['TABLE_PREFIX'], $sql_query);

            $sql_query = remove_remarks($sql_query);
            $sql_query = split_sql_file($sql_query, ';');
       
            foreach($sql_query as $q) {
                cpg_db_query($q);
            }
            // Put default setting
            $db_schema = $thisplugin->fullpath . '/basic.sql';
            $sql_query = fread(fopen($db_schema, 'r'), filesize($db_schema));
            $sql_query = preg_replace('/CPG_/', $CONFIG['TABLE_PREFIX'], $sql_query);

            $sql_query = remove_remarks($sql_query);
            $sql_query = split_sql_file($sql_query, ';');
       
            foreach($sql_query as $q) {
                cpg_db_query($q);
            }

        }

(which is bad designed imo).

gldickens3

QuoteAs I said, you need to uninstall the plugin first.

Hi Αndré,

That worked!  Thanks for your assistance.

Gordon

Αndré

So we have a running Final extract plugin for cpg1.5.x. I suggest to remove version 1.1 and 2.4 from the initial post.

François Keller

Quote from: Αndré on July 05, 2010, 04:29:39 PM
So we have a running Final extract plugin for cpg1.5.x. I suggest to remove version 1.1 and 2.4 from the initial post.
done
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

Αndré


Αndré

Added option to hide "register" button in version 2.6 (attached to initial post).