collectiveaccess / pawtucket2

Pawtucket Improved
GNU General Public License v3.0
85 stars 76 forks source link

Fatal Error When Root Node is Accessible #88

Open miqrogroove opened 1 year ago

miqrogroove commented 1 year ago

After setting the Places root node Access level to "accessible to public" in Providence, then attempting to visit /Detail/places/1 in Pawtucket results in a status 500 and the following log entry:

PHP Fatal error:  Uncaught Error: Call to a member function getHierarchyAncestors() on null in app/controllers/DetailController.php:455
Stack trace:
#0 app/lib/Controller/RequestDispatcher.php(273): DetailController->__call()
#1 app/lib/Controller/AppController.php(113): RequestDispatcher->dispatch()
#2 index.php(124): AppController->dispatch()
#3 {main}
  thrown in app/controllers/DetailController.php on line 455

Using version 1.7.15.

I haven't figured out why exactly, but the root node type was NULL in the database. This is the "DACS Coverage Authority" root node. Changing the node type through Providence causes the error to disappear.