[SOLVED] No sidebar for certain photo's

Slarioux
Slarioux's picture

Joined: 2009-08-08
Posts: 56
Posted: Thu, 2009-11-19 11:27

Heya,

Im running the latest code from git and for some reason, not all pictures have a sidebar. Compare these two:

http://beta.facetube.nl/index.php/Random_stuff/Photo_on_2009-09-28_at_22-43
http://beta.facetube.nl/index.php/York/Zondag/_MG_1854

I have only just figured out that it has to to with $comment->author() returning NULL (or actually, I found that out tonight) but I can't give more info at the moment (I'm at work).

On a related note: When things dont work like on this page, the system simply "dies" and gives no error, log or ANYTHING. Im sure gallery3 has some debug settings. Will they make a difference? It would allow me to look into this better or even submit a fix.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2009-11-20 05:47

Don't know.
This is interesting...
Viewing the source a page:
http://beta.facetube.nl/index.php/Random_stuff/1516844273.jpg
it just ends. View the page it has the word 'sidebar' in it ( my comment )
then view the source and search for 'sidebar'; nothing.

Most be some issue with the comment module. See if you can do a git pull.
if that does not work then manually remove ( after deactivating the comment module via the UI ) and do a manual add of the comment module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Slarioux
Slarioux's picture

Joined: 2009-08-08
Posts: 56
Posted: Fri, 2009-11-20 08:00

Never mind, I found the problem already. It's not a bug in the system even though it might be worth to look at it. It has to do with the database. The comments that don't work are pointing to authors that don't exist (author_id = 3 whereas the database only has admin (2) and guest (1)). So the system searches for author 3, doesn't find anything, it crashes.

I imported the comments for this database, but not the users, not thinking they'd be related. It's my fault. Sorry for taking your time!