access_intents issues

Sad Eeyore

Joined: 2014-01-25
Posts: 3
Posted: Sat, 2014-01-25 22:54

I keep getting an error when I try to upload a new gallery:

@todo ITEM_ALREADY_ADDED 51081

Stack trace:

Quote:
exception 'Exception' with message '@todo ITEM_ALREADY_ADDED 51081' in /var/www/modules/gallery/helpers/access.php:381
Stack trace:
#0 /var/www/modules/gallery/helpers/gallery_event.php(122): access_Core::add_item(Object(Item_Model))
#1 /var/www/modules/gallery/helpers/module.php(402): gallery_event_Core::item_created(Object(Item_Model))
#2 /var/www/modules/gallery/models/item.php(416): module_Core::event('item_created', Object(Item_Model))
#3 /var/www/modules/server_add/controllers/server_add.php(253): Item_Model_Core->save()
#4 [internal function]: Server_Add_Controller::add(Object(Task_Model))
#5 /var/www/modules/gallery/helpers/task.php(90): call_user_func_array('Server_Add_Cont...', Array)
#6 /var/www/modules/server_add/controllers/server_add.php(122): task_Core::run('81')
#7 [internal function]: Server_Add_Controller->run('81')
#8 /var/www/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana_Core::instance(NULL)
#10 /var/www/system/core/Event.php(208): call_user_func_array(Array, Array)
#11 /var/www/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /var/www/index.php(116): require('/var/www/an-...')
#13 {main}

So I tracked it down to the insert into the access_intents table in the DB so I emptied it and then I can upload another gallery, but then it stops working after that and I need to go through removing the entries. Tried restarting everything, tried all the fixes and rebuilding and what have you. Nothing seems to fix it right.

So, what is the access_intents table anyway? I tried looking for docs on it, couldn't really find anything useful. I assume it handles permissions, not sure. Why does gallery not use the auto_increment properly? Is there anyway to fix this? And is there a way to fix the access_intents table so it is correct?

Thanks,
Sad Eeyore