Default and new pages do not show in the Pages list
I'm on 1.7.42.1 and after a fresh install, the Home and Typography pages do not show in the Pages list and new pages I add are also not visible. I can edit them by manipulating the URL (ex: https://example.com/admin/pages/testpage). Only the Root page shows.
Here's what the permissions for those files look like:
root@grav-5c58794b68-r2jxl:/var/www/grav/user/pages# ls -la
total 4
drwsrwsr-x 1 xyz xyz 68 Jun 21 20:49 .
drwsrwsr-x 1 xyz xyz 72 Jun 20 15:06 ..
drwsrwsr-x 1 xyz xyz 20 Jun 20 15:06 01.home
drwsrwsr-x 1 xyz xyz 20 Jun 20 15:06 02.typography
drwxrwsr-x 1 xyz xyz 20 Jun 21 20:49 03.testpage
-rw-rw-r-- 1 xyz xyz 43 Jun 21 17:36 root.md
That user is what grav is running under:
root@grav-5c58794b68-r2jxl:/var/www/grav/user/pages# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 4032 3020 ? Ss Jun20 0:00 /bin/bash /init-admin
root 6956 0.0 0.0 219816 11704 ? Ss Jun20 0:06 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
root 6971 0.0 0.0 8568 904 ? Ss Jun20 0:00 nginx: master process /usr/sbin/nginx
xyz 6972 0.0 0.0 12264 7200 ? S Jun20 0:09 nginx: worker process
xyz 6973 0.0 0.0 12288 7400 ? S Jun20 0:03 nginx: worker process
xyz 6974 0.0 0.0 12292 7252 ? S Jun20 0:00 nginx: worker process
xyz 6975 0.0 0.0 11888 5436 ? S Jun20 0:00 nginx: worker process
xyz 6976 0.0 0.0 12292 6972 ? S Jun20 0:00 nginx: worker process
xyz 6978 0.0 0.0 11888 5436 ? S Jun20 0:00 nginx: worker process
xyz 6979 0.0 0.0 11996 7024 ? S Jun20 0:00 nginx: worker process
xyz 6980 0.0 0.0 12276 7332 ? S Jun20 0:00 nginx: worker process
root 6986 0.0 0.0 3760 2136 ? Ss Jun20 0:00 /usr/sbin/cron
root 6987 0.0 0.0 2428 516 ? S Jun20 0:05 tail -f /dev/null
xyz 41239 0.6 0.1 222700 40184 ? S 20:47 0:01 php-fpm: pool www
root 41240 0.0 0.0 4272 3444 pts/0 Ss 20:47 0:00 bash
xyz 41253 0.6 0.1 222760 42736 ? S 20:47 0:01 php-fpm: pool www
xyz 41308 0.1 0.0 222364 29884 ? S 20:50 0:00 php-fpm: pool www
root 41330 0.0 0.0 6760 2956 pts/0 R+ 20:51 0:00 ps aux
I was able to trace this down to what appears to be a browser issue. This is a fresh site on a fresh domain that I was accessing in Firefox. Going to Pages did not show the expected default pages, but by doing the following steps, I was able to see the pages:
- Select all of the options in the filter (this step may not be necessary)
- Clicked Reset to Defaults in the Page filter
I'll leave this open for further troubleshooting but if it's a local one-off issue that no one else has seen I'm fine with closing it as not reproducible.