getting this error, scratched all my hair off so now i ask here. i will post just the beginning of the error message if whole message needed i can post it, i have the video setting set to embed only, when i create new video and after pasting youtube code, i am pulling in the info from youtube, the info screen comes up but it is red background, i fill out info and hit add, this the error getting in email after trying to add the embedded youtube video, when i inspect my database under sys_album, the info seems to be writing ok, id is updating and count is correct, then i check sys_album_objects, id_album matches and id_object is showing 0 insted of 1, think i to close to problem and cannot see it, any help appreciated.
Query:
INSERT INTO `sys_albums_objects` (`id_album`, `id_object`) VALUES ('25', '0')
Mysql error: Duplicate entry '25-0' for key 'id_album'
Found error in the file '/xxxxxx/inc/classes/BxDolAlbums.php' at line 387.
Called 'query' function with erroneous argument #0.
Debug backtrace:
Array
(
[1] => Array
(
[file] => /xxxxxx/inc/classes/BxDolDb.php
[line] => 246
[function] => error
[class] => BxDolDb
[object] => BxDolDb Object
(
[error_checking] => 1
[error_message] => Duplicate entry '25-0' for key 'id_album'
[host] => localhost
[port] =>
[socket] =>
[dbname] => adult
[user] => *****
[password] => *****
[link] => Resource id #28
[current_res] =>
[current_arr_type] => 1
[oParams] => BxDolParams Object
(
[_oDb] => BxDolDb Object
*RECURSION*
[_oCache] => BxDolCacheFile Object
(
[sPath] => /xxxxxx/cache/
)
[_sCacheFile] => sys_options_1c5a6e3bbf55b4881edcf68f4785a971.php
[_aParams] => [truncated]
)
[oDbCacheObject] => BxDolCacheFile Object
(
[sPath] => /xxxxxx/cache/
)
)
[type] => ->
[args] => Array
(
[0] => Database query error
[1] =>
[2] => INSERT INTO `sys_albums_objects` (`id_album`, `id_object`) VALUES ('25', '0')
)
)
[2] => Array
(
[file] => /xxxxxx/inc/classes/BxDolDb.php
[line] => 214
[function] => res
[class] => BxDolDb
[object] => BxDolDb Object
(
[error_checking] => 1
[error_message] => Duplicate entry '25-0' for key 'id_album'
[host] => localhost
[port] =>
[socket] =>
[dbname] => adult
[user] => *****
[password] => *****
[link] => Resource id #28
[current_res] =>
[current_arr_type] => 1
[oParams] => BxDolParams Object
(
[_oDb] => BxDolDb Object
*RECURSION*
[_oCache] => BxDolCacheFile Object
(
[sPath] => /xxxxxx/cache/
)
[_sCacheFile] => sys_options_1c5a6e3bbf55b4881edcf68f4785a971.php
[_aParams] => [truncated]
)
[oDbCacheObject] => BxDolCacheFile Object
(
[sPath] => /xxxxxx/cache/
)
)
[type] => ->
[args] => Array
(
[0] => INSERT INTO `sys_albums_objects` (`id_album`, `id_object`) VALUES ('25', '0')
)
)
