Advanced search  

News:

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

Pages: 1 [2]   Go Down

Author Topic: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #20 on: June 20, 2018, 03:30:21 am »

 >:(
Can you please post 2 files here? Remove passwords but try not to change them in other ways.

<forum>/includes/config.php
and
<gallery>/include/config.inc.php

Or .. email them to me at ron4mac_(at sign)_me_dot_com
« Last Edit: June 20, 2018, 03:36:03 am by ron4mac »
Logged

Fity

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #21 on: June 20, 2018, 03:50:18 am »

Thanks for your efforts.

I will send you an email soon.
Logged

Fity

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #22 on: June 20, 2018, 04:28:02 am »

Email sent.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #23 on: June 20, 2018, 04:32:00 am »

I get a red error notification box with:

Okay .. I think it is connecting to the database now, anyway.  Can you turn off bridging, turn debug mode on in CPG then try bridge mode again. Maybe we can see what SQL error it is getting.
Logged

Fity

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #24 on: June 20, 2018, 04:42:46 am »

Large red error notification box.  (I have removed the sensitive info)

Quote
Critical error

There was an error while processing a database query.


While executing query 'SELECT NULL FROM `******`.user LIMIT 1' in bridge/udb_base.inc.php on line 59

database error: 1142 : SELECT command denied to user '******'@'localhost' for table 'user'



File: /home/******/public_html/photo_gallery/include/functions.inc.php - Line: 253


This in the debug info box:

Quote
/include/init.inc.php
Notice line 198: Undefined index: log_retention
/bridgemgr.php
Notice line 137: Undefined variable: return
/bridge/vbulletin30.inc.php
Notice line 34: Constant USE_BRIDGEMGR already defined



Also I think I have lost access again as I receive this while trying to access any cpg page.

Quote
Fatal error:

While executing query 'SELECT NULL FROM `******`.user LIMIT 1' in bridge/udb_base.inc.php on line 59

database error: 1142 : SELECT command denied to user '******'@'localhost' for table 'user'
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #25 on: June 20, 2018, 05:31:25 am »

Try commenting out line 36 in udb_base.inc.php
(put 2 forward slashes at the front of it)

Code: [Select]
// $this->can_join_tables = ($this->db['host'] == $CONFIG['dbserver'] . . . .
Logged

Fity

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #26 on: June 20, 2018, 05:45:28 am »

Success! 

Commenting out that line has given me access to the cpg again and if I follow a link from Vbulletin bridging is working too.

I have only had a quick test but it appears to be operational.  Thanks for your help resolving this.  :D

Now to set up the gallery.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #27 on: June 20, 2018, 11:38:54 am »

Great!!  Thanks for working through this with me. It would have been much easier had access to your site been possible.

Now I'll have to translate all this into permanent code changes to the distribution that will keep it from occurring in the first place.
Logged

Fity

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #28 on: June 20, 2018, 11:56:36 am »

Glad to  help.  It was benefiting me too.

Was a change in VB4 causing the error?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
Re: Bridging CPG 1.6.03 with VBulletin 4.2.5 - Critical Error
« Reply #29 on: June 20, 2018, 02:00:53 pm »

Was a change in VB4 causing the error?

No, it involves MySQLi and bridging with different databases ... not so much with VB4.
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.022 seconds with 24 queries.