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

Author Topic: Fixes for user importing and cpg11d error here  (Read 4188 times)

0 Members and 1 Guest are viewing this topic.

gothi

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Fixes for user importing and cpg11d error here
« on: January 19, 2005, 08:29:54 pm »

(As posted on the pnCPG website)

Hi there,

I've just spent 30 mins going through pnCPG 2.4 and fixed the problem with importing PostNuke users and the error "Query0 failed : Table '*insert DB name here*.cpg11d_users' doesn't exist"

First up, the failing to import users:

Open up pnadmin.php in a text editor and go to line 417, it should be
Code: [Select]
while ($teller < usr_num ){
Change this to
Code: [Select]
while ($teller < $usr_num ){

now go to line 424, it should look like this:
Code: [Select]
$results1 = mysql_query( "SELECT * FROM $_cpg_prf WHERE user_name='$username' " );
change it to
Code: [Select]
$results1 = mysql_query( "SELECT * FROM $_cpg_prf WHERE user_name=$username" );

Now upload that modified file and run the import again, you should now find your Coppermine userbase filled with your Postnuke users :)

Now for the problem with the 'random' block that is causing the 'cpg11d_users' doesn't exist" error

Open up pncpg-random.php, it's in the pnblocks folder/directory.

Go to line 28, it should look like this:
Code: [Select]
$url[1] = "cpg11d";
change the cpg11d to whatever your Coppermine database table prefix is, often it will be cpg132 or similar (seems to depend on the version number of Coppermine you installed)


That should sort out the two biggest bugs in this release whilst waiting for 2.5 :)
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Fixes for user importing and cpg11d error here
« Reply #1 on: January 20, 2005, 10:49:05 pm »

The first reported bug is acknowledged and fixed in 2.5; the second issue  is a question of filling in the block details correctly.
In the next version have updated this setting but it is always necessary to verify these settings.

Cas
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.