Closed (fixed)
Project:
Gallery Assist
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2010 at 05:21 UTC
Updated:
23 Mar 2010 at 01:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commented+1 (without imagecache)
Comment #2
jcmc commentedHello Kate,
I have fixed the issues regarding the blocks from Gallery Assist.
I need your help. Can you test the module with the fixes.
Only if you find a time for that.
I dont know, why people not protest before about the GA-Block issue. Crazy.
I thank you in advance
If this is not possible for you let me know it please.
Regards and tahnks again
Juan Carlos
PS
I hope the issue is gon after the update to this version I send to you here.
I want release it as rc2 because the currently rc1 version is a little bugy. I have commited the fixes to the dev but the most users dont read the notes and download the wrong versions also is better I release a working version.
I give your opinion huge importance.
Comment #3
jcmc commentedhere the package.
Regards
Comment #4
fluxrider commentedhappy to do so Juan
will report back to you here as soon as i can.
Comment #5
fluxrider commentedHi Juan
Test installation running on mysql version 5.1.34
I loaded the version in #3 , activated the blocks , and I get the same warnings as I did previously , namely -
Sorry , but for me no blocks show.
Comment #6
jcmc commentedThanks Kate,
I am using in my dev machine the MySQL version 5.1.37 and at http://ga-6.x-1.9.puntolatinoclub.de the MySQL Server version 5.0.51a-3.
By me works.
In your installation you use a module that created the issue, maybe a access module.
I not use in my sql-statement the code DISTINCT(n.nid). Through the function db_rewrite_sql() other modules rewrite my statement, unfortunately with a wrong statement. The question is which. I find it someday. It is difficult to find something so, from one day to another.
Similar but much more critical case is http://drupal.org/node/682562.
The function db_rewrite_sql() must be used because I get data from the node table and:
The last thing I wanted was, you with such matters to harass.
Many thanks to you.
Juan Carlos
Comment #7
fluxrider commentedInteresting stuff Juan. I'll have a look for that module using that code . It may well be in my localtest install . I'll run that #3 again on the production site ( mysql 5.051a-3 same as you ) tonight when I leave work and see what happens.
"The last thing I wanted was, you with such matters to harass."
There is no problems , I'm liking it.
Comment #8
fluxrider commentedHmmmm. This issue has a long history indeed at drupal. I am still reading up on it all from as far back as drupal4.7 and it seems its followed through in every version since and hit some heavy duty modules.
BTW , I use taxonomy access only. Interesting stuff in this thread http://drupal.org/node/51850 and from it . I am definetly going to test my production site tonight because I am not getting these warnings there - just not all blocks showing , but no warnings at all. The test site is an Aquia drupal stack and I get the warnings there both before the module test in #3 and after.
be back here in 4 hours .
Comment #9
fluxrider commentedI took the database and files back to preupgrade , and started the whole process again. The site is working fine , but I cannot activate any blocks or warnings are logged. The above warnings happen for 'my galleries' block and 'galleries' block and for the gallery_block i get this -
warning: Invalid argument supplied for foreach() in /home/freckses/public_html/sites/all/modules/gallery_assist/gallery_assist.module on line 3101.
I am now running
Gallery Assist 6.x-1.x-dev (2010-Jan-29)
Gallery Assist ImageCache 6.x-1.1
Gallery Assist Lightboxes 6.x-1.3-rc1
Node Access modules used is Taxonomy Access
* The same thing occured under Gallery Assist 6.x-1.x-dev *
I had not noticed because I have the blocks off.
I'll put the site back on line without blocks now.
Back later on this .......
Comment #10
fluxrider commentedHi Juan
I'm not so sure the issue is 'caused ' per se by the access module I use ( taxonomy ) so much as the ordering of the queery. When the weekend comes and I get more time to play I am going to have a shot at rewriting the queery in gallery_assist.module for the block . The order in mysql5 is apparently critical. Could be wrong , but I'm going to play around with it in any case.
Worth reading is this thread and in particular this comment -
http://drupal.org/node/43735#comment-85162
kate
I should add here that I'm way out of my depth here and learning as I go. Just as far as I have read so far, these warnings in the past with other modules has had to do with the order . The rewrite is done after the 'from' so node needs to come first. Maybe it does in GA and I'm following a dead trail , I dont know yet, but I'm learning heaps so thats good :)
Edit - adding threads relevant to db rewrite sql stuff
drupal7 dev http://drupal.org/node/701744
Comment #11
fluxrider commentedComment #12
fluxrider commentedChanged title and version to accurately reflect topic
Comment #13
abhax commenteduser 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 'DISTINCT(n.nid) FROM gallery_assist_item p JOIN gallery_assist_translate' at line 1 query: SELECT p.pid, p.uid, p.tpath, p.opath, f.timestamp, t.ptitle, g.gid, g.data, n.title, n.type, DISTINCT(n.nid) FROM gallery_assist_item p JOIN gallery_assist_translated t ON p.pid = t.pid JOIN files f ON p.fid = f.fid JOIN gallery_assist g ON p.gid = g.gid JOIN node n ON g.nid = n.nid WHERE p.uid = 1 GROUP BY g.gref ORDER BY f.timestamp DESC in /var/www/drupal_website/modules/gallery_assist/gallery_assist.module on line 2778.
how do i fix it?
Comment #14
jcmc commentedHello people, Hello fluxrider,
can you test my first attempt to fix the DISTINCT issue???
I thank you in advance.
Of course if you can.
Regards
Juan Carlos
PS
I send to you that what should be the 1.9-rc3 version from GA.
Comment #15
jcmc commentedComment #16
arx-e commentedI had the same error message* whenever I tried to use the downloaded lightbox2.04 version uploaded in "gallery_assist_lightboxes/lightboxes/lightbox". The error message apeared at the top of the page after the title but the gallery and the lightbox did work despite the error message. Although with some problems. Double X (close) icons in firefox e.a. I saw via firebug that the system was loading the css files from both the lightbox subfolder and the lightbox2 module.
While looking at a gallery_assist_lightboxes file named "for Kate" somewhere in these posts I saw that empty lightbox folder and I gave it a try. And it worked!
Just an empty "lightbox" folder in gallery_assist_lightboxes/lightboxes/ made the whole system work for me (with Lightbox2 module already installed).
By the way that site where the documentation, examples etc links show to is not working "Site off-line" it says for at least a few days now.
* The error message: "file_get_contents(sites/all/modules/gallery_assist_lightboxes/lightboxes/lightbox/js/scriptaculous.js?load=effects,builder) [function.file-get-contents]: failed to open stream: No such file or directory in /home/freckses/public_html/includes/locale.inc on line 1689."
Comment #17
anandax commentedHi,
I have tested the rc3 (gallery_assist-BACKUP-01.03.2010.tar_.gz)
With rc2 I get this error when i try to open the gallery in the profile
1. Rc3 resolves this problem, but only the admin can view the gallery in the profile (http://mydomain.com/user/X/user_galleries).
2. It seems, that "Gallery Public Status" does not work correctly. Anonymous user can see the gallery (xy, see below) of the userX although user X set his gallery as "private".
Settings for 2.:
Permission: Anonymous can see "gallery assist content"
../admin/settings/gallery_assist# --> "Gallery Public Status:" --> privat
node/xy/edit --> Gallery Public Status: privat
Possible, that gallery assist has a conflict with my used "Nodeaccess 6.x-1.3 " module! Normally i have a tab with "grant" in my content types (article and so one). Only gallery did not have this tab!
Regards Jakob
Comment #18
jcmc commentedHello Jacob,
I will investigate the issue "Nodeaccess and GA" first.
To satisfy your interest to the issue "xy" the whole status functionality is not implemented in this version, only the form is created.
It will be implemented by the "coming soon" release. :-)
About "xy". I have a problem to understand the issue. Maybe it is the filosophy of GA what people not understand. It is caused (my opinion) through the missing of information, documentation.
Can you explain what you want/need or what do you suggest/expect? (In Deutsch auch)
I thank you in advance
Regards
Juan Carlos
Comment #19
anandax commentedHello Juan Carlos,
in german is better to explain for me.
Erstmal Kompliment für das Modul. Ich habe lange nach einem vernünftigen Galerie-Modul gesucht und bin letztendlich bei GA gelandet.
Auf die Implementierung "Einstellungen für diese Galerie" ("Veröffentlichung") bin Ich gespannt.
So wie Ich das sehe kann die Einsicht auf das Galerie-Node aktuell nur über Berechtigungen verhindert werden und freu mich deshalb auf die neuen Veröffentlichungsoptionen.
Eventuell kann man das sogar mit Nodeacces kombinieren, so dass Benutzer nur bestimmten Benutzern erlauben die Galerie zu sehen
Hier ein paar Anregungen und Wünsche für das Modul:
Für galerie würde Ich gerne den Standard-Editor nutzen, gerade für das Nachbearbeiten
"Zeige diese Galerie als". Sind alles Optionen, die einen normlen User verwirren. Für Admin oder versierte User aber eine tolle Option!
In meinder Testumgebung waren nur 2 MB erlaubt. Bei Klick auf Aktualisieren ist aber nichts passiert und es kam keine Meldung
Super finde Ich auch, das GA im Gegensatz zu den anderen Gallerien nicht unbedingt zusätzliche Module erfordert und trotzdem schon sehr gut aussieht!
Gibt es ein Handbuch für GA? Gerne helfe Ich auch dabei, ein Handbuch zu schreiben bzw. zu erweitern!
Deine Seite ist gerade offline. Wann geht die wieder online?
Gruss Jakob
Comment #20
roball commentedTo find proper topics in the future, different topics should not be discussed in the same thread. anandax, you should better open a separate ticket for each of your requests/offers.
This does not need to be addresses by Gallery Assist. I would recommend to install Better Formats and set the default input format for the "Gallery" node type to "Filtered HTML", while the global default input format (affecting all other node types) is set to "Full HTML". That's the way I have done it.
Comment #21
anandax commentedYou are right. I will make a new topic the next time!
Thanx for solution!
Comment #22
jcmc commentedthe issue is allready fixed.