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

Popular by <x> is seemingly not working #713

Closed
Jaika1 opened this issue Mar 27, 2020 · 7 comments
Closed

Popular by <x> is seemingly not working #713

Jaika1 opened this issue Mar 27, 2020 · 7 comments
Labels

Comments

@Jaika1
Copy link

Jaika1 commented Mar 27, 2020

This is occurring an a relatively new shimmie install of only a few days old, but it appears that only the popular by tabs are not working. All they do is go to a white screen, however all other pages are working splendidly. Changing themes didn't do anything either, currently settled on Danbooru2. This is using the current latest version of shimmie with mysql and apache.

@DanielOaks
Copy link
Contributor

Hm, when using SQLite I get an SQL syntax error instead. Weird, I'll see if I can fix that for me if Shish doesn't get to it first. Maybe we should have a test that just grabs each of those pages in order and asserts a 200 code to confirm they work properly?

@shish shish added the Bug label Mar 28, 2020
@Jaika1
Copy link
Author

Jaika1 commented Mar 28, 2020

Sounds good, I'll be ready to give my experience when a potential fix is ready

@Jaika1
Copy link
Author

Jaika1 commented Mar 31, 2020

Update, it seems like the pages for popular by day and by month are now both appearing, but cycling through past days or months doesn't turn up any results, and going under the amount of days/months tracked brings us back to the white page, which might not be the most user friendly? I'm guessing that things might not be appearing due to a threshold?

@MetallicAchu
Copy link
Contributor

Update, it seems like the pages for popular by day and by month are now both appearing, but cycling through past days or months doesn't turn up any results, and going under the amount of days/months tracked brings us back to the white page, which might not be the most user friendly? I'm guessing that things might not be appearing due to a threshold?

Popular by X is relying on votes, does your pictures have any votes to them?

@SpannerWZ
Copy link

in my case popular by month and year gives up a error 500 in my release version and in my git pull version im getting this error:

Fatal error: Uncaught TypeError: Argument 1 passed to Image::by_id() must be of the type int, string given, called in C:\xampp\htdocs\shimmie\ext\numeric_score\main.php on line 155 and defined in C:\xampp\htdocs\shimmie\core\imageboard\image.php:103 Stack trace: #0 C:\xampp\htdocs\shimmie\ext\numeric_score\main.php(155): Image::by_id('1') #1 C:\xampp\htdocs\shimmie\core\send_event.php(113): NumericScore->onPageRequest(Object(PageRequestEvent)) #2 C:\xampp\htdocs\shimmie\index.php(82): send_event(Object(PageRequestEvent)) #3 {main} thrown in C:\xampp\htdocs\shimmie\core\imageboard\image.php on line 103

@shish
Copy link
Owner

shish commented Jul 31, 2020

b1f37f1 should fix that last issue

@SpannerWZ
Copy link

it worked, had to comment the original line though, thanks a lot!

@shish shish closed this as completed Jan 3, 2024
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

5 participants