Support > cpg1.5 bridge contributions
Drupal 6 bridge
palle:
Thanks for the Bridge, Mehdi.
After install I have a rather big problem though - here is what I did:
1) Installed drupal 6.17
2) Installed Coppermine 1.5.6
3) Followed the instructions on http://www.mehdiplugins.com/misc/cpgdrup.htm
Result is that cpg is now visually integrated into drupal, BUT every I press on a menu item in either drupal or cpg, a white lightbox appears containing an image of a camera with a line over, see the attached image.
This only happens when I have entered the coppermine gallery, so to clarify further I can now do the following:
- Open my drupal page. This is good.
- Open a sub page, e.g. a blog. This is good.
- Open the coppermine gallery by typing the address in the browser address field - the coppermine gallery is now shown inside drupal. This is good
- But now I can no longer open a sub page, e.g. a blog, nor can I execute any cpg menu items without the image of the camera with a line across comes up.
A final note: I have not yet added any categories, albums or pictures to the coppermine gallery after install - can that be the problem?
Does anyone now what is wrong?
onthepike:
--- Quote from: palle on July 09, 2010, 05:45:50 pm ---I have not yet added any categories, albums or pictures to the coppermine gallery after install - can that be the problem?
--- End quote ---
You might want to do just that and begin adding files to your gallery. How else can you fully test it? In my opinion, this should have been attempted before a support request. Just stands to reason -- if you're able to add categories, albums and pictures, do so.
I don't have Drupal, so I cannot assist with any particulars. But generally speaking, Coppermine is a photo gallery. No photos? Well, not much of a gallery!
Additionally, any and all support requests require a link back to your Coppermine gallery, as per board rules.
extrabigmehdi:
hi,
recently tested the bridge for Drupal 6.
Works fine, except some warnings (from Coppermine) you might see (from times to times) when enabling visual integration.
The problem can be bypassed, by disabling the display of errors in drupal backend.
Also I've applied a fix, so that flash upload works. (similar, than other fix for joomla bridge).
cheers
palle:
Reply to onthepike: I did not post my website as a reference, because I did not have any (I just installed and tested it locally) - that is why I attached a snapshot of the error. And no - the problem was not related to the absence of content (albums, images).
Here are my observations:
I found that the problems with the popping-up ligthbox camera image (see my previous posting) is caused by Drupals "ImageAPI" module. I had created some test content using ImageAPI, ImageCache, ImageCacheUI, Node Gallery, Note Gallery Access and Node Gallery Lightbox 2 Integration. When I had the "camera with a line across" error, I gradually removed all of those modules, but it was not until I removed the ImageAPI module that the error disappeared. I think the error is related rather than to the content I created rather than to the ImageAPI module being enabled, because I can not reproduce the error on a fresh installation of both drupal and cpg ny enabling only the ImageAPI module. I will not follow this any further - this is just to note my observations here should anyone else need them.
Regarding the use of the bridge itself, I have made some progress, but still have problems though.
Without the visualisation-plugin, everything works OK. I can log in to either of the two systems and then go to the other system and then already be logged in with the same credentials/rights. I can view pictures and do everything (at least all of the stuff I have tried) in coppermine.
But when I enable the visualization plugin, I have some problems:
1) I can see all the thumbnails on the cpg front page, but when I click on one of them, I get the following error: "Error You are not allowed to view any images".
2) I sometimes get these warnings:
warning: Missing argument 3 for cpg_die(), called in /home/www/egebjergvej.dk/billeder/displayimage.php on line 38 and defined in /home/www/egebjergvej.dk/billeder/include/functions.inc.php on line 353.
warning: Missing argument 4 for cpg_die(), called in /home/www/egebjergvej.dk/billeder/displayimage.php on line 38 and defined in /home/www/egebjergvej.dk/billeder/include/functions.inc.php on line 353.
These warnings are not a big deal, since (as mehdi wrote in the previous post) they can be configured not to be shown in drupal.
3) When I click on "Admin Tools" from the file menu, then I get the following error: "Critical error There was an error while processing a database query"
4) When I try to click on users (usermgr.php), then there is a blank page only showing the text "Fatal error :".
So suggestions to what could be wrong are very welcome :-)
I have deployed the system on the web now.
Drupal: http://www.egebjergvej.dk/
Drupal version is 6.17
Coppermine: http://www.egebjergvej.dk/billeder/
Coppermine version is 1.5.7(snapshot of svn version 7757 (last night))
User: test/test.
I think there is a huge need for this bridge - I have been searching some time for good drupal image gallery that facilitates a lot of nice stuff like Coppermine, i.e. easy batch upload/creation of albums, but I have only encountered a lot of postings on drupal.org where other guys look for the same as me. And it would just be excellent if cpg could just be used inside drupal instead!
palle:
I have enabled debug mode, and that gives the following information (relating to the points in my previous post from 07.25 pm July the 12th 2010):
3)
In addition to the "Critical error...", the following info is given
--- Code: ---While executing query 'SELECT uid AS user_id, name AS user_name FROM `<DATABASE_NAME>`.users ORDER BY name' in include/functions.inc.php on line 5957
mySQL error: Table '<DATABASE_NAME>.users' doesn't exist
(I substituted my real database name for <DATABASE_NAME>).
--- End code ---
4)
In addition to "fatal error: ", the following info is given:
--- Code: ---While executing query 'SELECT user_id FROM cpg15x_users WHERE user_name = '' AND user_id != load' in usermgr.php on line 1005
mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load' at line 1
--- End code ---
I hope that will give you a hint to what could be wrong...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version