Unable to delete album
TMacSC
Joined: 2014-03-19
Posts: 10 |
![]() |
It seems there is an issue in data lengths for different columns in the database. I was having an issue with one of my albums due to (I think now) a very long title. This seems to be confirmed by the fact that I cannot delete said album. Is there any way to delete this album manually (with a manual query?) Here's the error that Gallery 3 reported: Host name: timserve.local 22 } SYSPATH/libraries/Database.php[ 272 ] » Database_Mysqli_Core->query_execute( arguments ) MODPATH/gallery/libraries/MY_Database.php[ 48 ] » Database_Core->query( arguments ) SYSPATH/libraries/Database_Builder.php[ 973 ] » Database->query( arguments ) SYSPATH/libraries/ORM.php[ 804 ] » Database_Builder_Core->execute( arguments ) MODPATH/gallery/libraries/MY_ORM.php[ 34 ] » ORM_Core->save() MODPATH/gallery/libraries/ORM_MPTT.php[ 79 ] » ORM->save() MODPATH/gallery/models/item.php[ 533 ] » ORM_MPTT_Core->save() MODPATH/gallery/models/item.php[ 305 ] » Item_Model_Core->save() MODPATH/gallery/models/item.php[ 170 ] » Item_Model_Core->relative_path() MODPATH/gallery/models/item.php[ 94 ] » Item_Model_Core->file_path() MODPATH/gallery/libraries/ORM_MPTT.php[ 96 ] » Item_Model_Core->delete() MODPATH/gallery/models/item.php[ 98 ] » ORM_MPTT_Core->delete() MODPATH/gallery/controllers/quick.php[ 104 ] » Item_Model_Core->delete() {PHP internal call} » Quick_Controller->delete( arguments ) SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( arguments ) {PHP internal call} » Kohana_Core::instance( arguments ) SYSPATH/core/Event.php[ 208 ] » call_user_func_array( arguments ) APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments ) DOCROOT/index.php[ 116 ] » require( arguments ) |
|
TMacSC
Joined: 2014-03-19
Posts: 10 |
![]() |
I was able to delete the album by manually changing the name in the items table to something shorter. This condition should probably be checked for, though. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Not sure how you added the title but glag you got it sorted. Dave |
|
TMacSC
Joined: 2014-03-19
Posts: 10 |
![]() |
I used the Aperture Export plugin, which uses the REST module to insert images. At the database level, having title, relative_path_cache, and relative_url_cache all be varchar(255) is dangerous, since the URL encoding makes the string longer. Maybe the REST module should be updated to handle this case? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I have never used it. Your welcome to fix it and submit your changes. Dave |
|