Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error instead of thumbnail for empty circles #102

Closed
jeroenrnl opened this issue Jan 22, 2018 · 1 comment
Closed

Error instead of thumbnail for empty circles #102

jeroenrnl opened this issue Jan 22, 2018 · 1 comment
Assignees
Labels

Comments

@jeroenrnl
Copy link
Owner

When creating a new circle, and no people are yet assigned to it, the following error is displayed instead of a thumbnail:

#1 /var/www/photo/htdocs/classes/zophTable.inc.php(633): db\db::query(Object(db\select))
#2 /var/www/photo/htdocs/classes/circle.inc.php(174): zophTable::getRecordsFromQuery(Object(db\select))
#3 /var/www/photo/htdocs/classes/zophTable.inc.php(687): circle->getAutoCover('highest')
#4 /var/www/photo/htdocs/templates/default/blocks/view_thumbs.tpl.php(29): zophTable->displayAutoCover('highest')
#5 /var/www/photo/htdocs/classes/template/template.inc.php(125): include('/var/www/photo/...')
#6 /var/www/photo/htdocs/classes/template/template.inc.php(212): template\template->__toString()
#7 /var/www/photo/htdocs/templates/default/organizer.tpl.php(60): template\template->displayBlocks()
#8 /var/www/photo/htdocs/classes/template/template.inc.php(125): include('/var/www/photo/...')
#9 /var/www/photo/htdocs/people.php(178): template\template->__toString()
#10 {main}"
SELECT p.photo_id AS photo_id, ar.rating AS rating, count(person_id) AS count, ar.rating FROM zoph_photos AS p INNER JOIN zoph_photo_people AS ppl ON p.photo_id=ppl.photo_id INNER JOIN zoph_view_photo_avg_rating AS ar ON p.photo_id=ar.photo_id WHERE (ppl.person_id IN ()) GROUP BY photo_id ORDER BY count DESC, ar.rating DESC LIMIT 1;SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) GROUP BY photo_id ORDER BY count DESC, ar.rating DESC LIMIT 1' at line 1
<b>Fatal Error</b>: SQL failed <tt>db.inc.php</tt>: 159.<br>
fatal error```
@jeroenrnl jeroenrnl added the bug label Jan 22, 2018
@jeroenrnl jeroenrnl self-assigned this Jan 22, 2018
@jeroenrnl jeroenrnl mentioned this issue Jan 22, 2018
@jeroenrnl
Copy link
Owner Author

38165cb

jeroenrnl pushed a commit that referenced this issue Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant