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 [2]   Go Down

Author Topic: Final Extract plugin for cpg 1.5.x  (Read 60523 times)

0 Members and 1 Guest are viewing this topic.

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Final Extract plugin for cpg 1.5.x
« Reply #20 on: July 05, 2010, 03:23:07 pm »

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:

Quote
Critical 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Final Extract plugin for cpg 1.5.x
« Reply #21 on: July 05, 2010, 03:41:02 pm »

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:
Code: [Select]
        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).
Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Final Extract plugin for cpg 1.5.x
« Reply #22 on: July 05, 2010, 04:05:07 pm »

Quote
As I said, you need to uninstall the plugin first.

Hi Αndré,

That worked!  Thanks for your assistance.

Gordon
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Final Extract plugin for cpg 1.5.x
« Reply #23 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.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Final Extract plugin for cpg 1.5.x
« Reply #24 on: July 29, 2010, 06:50:41 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
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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Final Extract plugin for cpg 1.5.x
« Reply #25 on: August 12, 2010, 08:39:13 am »

Replaced version 2.4 with version 1.2 on sourceforge.net.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Final Extract plugin for cpg 1.5.x
« Reply #26 on: July 25, 2014, 11:20:36 am »

Added option to hide "register" button in version 2.6 (attached to initial post).
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.019 seconds with 21 queries.