ORM Validation has failed for items model

ggrego

Joined: 2006-05-08
Posts: 33
Posted: Mon, 2013-09-09 04:59

Been working this for a few days now. I've exhausted my brain what little I know. Can't figure out why I'm getting this ORM Validation Error.

Also after I upgraded to Gallery 3.0.9 everyone including myself has to login twice. For some reason it does that but you can still login just the first time it will give you an invalid username and password.

It goes into maintenance mode and I can take it out but cannot figure how to fix the ORM Validation Error.

I've attached and included the error log.

"Quote"
Task Fix your Gallery started (task id 883)
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/models/item.php(887): ORM_Core->validate(NULL)
#2 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/system/libraries/ORM.php(778): Item_Model_Core->validate()
#3 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/libraries/MY_ORM.php(34): ORM_Core->save()
#4 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/libraries/ORM_MPTT.php(79): ORM->save()
#5 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/models/item.php(533): ORM_MPTT_Core->save()
#6 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/models/item.php(305): Item_Model_Core->save()
#7 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/helpers/gallery_task.php(692): Item_Model_Core->relative_path()
#8 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/helpers/task.php(90): gallery_task_Core::fix(Object(Task_Model))
#9 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('gallery_task::f...', Array)
#10 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/modules/gallery/controllers/admin.php(62): Admin_Maintenance_Controller->run('883')
#11 [internal function]: Admin_Controller->__call('883')
#12 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Array, Array)
#13 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/system/core/Event.php(208): Kohana_Core::instance('schedule', Array)
#14 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /hsphere/local/home/xxxxxxxxxxx/xxxxxxxxxxxx.com/index.php(116): require('/hsphere/local/...')
#16 {main}
"Unquote"

If someone can help it would be greatly appreciated.

Ggrego
---------
Ggrego...
Miami, Florida
Freedom Ain't Free...
http://www.ggrego.com

 
ggrego

Joined: 2006-05-08
Posts: 33
Posted: Fri, 2013-09-13 11:26

Can anyone answer or help me with this? I will be very grateful.

Thankx...

---------
Ggrego...
Miami, Florida
Freedom Ain't Free...
http://www.ggrego.com

 
ggrego

Joined: 2006-05-08
Posts: 33
Posted: Mon, 2013-10-14 13:39

I finally figured out what was causing the ORM Validation. I deleted a video file in Gallery but it was still resident in my database. Once I
delete it from the database I no longer got the ORM Validation Error message.

Ggrego...
---------
Ggrego...
Miami, Florida
Freedom Ain't Free...
http://www.ggrego.com

 
w91803
w91803's picture

Joined: 2009-08-29
Posts: 67
Posted: Sat, 2013-11-16 16:07
ggrego wrote:
I finally figured out what was causing the ORM Validation. I deleted a video file in Gallery but it was still resident in my database. Once I
delete it from the database I no longer got the ORM Validation Error message.

Ggrego...

Hi Ggrego,

I have the same problem:

Quote:
Task Fix your Gallery started (task id 183)
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/hktaitung/public_html/gallery309/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/hktaitung/public_html/gallery309/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/hktaitung/public_html/gallery309/modules/gallery/models/item.php(887): ORM_Core->validate(NULL)
#2 /home/hktaitung/public_html/gallery309/system/libraries/ORM.php(778): Item_Model_Core->validate()
#3 /home/hktaitung/public_html/gallery309/modules/gallery/libraries/MY_ORM.php(34): ORM_Core->save()
#4 /home/hktaitung/public_html/gallery309/modules/gallery/libraries/ORM_MPTT.php(79): ORM->save()
#5 /home/hktaitung/public_html/gallery309/modules/gallery/models/item.php(533): ORM_MPTT_Core->save()
#6 /home/hktaitung/public_html/gallery309/modules/gallery/models/item.php(305): Item_Model_Core->save()
#7 /home/hktaitung/public_html/gallery309/modules/gallery/helpers/gallery_task.php(692): Item_Model_Core->relative_path()
#8 [internal function]: gallery_task_Core::fix(Object(Task_Model))
#9 /home/hktaitung/public_html/gallery309/modules/gallery/helpers/task.php(90): call_user_func_array('gallery_task::f...', Array)
#10 /home/hktaitung/public_html/gallery309/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('183')
#11 [internal function]: Admin_Maintenance_Controller->run('183')
#12 /home/hktaitung/public_html/gallery309/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /home/hktaitung/public_html/gallery309/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /home/hktaitung/public_html/gallery309/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /home/hktaitung/public_html/gallery309/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /home/hktaitung/public_html/gallery309/index.php(116): require('/home/hktaitung/...')
#19 {main}

I removed a video, but the problem still is the same.
What is the field name that you removed in your database? Thanks........