BxDolAlbums 'res' function erroneous argument #0

There is an error in what you added to BxDolAlbums.php which seems to be causing the file not found error for uploaded video files. When I run the cron manually it spits out this code every time for content.  I also compared and see this is new function written for beta 7.  This appears to be the root of the cuase for the File not Found Errors found when uploading videos.  When I comment out the new if statement in BxDolCronVideo.php and the call to require BxDolAlbums.php my videos work perfectly.

Error
Database query error
Query:
UPDATE `sys_albums`, `sys_albums_objects` SET `ObjCount` = `ObjCount` + 1 WHERE `sys_albums`.`ID`=`sys_albums_objects`.`id_album` AND `sys_albums_objects`.`id_object`=17' AND `sys_albums`.`Type`='bx_videos'

Mysql error:

Found error in the file '[removed absolute path]/inc/classes/BxDolAlbums.php' at line 519.
Called 'res' function with erroneous argument #0.

If you want the bug backtrack letme know.  Its a 1000 lines long and I dont' want to post it here.

Quote · 17 Oct 2009

Hello mauricecano!

Even if this file doesn't exist this query can't generate error. Plz change inc/classes/BxDolDb.phpfile of ur Dolphin 7 by replacement all existing fragment of code there like mysql_error(); to mysql_error($this->link);

And provide next time error message from ur byg report email again. I think error can be like "MySQL server has gone away". We made so in current demozzz but hope u will help with reports too :-).

Regard

Quote · 31 Oct 2009

Thank you for this change.  Once I added it the errors went away in the video processing and I could put back in the bxalbum class.

Quote · 31 Oct 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.