Rating does not work, javascript problem ?
|
petri
![]()
Joined: 2005-12-15
Posts: 99 |
Posted: Wed, 2009-07-01 09:51
|
|
Hello, I know there are some posts about rating problems but I could not find any asnwers over there. I can see the stars, the mouseover works, I can see the javascript link but nothing happens when I click. any idea how to get that back to work ? ------------------- |
|
| Login or register to post comments |


Posts: 9025
Probably some conflict with the train wreck that x_treme theme is. Try Carbon, it has the same over all look, but is smaller and simpler
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Hi Nivekiam,
thank you for your answer,
I am not using x_treme anymore, too many bugs for 2.3. I think I will go for PGLightbox, there are a few bugs for 2.3 but I can manage.
The problem with the rating is that it is not working on ANY of my themes any more.
And it was before I installed X_treme.
If I have to uninstall x_treme, what should I delete in the modules ? Knowing that I already uninstalled and reinstalled the rating module.
In other words, what file did X_treme corrupt during the installation ?
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
First switch to the Matrix theme. Does the ratings module work?
Can you post a link to your site?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Here is a link to a matrix theme :
http://www.coquille.org/gallery/cellpics/
and a link to PGlightbox :
http://www.coquille.org/gallery/reports/srilanka/blackandwhite/263.jpg.html
and to Hybrid
http://www.coquille.org/gallery/voyages/2007/china/dalian/
PG theme
http://www.coquille.org/gallery/friends/2003/patrick/01.jpg.html?g2_enterAlbum=0
there are so many themes installed on my gallery because I am changing the layout, so I installed all those to see which fits the best.
For the moment, it's PG lightbox... I just have this rating problem...
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
Thanks for the links. Now I can see that yes, it's a javascript issue. Don't know how to fix it. If you install the Web Developer toolbar in Firefox you'll see that it's galleryAuthToken is not defined
Still not sure how to fix it or what's causing it as everything I look at in your install looks fine. But when comparing your Gallery with my Gallery and looking at the source of the page here's what mine looks like:
And here's what your's looks like:
I'd just double check that your files are intact:
FAQ: How can I make sure that my installation files are all intact?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Thank you for the tip
I ran the system check and here are the result :
Gallery file integrity
1) Missing files 1453 :
all the missing files are the file from x-treme theme that should go (and have been put) in the module folders. I don't understand why they should be in the x-treme folder, here is a sample :
I don't know if this is a bug and what I should do about it.
2) Old files :
I have more than 5000 old files
but I don't know how to delete them, I could not get the script to work. When I click on it, it gets me back to the updater and when I download it, it's just an html file....
NOTE : I have some info note at the top of the page :
hope this info helps you help me
What if the problem is a URL rewrite problem, could that be it ?
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
There were no modified files?
Just to be sure, can you run the file integrity check again, this time copying the list of files into separate text files and attach them to another post? You might have to zip them to get them posted.
I don't think it's a URL Rewrite issue.
As for the script, that's something you need to run on the server. I'd have to run through it again myself to see exactly what it outputs, but I'm pretty sure you need SSH access to run it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Yes there were modified files, 9 of them, (none of them about rating) I got the originals, published and now there is not mention of modified files.
But the problem is still the same...
Here are the text files. Missing and old files.
I think I don't have SSH access to my server, I might have to ask my hoster to do it then ? But how can I get hold of the script ?
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
Please put Gallery into debug mode and let me know when it's done.
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
it's done
(thank you Nivekiam, I appreciate your help...)
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
I think I found it, didn't see this before:
AHAH
Try clearing your template cache:
FAQ: How can I clear cached data?
Right now, it's not loading some crucial javascript that it needs to load.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Thanx for the tip but smth went wrong
I put the debug off, tried to rate....no change...
I just put the debug on again...
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
Your permissions are not right.
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Hello
sorry for my late repls
I had to ask my host to repair some permission, as it did not work and, so now I cleared the cache data.
I deleted template and cache files, all operation are successful.
but rating still not works...
I put the side back in debug mode
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
Can you PM me login details so I can take a closer look? If you create a user account for me, please add them to the Site Admin group.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9025
Got your PM, took a look and dug around. I didn't make many changes, tried uninstalling and reinstalling the ratings plugin.
I would try uninstalling, not just deactivating any and all plugins and themes you don't need or use.
I would also try uninstalling the PGLightBox theme, since that seems to be tossing tons of errors and the URL Rewrite plugin. Then just reinstall the URL Rewrite plugin and see if that improves things.
I didn't do that because it would be making major changes to your Gallery install. But let's narrow this problem down and rule out any non-necessary plugin. I would also uninstall:
Custom Styles
Color Packs
Lightbox
Statistics
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
Ok thank you nivekiam,
I will do that and let you know
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 99
I have uninstalled all themes and a few modules.
I get this error when I try to change the root album + all sub allbums to matrix theme
if I uncheck "+all sub-album" the album change its theme....
Is this another permission problem ?
I checked with my host to see if there where any script rewriting user login but he said that It's a gallery problem...
Posts: 9025
Most likely, yes. Try changing to database locking instead of file locking. Go to Site Admin > General (should be first page) and on that page you can change to database locking.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 99
YESSSSSSSSSSSSSSS !
Changing to database locking solved the permission problem.
So As I wrote earlier, I uninstalled all themes and unnecessary modules.
Uninstalled URL rewrite and rating, installed them again
burt the problem was still there.... untill I realised I still had files in : modules/rating/templates/local.....
I deleted "local" folder, and now it works... so it's one the the theme's customized rating templates that was corrupting, I guess it's x-treme but it could be only for me...
so I guess I could have done that a little sooner and we'll both have saved time
I will now reinstall the PG lightbox and the modules I need....one by one, trying all modules one after the other, so next time I know which one is corrupting the website
Thank you again Nivekiam, I appreciate your great help !
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 5.0.68, lock.system=flock
Operating system = Linux
Posts: 9025
glad it's working
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 64
Thanks to both of you so much for this thread! I am using PG xtreme and love it, it seems to be working very well for me on g2.3. However, the ratings were not registering when clicked. I renamed the modules/rating/templates/local directory so it would not be used, deleted the template cache, and no bingo, the ratings appear and work perfectly!
-----------------------------
www.lightpainter.co.uk
Posts: 1
And I second the thanks - did the same as lightpainter and voila!
Relief. (Note: this was on x_treme theme.)