Delete Image Issue

Defiance
Defiance's picture

Joined: 2009-04-06
Posts: 5
Posted: Mon, 2009-04-06 04:05

When you click the trash can icon on the image with the mouse over it removes the image giving the following error.

Exception

core/helpers/access.php [176]:

@todo FORBIDDEN
Stack Trace

* core/helpers/access.php [108]:

access_Core::forbidden( )

* core/controllers/quick.php [99]:

access_Core::required( edit, Item_Model Object
(
[children:protected] => items
[relative_path:private] =>
[view_restrictions:private] =>
[rules] => Array
(
[name] => required|length[0,255]
[title] => required|length[0,255]
[description] => length[0,65535]
)

[model_name:private] => item
[has_one:protected] => Array
(
)

[belongs_to:protected] => Array
(
)

[has_many:protected] => Array
(
)

[has_and_belongs_to_many:protected] => Array
(
)

[load_with:protected] => Array
(
)

[object:protected] => Array
(
[album_cover_item_id] =>
[created] =>
[description] =>
[height] =>
[id] => 0
[left] => 0
[level] => 0
[mime_type] =>
[name] =>
[owner_id] =>
[parent_id] => 0
[resize_height] =>
[resize_width] =>
[resize_dirty] =>
[right] => 0
[thumb_height] =>
[thumb_width] =>
[thumb_dirty] =>
[title] =>
[type] =>
[updated] =>
[view_count] =>
[width] =>
[rand_key] =>
[sort_column] =>
[sort_order] =>
[view_1] => 0
[view_2] => 0
)

[changed:protected] => Array
(
)

[related:protected] => Array
(
)

[loaded:protected] =>
[saved:protected] =>
[sorting:protected] => Array
(
[id] => asc
)

[object_relations:protected] => Array
(
)

[changed_relations:protected] => Array
(
)

[object_name:protected] => item
[object_plural:protected] => items
[table_name:protected] => items
[table_columns:protected] => Array
(
[album_cover_item_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[created] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[description] => Array
(
[type] => string
[length] => 2048
[null] => 1
)

[height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[sequenced] => 1
)

[left] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[level] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[mime_type] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[name] => Array
(
[type] => string
[length] => 255
[null] => 1
)

[owner_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[parent_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[resize_height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[resize_width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[resize_dirty] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[right] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[thumb_height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[thumb_width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[thumb_dirty] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[title] => Array
(
[type] => string
[length] => 255
[null] => 1
)

[type] => Array
(
[type] => string
[length] => 32
)

[updated] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[view_count] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[rand_key] => Array
(
[type] => float
[null] => 1
)

[sort_column] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[sort_order] => Array
(
[type] => string
[exact] => 1
[length] => 4
[null] => 1
)

[view_1] => Array
(
[type] => int
[max] => 127
[unsigned] =>
)

[view_2] => Array
(
[type] => int
[max] => 127
[unsigned] =>
)

)

[ignored_columns:protected] =>
[primary_key:protected] => id
[primary_val:protected] => name
[foreign_key:protected] => Array
(
)

[table_names_plural:protected] => 1
[reload_on_wakeup:protected] => 1
[db:protected] => Database Object
(
[_table_names:protected] => Array
(
[{access_caches}] => access_caches
[{access_intents}] => access_intents
[{comments}] => comments
[{exif_keys}] => exif_keys
[{exif_records}] => exif_records
[{graphics_rules}] => graphics_rules
[{groups}] => groups
[{groups_users}] => groups_users
[{incoming_translations}] => incoming_translations
[{items}] => items
[{items_tags}] => items_tags
[{logs}] => logs
[{messages}] => messages
[{modules}] => modules
[{outgoing_translations}] => outgoing_translations
[{permissions}] => permissions
[{search_records}] => search_records
[{sessions}] => sessions
[{tags}] => tags
[{tasks}] => tasks
[{themes}] => themes
[{users}] => users
[{vars}] => vars
[{watermarks}] => watermarks
)

[config:protected] => Array
(
[benchmark] =>
[persistent] =>
[connection] => Array
(
[type] => mysql
[user] => bspiller_gallery
[pass] =>
[host] => localhost
[port] =>
[socket] =>
[database] => bspiller_gallery
)

[character_set] => utf8
[table_prefix] =>
[object] => 1
[cache] =>
[escape] => 1
)

[driver:protected] => Database_Mysql_Driver Object
(
[link:protected] => Resource id #25
[db_config:protected] => Array
(
[benchmark] =>
[persistent] =>
[connection] => Array
(
[type] => mysql
[user] => bspiller_gallery
[pass] =>
[host] => localhost
[port] =>
[socket] =>
[database] => bspiller_gallery
)

[character_set] => utf8
[table_prefix] =>
[object] => 1
[cache] =>
[escape] => 1
)

[tables_cache:private] => Array
(
[0] => access_caches
[1] => access_intents
[2] => comments
[3] => exif_keys
[4] => exif_records
[5] => graphics_rules
[6] => groups
[7] => groups_users
[8] => incoming_translations
[9] => items
[10] => items_tags
[11] => logs
[12] => messages
[13] => modules
[14] => outgoing_translations
[15] => permissions
[16] => search_records
[17] => sessions
[18] => tags
[19] => tasks
[20] => themes
[21] => users
[22] => vars
[23] => watermarks
)

[fields_cache:private] => Array
(
[vars] => Array
(
[id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[sequenced] => 1
)

[module_name] => Array
(
[type] => string
[length] => 64
)

[name] => Array
(
[type] => string
[length] => 64
)

[value] => Array
(
[type] => string
[null] => 1
)

)

[modules] => Array
(
[id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[sequenced] => 1
)

[name] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[version] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

)

[users] => Array
(
[id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[sequenced] => 1
)

[name] => Array
(
[type] => string
[length] => 32
)

[full_name] => Array
(
[type] => string
[length] => 255
)

[password] => Array
(
[type] => string
[length] => 64
)

[login_count] => Array
(
[type] => int
[max] => 2147483647
[unsigned] => 1
)

[last_login] => Array
(
[type] => int
[max] => 2147483647
[unsigned] => 1
)

[email] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[admin] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[guest] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[hash] => Array
(
[type] => string
[exact] => 1
[length] => 32
[null] => 1
)

[url] => Array
(
[type] => string
[length] => 255
[null] => 1
)

[locale] => Array
(
[type] => string
[exact] => 1
[length] => 10
[null] => 1
)

)

[items] => Array
(
[album_cover_item_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[created] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[description] => Array
(
[type] => string
[length] => 2048
[null] => 1
)

[height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[sequenced] => 1
)

[left] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[level] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[mime_type] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[name] => Array
(
[type] => string
[length] => 255
[null] => 1
)

[owner_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[parent_id] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[resize_height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[resize_width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[resize_dirty] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[right] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
)

[thumb_height] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[thumb_width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[thumb_dirty] => Array
(
[type] => int
[max] => 127
[unsigned] =>
[null] => 1
)

[title] => Array
(
[type] => string
[length] => 255
[null] => 1
)

[type] => Array
(
[type] => string
[length] => 32
)

[updated] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[view_count] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[width] => Array
(
[type] => int
[max] => 2147483647
[unsigned] =>
[null] => 1
)

[rand_key] => Array
(
[type] => float
[null] => 1
)

[sort_column] => Array
(
[type] => string
[length] => 64
[null] => 1
)

[sort_order] => Array
(
[type] => string
[exact] => 1
[length] => 4
[null] => 1
)

[view_1] => Array
(
[type] => int
[max] => 127
[unsigned] =>
)

[view_2] => Array
(
[type] => int
[max] => 127
[unsigned] =>
)

)

)

)

[link:protected] => Resource id #25
[select:protected] => Array
(
)

[set:protected] => Array
(
)

[from:protected] => Array
(
)

[join:protected] => Array
(
)

[where:protected] => Array
(
)

[orderby:protected] => Array
(
)

[order:protected] => Array
(
)

[groupby:protected] => Array
(
)

[having:protected] => Array
(
)

[distinct:protected] =>
[limit:protected] =>
[offset:protected] =>
[last_query:protected] => SELECT `items`.*
FROM `items`
WHERE `items`.`id` = '3'
ORDER BY `items`.`id` ASC
LIMIT 0, 1
[query_history:protected] => Array
(
)

)

[db_applied:protected] => Array
(
)

[with_applied:protected] => Array
(
)

)
)

*

Quick_Controller->delete( 3 )

* kohana/core/Kohana.php [270]:

ReflectionMethod->invokeArgs( Quick_Controller Object
(
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)

)
, Array
(
[0] => 3
)
)

* kohana/core/Event.php [209]:

Kohana::instance( )

* kohana/core/Bootstrap.php [55]:

Event::run( Array
(
[0] => Kohana
[1] => instance
)
)

* index.php [61]:

require( kohana/core/Bootstrap.php )

Loaded in 0.0655 seconds, using 2.48MB of memory. Generated by Kohana v2.3.2.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-04-07 06:28

There's a bug where your session gets dropped.. hit refresh and make sure that you're still logged in.