We're running Drupal 6.14. CCK, Views, Views Attach, Nodereference URL, Filefield, Imagefield, ImageAPI, Imagecache, Custom Pagers, Lightbox2 and Views Slideshow are enabled. When attempting to enable Views Gallery and Views Gallery for Organic Groups, I get the following error:
Fatal error: Cannot redeclare views_gallery_settings_form() (previously declared in /var/www/html/sites/nu-designs.com/acquia-drupal-1.2.17/sites/all/modules/views_gallery/views_gallery_og.module:85) in /var/www/html/sites/nu-designs.com/acquia-drupal-1.2.17/sites/all/modules/views_gallery/views_gallery.module on line 58
Views Gallery works fine alone, but not in conjunction with Views Gallery for Organic Groups.
Any ideas?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 621744-views_gallery_settings_conflict.patch | 1.42 KB | xurizaemon |
Comments
Comment #1
nu-designs commentedCorrection on the error message. It is:
Fatal error: Cannot redeclare views_gallery_settings_form() (previously declared in /var/www/html/sites/diamondcertified.org/acquia-drupal-1.2.17/sites/all/modules/views_gallery/views_gallery.module:41) in /var/www/html/sites/diamondcertified.org/acquia-drupal-1.2.17/sites/all/modules/views_gallery/views_gallery_og.module on line 130Comment #2
FiveOhOne commentedSame problem here.
D6.14 >
-- Drop all DB tables
-- Reinstall D6
-- Enable Imagecache modules (have to do this before enabling Views Gallery otherwise Imagecache cries about pseudo-missing tables:
even though the table does indeed exist)
-- Enable Views Gallery:
You must enable the ImageField, Content, Content Copy, Node Reference, Node Reference URL Widget, Views, Views attach, Token, FileField, Text, Option Widgets modules to install Views Gallery.- OK!-- Enable Views Gallery for Organic Groups:
You must enable the Organic groups, Organic groups Views integration modules to install Views Gallery for Organic Groups.Kshplurk. WSOD.
Error as above:
Fatal error: Cannot redeclare views_gallery_settings_form() (previously declared in /var/www/sites/all/modules/views_gallery/views_gallery.module:41) in /var/www/sites/all/modules/views_gallery/views_gallery_og.module on line 130Comment #3
drm commentedI got the same error as FiveOhOne as well as some very wordy mysql errors even before I enabled the modules. For example:
* user warning: Unknown column 'node_data_field_date.delta' in 'field list' query: SELECT node.nid AS nid, node.title AS node_title, node_data_field_date.field_date_value AS node_data_field_date_field_date_value, node_data_field_date.field_date_value2 AS node_data_field_date_field_date_value2, node_data_field_date.field_date_rrule AS node_data_field_date_field_date_rrule, node_data_field_date.delta AS node_data_field_date_delta, node.type AS node_type, node.vid AS node_vid FROM node node LEFT JOIN content_field_date node_data_field_date ON node.vid = node_data_field_date.vid WHERE ((node.status <> 0) AND (node.type in ('date'))) AND (DATE_FORMAT(ADDTIME(node_data_field_date.field_date_value, SEC_TO_TIME(-28800)), '%Y-%m-%d') >= '2009-11-09') ORDER BY node_data_field_date_field_date_value ASC LIMIT 0, 5 in [...]/sites/all/modules/viewsNavigate/includes/view.inc on line 765.
It seems that installation of this system requires that modules be uploaded and enabled in a certain order.
Comment #4
xurizaemonFunction views_gallery_settings_form() is defined in both Views Gallery and Views Gallery for OG
Probably views_gallery_og.module should be using views_gallery_og_settings.module, etc.
Comment #5
xurizaemonpatch, but untested cos i've never used this module ;)
Comment #6
jonhattanit works.
Comment #7
hornetnz commentedWorked for me too. THANK YOU!!
Comment #8
dreadfulcode commented*groans*
subscribing
Comment #9
karens commentedYes, this is the correct fix, thanks very much!
Comment #11
donovank commentedIs there any one that could tell me where exactly the patch would need to be located to fix this issue? I'm having trouble. which lines do i need to eliminate in the original file?
Comment #12
Ole Martin commentedLike #11
I do not understand this completely:
What exactly should I take away of the codes that are there. Code "views_gallery_og.module August 20, 2009 15:27:33 -0000 1.3" is not like in the Patch
Hoping for a little extra help here.
Comment #13
AntiNSA commentedIm receiving this error:
user warning: Table 'cyberfan.content_type_gallery_image' doesn't exist query: SELECT COUNT(*) FROM (SELECT DISTINCT node.nid AS nid FROM node node LEFT JOIN content_type_gallery_image node_data_field_gallery_image ON node.vid = node_data_field_gallery_image.vid WHERE node.status <> 0 OR (node.uid = 1 AND 1 <> 0) OR 1 = 1 ) count_alias in /home/cyberfan/htdocs/sites/all/modules/views/includes/view.inc on line 745.
user warning: Table 'cyberfan.content_type_gallery_image' doesn't exist query: SELECT DISTINCT node.nid AS nid, node_data_field_gallery_image.field_gallery_image_fid AS node_data_field_gallery_image_field_gallery_image_fid, node_data_field_gallery_image.field_gallery_image_list AS node_data_field_gallery_image_field_gallery_image_list, node_data_field_gallery_image.field_gallery_image_data AS node_data_field_gallery_image_field_gallery_image_data, node.language AS node_language, node.type AS node_type, node.vid AS node_vid, node.title AS node_title, node.created AS node_created FROM node node LEFT JOIN content_type_gallery_image node_data_field_gallery_image ON node.vid = node_data_field_gallery_image.vid WHERE node.status <> 0 OR (node.uid = 1 AND 1 <> 0) OR 1 = 1 ORDER BY node_created DESC LIMIT 0, 6 in /home/cyberfan/htdocs/sites/all/modules/views/includes/view.inc on line 771.
Comment #14
somatics commentedI have this same problem -- I get a White Screen of Death unless I remove the views_gallery_og.module file from within the views_gallery module folder. (I wish this was mentioned on the module project page!)
However, I don't know how to apply a patch. I've been using drupal for 4 years now, and have built elaborate sites, but anytime someone says, hey, just apply this patch and it will fix your problem, I am at a total loss as to what to do with that patch.
Can anyone please tell me or direct me to a web page that will tell me clearly how to apply a patch file to a drupal module?
I'd really appreciate it!!!
(P.S. When is this patch being rolled into the current version of the module.)
Comment #15
karens commentedThis is fixed in dev. I just realized there is no new release that includes the fix so you have to get the dev version to have it work. I am going to be doing a new release later today that will pick it up.
Comment #16
frizi_ commentedDisabling Image module (if enabled) helped me to solve this issue. There was duplicate function declaration in my case.
BTW, I would advice to turn on the error reporting to see what happens there.
put in index.php:
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);