By eriksays on
installed og_galleries (along with the required modules)
i go to admin/settings/og_galleries and get:
* warning: ksort() expects parameter 1 to be array, null given in /home/matthew/webroot/springbreak-hookup.com/webroot/modules/og_galleries/og_galleries.module on line 439.
* warning: Invalid argument supplied for foreach() in /home/matthew/webroot/springbreak-hookup.com/webroot/includes/form.inc on line 655.
i DO see that i'm supposed to setup a "Views View"; however, I'm a little lost on what that means....
Comments
Administer >> Views
Go to Adminster >> Views and look down the list for a "galleries" view, you should be able to enable it, when it's enabled I think you have to tell it to associate node type "image" with the "galleries" view.
I got the same warning and I think that dealt with it. I got a similar warning for something else with og_galleries, but I can't recall it at the moment.
Oh, I forgot to have to "image" module enabled when I first tried to use og_galleries, that didn't help.
Patrick
This error means that you
This error means that you don't have any views set up, and you need to set up a view to use for the gallery. I'm going to tweak the code so it won't throw that error and add a message about creating a view. I may also be able to get it to set the default gallery up automatically, I'm playing around with that.
I think many problems were
I think many problems were related to trying to use the module before things were setup correctly, so I have committed changes to the setup process, put in preventions to keep things that are not setup right from being used, added warnings to help clarify what needs to be done, and added a remove button in the settings section to make it easy to remove all traces and start over if the setup went wrong. You'll find the update in the cvs repository (at http://www.drupal.org/project/og_galleries), the download file won't get updated until later.
Try this new version, go to admin/settings/og_galleries and use the remove button to remove the old install, go to the modules page and re-install the module and get everything set up again, and see if there are still problems.
I added an INSTALL.txt that might help. You will need to use Views, but you don't need to know much about it. You just go to admin/views, scroll down to the bottom of the page where you will see a default view called og_galleries. Select the option to 'add' it, open up the 'filters' area and make sure your image content type is selected in the content type filter, and save the view.
After that, go to the admin/settings/og_galleries and finish the setup.
thanks for the help. i
thanks for the help. i followed your suggestions; and, got the views configured.
now i receive the following error when i go to /galleries/:
* user warning: 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 ')) FROM node node LEFT JOIN term_node term_node ON node.nid = query: SELECT count(DISTINCT()) FROM node node LEFT JOIN term_node term_node ON node.nid = term_node.nid LEFT JOIN term_data term_data ON term_node.tid = term_data.tid WHERE (node.status = '1') AND (node.type IN ('image')) in /home/my/root/path/webroot/includes/database.mysql.inc on line 120.
* user warning: 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 'ORDER BY node.sticky DESC, node.created DESC LIMIT 0, 10' at li query: SELECT count(DISTINCT(node.nid)) as num_nodes, term_data.name AS term_data_name, term_data.tid AS term_data_tid FROM node node LEFT JOIN term_node term_node ON node.nid = term_node.nid LEFT JOIN term_data term_data ON term_node.tid = term_data.tid WHERE (node.status = '1') AND (node.type IN ('image')) GROUP BY ORDER BY node.sticky DESC, node.created DESC LIMIT 0, 10 in /home/my/root/path/webroot/includes/database.mysql.inc on line 120.
interestingly, /galleries/14/ send me to the correct url; and, i can view the images from there.
so i'm thinking it's how this module is calling the overall gallery view?
You need an update to
You need an update to og_views.inc found in http://drupal.org/node/79790 and I'm pretty sure that will fix things for you. The og_galleries project page notes that link, but if you don't go through the project page you won't see the message :-)