Hi,
After playing with permissions, I ended up with a blank maintenance page and some other strange things.
looking at the logs I saw that kind of things each time Maintenance was accessed:
2009-08-24 20:24:18 +02:00 --- error: #0 /media/www/gallery3/modules/user/helpers/user.php(290): model_cache_Core::get('user', 3)
#1 /media/www/gallery3/modules/gallery/models/task.php(49): user_Core::lookup(3)
#2 /media/www/gallery3/modules/gallery/views/admin_maintenance.html.php(162): Task_Model->owner()
#3 /media/www/gallery3/system/libraries/Controller.php(74): include('/media/www/gall...')
#4 /media/www/gallery3/system/libraries/View.php(272): Controller_Core->_kohana_load_view('/media/www/gall...', Array)
#5 /media/www/gallery3/modules/gallery/libraries/MY_View.php(39): View_Core->render(false, false)
#6 /media/www/gallery3/system/libraries/View.php(244): View->render()
#7 /media/www/gallery3/themes/admin_default/views/admin.html.php(63): View_Core->__toString()
#8 /media/www/gallery3/system/libraries/Controller.php(74): include('/media/www/gall...')
#9 /media/www/gallery3/system/libraries/View.php(272): Controller_Core->_kohana_load_view('/media/www/gall...', Array)
#10 /media/www/gallery3/modules/gallery/libraries/MY_View.php(39): View_Core->render(false, false)
#11 /media/www/gallery3/system/libraries/View.php(244): View->render()
#12 /media/www/gallery3/modules/gallery/controllers/admin_maintenance.php(47): View_Core->__toString()
#13 [internal function]: Admin_Maintenance_Controller->index()
#14 /media/www/gallery3/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#15 [internal function]: Admin_Controller->__call('maintenance', Array)
#16 /media/www/gallery3/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#17 [internal function]: Kohana::instance()
#18 /media/www/gallery3/system/core/Event.php(209): call_user_func(Array)
#19 /media/www/gallery3/system/core/Bootstrap.php(55): Event::run('system.execute')
#20 /media/www/gallery3/index.php(91): require('/media/www/gall...')
#21 {main}
Looking at the first line [model_cache_Core::get('user', 3)], I started to check the database and realized that in the Users table no user with ID 3 was in there, and that the admin account that I was using has the ID 2.
Going further and checking the Tasks table, i saw that some tasks were last ran by a user with ID 3.
I then created a fake user (ID user at 7) and directly updated the ID at 3.
Magically using my admin account (ID 2), the maintenance page is back.
I'm not able to recall for sure what I've done for the user with ID 3 to disapear, but it seems that being able to "physically" deleting a user break down the relational model.
If it's not already the case, I would advise to have a status "Inactive/Active" in the User table instead of deleting the records.
I'll try to reproduce just to validate where it might come from.
In any case very nice job, and I can't wait to see the final release.
Cheers,
Bernie
Posts: 27300
please test against a experimantal verions as there has been lots of changes since B2.
FAQ: How do I upgrade?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Hi,
I upgraded to experimental, and behavior is the same.
I've been able to reproduce just by creating a user, then deleting it => blank pages when you click on the maintenance page.
Create a new user, update the id to the same value than the one of the deleted user => maintenance page is back.
Cheers,
Bernie
Posts: 27300
I am unable to reproduce they by creating a user and then deleting the user.
Please PM (Write to author ) login info so I can see what is going on.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team