Ayemae / Grawlix-Webcomic-CMS

PHP-based webcomic CMS
22 stars 5 forks source link

Page 0 Not Found?? #25

Open ogawaburukku opened 2 months ago

ogawaburukku commented 2 months ago

Hello, I'm rebooting my comic site with updated comic pages (http://fallen-comic.com) and to do this I went through my old comic pages, deleted them, and uploaded new ones. Well, when I did that and changed the site to go to the latest page at home, it now shows Page 0 Not Found and no comic pages show up. When I went to test the site's health it said there was no assets/data file. I tried making a blank data file, which made the test happy, but didn't change the Page 0 Not Found issue.

Not sure what to do. I'm not great with php but I know the comic files are in there and showing up in book view.

ogawaburukku commented 2 months ago

OH, okay. I figured it out. For some reason I had to set the time the pages were uploaded to like a couple of hours earlier than what time it actually was and that worked. My time zone setting is accurate so not sure what's going on but I think it believes I'm Pacific time when I'm Central time. So if anyone else has that problem, there you go.

eishiya commented 2 months ago

Is your version of Grawlix from this repository, or is it an older version/from elsewhere? I remember fixing this time zone issue when I and a couple of other people ran into it in 2020.

The fix is in index.php, make sure you have that $_db->setTimezone line in there:

if ( $milieu_list['timezone'] && $milieu_list['timezone'] != '')
{
date_default_timezone_set($milieu_list['timezone']);
$_db->setTimezone($milieu_list['timezone']);
}