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: Bridging and Plug-in Problems  (Read 13110 times)

0 Members and 1 Guest are viewing this topic.

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Bridging and Plug-in Problems
« on: August 14, 2006, 04:31:43 am »

I have my Coppermine photo gallery bridged with PHPBB2.  When I try to install plug-ins, I usually ends up in a database error.  I tried the same files on a non bridged gallery and it worked fine.  What do I do? :(
« Last Edit: August 22, 2006, 06:33:16 am by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging and Plug-in Problems
« Reply #1 on: August 14, 2006, 07:36:42 am »

Posting a link to your page and the actualy mySQL error you get (note: do not post debug_ouput, but only the error message) might help.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #2 on: August 14, 2006, 10:35:58 pm »

Error Message:
Critical error
There was an error while processing a database query

URL: http://www.mydpnet.com/videos/index.php
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging and Plug-in Problems
« Reply #3 on: August 14, 2006, 11:46:51 pm »

Turn debug mode on, leave notices turned off, post the actual error message.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #4 on: August 15, 2006, 02:47:02 am »

Here is what I get now:

While executing query "SELECT * FROM cpg_mark_users WHERE user_id = 2" on 0

mySQL error:
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging and Plug-in Problems
« Reply #5 on: August 15, 2006, 07:42:48 am »

What's the actual error message? What's your coppermine database table prefix? Does the table actually exist that the error message complains about?
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #6 on: August 15, 2006, 09:19:13 am »

It would probably be best if you looked here: http://www.mydpnet.com/videos/index.php.

The debug mode is on, so you should find what you are looking for.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging and Plug-in Problems
« Reply #7 on: August 15, 2006, 09:47:36 am »

Does the table actually exist that the error message complains about?
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #8 on: August 18, 2006, 12:50:15 am »

cpg_mark_users does not exist apprently.  I think that this table is removed or changed when I bridged coppermine with phpbb because coppermine's user thing (i dont know what to call it) reads off of the phpbb user thing.

(Sorry I'm vauge)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Bridging and Plug-in Problems
« Reply #9 on: August 18, 2006, 08:30:33 am »

The cpg_mark_user is the custom (plugin) made table for CPGMark plugin , if it's not there then try to removing cpgmark from your cpg_plugins table manualy by phpmyadmin then try to install the plugin again
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Jale Crni

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Bridging and Plug-in Problems
« Reply #10 on: August 18, 2006, 09:03:23 pm »

where to download bridge between SMF  and Coppermine?    please help me
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Bridging and Plug-in Problems
« Reply #11 on: August 18, 2006, 09:25:42 pm »

- Next time Please do not post to unrelated thread , create you own new thread ...
- Read the documentation & search board before post an issue
- SMF bridge is already under standard installation package , you don't need to download it if you already have installation package of CPG 1.4.8 you need to enable it under bridge manager
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Jale Crni

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Bridging and Plug-in Problems
« Reply #12 on: August 18, 2006, 10:25:15 pm »

- Next time Please do not post to unrelated thread , create you own new thread ...
- Read the documentation & search board before post an issue
- SMF bridge is already under standard installation package , you don't need to download it if you already have installation package of CPG 1.4.8 you need to enable it under bridge manager
Ok, sorry.  I asked administrator (before posting in this thread) for help becouse i know that i'm asking noob  questions, but he didin't answer.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #13 on: August 18, 2006, 10:39:51 pm »

The cpg_mark_user is the custom (plugin) made table for CPGMark plugin , if it's not there then try to removing cpgmark from your cpg_plugins table manualy by phpmyadmin then try to install the plugin again
It didn't work.  I still get error messages which can be seen at www.mydpnet.com/videos.  It appears that bridging CPG with another application removes any "users" tables from the CPG database, and reads all the user information from whatever you bridge CPG to.  I guess that's why it says this:
Code: [Select]
While executing query "SELECT * FROM cpg_mark_users WHERE user_id = 2" on 0

mySQL error:

The plug in works fine when CPG is not bridged.  So I know that something has to be wrong on CPG side, and it most likely has something to do with how CPG and PHPBB (the forum I'm using) share user information.  Other than that, I know nothing.  I tried re-installing CPG, but the same exact errors occured.

Sorry for rambling, I guess I'm trying to talk myself into solving the problem.  lol.

Any ideas?  (Thank you for your help so far.)
Logged

Nibbler

  • Guest
Re: Bridging and Plug-in Problems
« Reply #14 on: August 18, 2006, 10:51:52 pm »

Bridging doesn't remove anything. If the table is not there then why don't you just create it and see what happens?

Code: [Select]
CREATE TABLE `cpg_mark_users` (
  `user_id` int(11) NOT NULL default '0',
  `use_watermark_img` tinyint(4) NOT NULL default '0',
  `img_vpos` varchar(10) NOT NULL default '',
  `img_hpos` varchar(10) NOT NULL default '',
  `use_watermark_txt` tinyint(4) NOT NULL default '0',
  `watermark_text` varchar(255) NOT NULL default '',
  `watermark_text_size` tinyint(4) NOT NULL default '0',
  `large_watermark_text_size` tinyint(4) NOT NULL default '0',
  `watermark_text_color` varchar(6) NOT NULL default '',
  `txt_vpos` varchar(10) NOT NULL default '',
  `txt_hpos` varchar(10) NOT NULL default '',
  PRIMARY KEY  (`user_id`)
) TYPE=MyISAM;
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #15 on: August 18, 2006, 11:05:33 pm »

That error is gone, but now I need to creat table cpg_mark_config?  I must have installed the plug-in incorrectly, otherwise these tables would be where they were supposed to be.  I FTP the plug-in folder to the plug-ins folder on CPG.  Did I do somthing wrong, or am I skipping some step?
Logged

Nibbler

  • Guest
Re: Bridging and Plug-in Problems
« Reply #16 on: August 18, 2006, 11:09:41 pm »

You should upload and then install the plugin using the plugin manager interface. Make sure your mysql user actually has permission to create new tables.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #17 on: August 19, 2006, 12:51:30 am »

I'm about to go insane.
I re-uploaded the whole CPG gallery again, and then bridged it with my PHPBB forum.  I then uploaded and installed the plug-in using the Plug-in manager (I had to change the CHMOD of the plug-ins folder to 777, I assume you have to do that to upload the plug-ins (it worked)).  And i still get the same error messages.  I checked to make sure that the user can create tables.  It said that the user had all privileges. 

What confuses me is the message I get after I install the plug-in.  I shouldn't get the the following message with a clean installation of CPG, should I?

Performing Database Updates
CREATE TABLE `cpg_mark_watermark` ( `pid` INT NOT NULL, `watermarked` TINYINT NOT NULL, PRIMARY KEY (`pid`) ) TYPE=MyISAM Already Done
CREATE TABLE `cpg_mark_users` ( `user_id` int(11) NOT NULL default '0', `use_watermark_img` tinyint(4) NOT NULL default '0', `img_vpos` varchar(10) NOT NULL default '', `img_hpos` varchar(10) NOT NULL default '', `use_watermark_txt` tinyint(4) NOT NULL default '0', `watermark_text` varchar(255) NOT NULL default '', `watermark_text_size` tinyint(4) NOT NULL default '0', `large_watermark_text_size` tinyint(4) NOT NULL default '0', `watermark_text_color` varchar(6) NOT NULL default '', `txt_vpos` varchar(10) NOT NULL default '', `txt_hpos` varchar(10) NOT NULL default '', PRIMARY KEY (`user_id`) ) TYPE=MyISAM Already Done
CREATE TABLE `cpg_mark_config` ( `name` varchar(40) NOT NULL default '', `value` varchar(255) NOT NULL default '', PRIMARY KEY (`name`) ) TYPE=MyISAM Already Done
INSERT INTO `cpg_mark_config` VALUES ('watermark_path', 'watermarks/') Already Done
INSERT INTO `cpg_mark_config` VALUES ('small_watermark_image', 'watermark.png') Already Done
INSERT INTO `cpg_mark_config` VALUES ('large_watermark_image', 'watermark_large.png') Already Done
INSERT INTO `cpg_mark_config` VALUES ('display_image_mark', '0') Already Done
INSERT INTO `cpg_mark_config` VALUES ('upload_mark', '1') Already Done
INSERT INTO `cpg_mark_config` VALUES ('user_watermark', '0') Already Don

And then after I click next, it takes me to this error message (which we have already seen):
Code: [Select]
While executing query "SELECT * FROM cpg_mark_users WHERE user_id = 2" on 0

mySQL error:


I noticed that it creaded the CPG Mark row in the plug-ins table of the database, but it won't create any other tables even if the user has all privileges.

Any more ideas?
Logged

Nibbler

  • Guest
Re: Bridging and Plug-in Problems
« Reply #18 on: August 19, 2006, 01:15:39 am »

Stop re-installing; Coppermine is not windows. Looks to me like the user does not have the CREATE TABLE privilege. Running the queries manually appears to solve your issues, so I would suggest running the rest of the create table statements via phpmyadmin or whatever you use.
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: Bridging and Plug-in Problems
« Reply #19 on: August 19, 2006, 03:15:01 am »

The only reason I re-installed the script was because I thought I might have done some damage to the database after playing with it.  I'll try manually creating the tables again and see what happens.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.032 seconds with 19 queries.