Video upload error D7

Hi

I have Dolphin 7 beta installed, but every time I upload a video it says upload successfully, but when you try to play the video i get Error! File not found.

It does it no matter which file format i use...

any ideas will be really appreciate it.

thank you

Quote · 18 Oct 2009

i have an idea try searching the forum you  might find a solution to it

i think that question has been asked thousand times :)

Quote · 18 Oct 2009

You need to make sure that you have your cron job setup properly in order to process your videos.

Nothing to see here
Quote · 18 Oct 2009

If your getting that Error! File not found, its not the cron job at all, its a bug in new code they added for beta 7.  Do the following to fix it:

For everyone else with the "File not found" error you need to do the following:

open flash/video/inc/classes/BxDolCronVideo.php

1.  comment out the new BxDolAlbum.php require like this:

// require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

2.  Comment out the new IF statement included in this file so it will not call the Albums.php as that contains a code error causing this problem.  Find this section at line 83

if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}

replace it with

/*
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
*/

This will comment out the code.  now you upload the file and clear your cache.  All new videos uploaded should work fine with sound.

Quote · 18 Oct 2009

Thanks for your reply guys... but im not that good with codes.. and tried mauricecano's solution but, still getting the same error.  Could you please take a look at my file to see if in editing the code correctly please?

__________________________________________________________________

this is my file

__________________________________________________________________

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -------------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2007 BoonEx Group
*     website              : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or  any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

// require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCron.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCategories.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

global $sModule;
$sModule = "video";

global $sIncPath;
global $sModulesPath;

require_once($sIncPath . "constants.inc.php");
require_once($sIncPath . "db.inc.php");
require_once($sIncPath . "xml.inc.php");
require_once($sIncPath . "functions.inc.php");
require_once($sIncPath . "apiFunctions.inc.php");
require_once($sIncPath . "customFunctions.inc.php");

global $sFilesPath;
$sModuleIncPath = $sModulesPath . $sModule . "/inc/";
require_once($sModuleIncPath . "header.inc.php");
require_once($sModuleIncPath . "constants.inc.php");
require_once($sModuleIncPath . "functions.inc.php");
require_once($sModuleIncPath . "customFunctions.inc.php");

class BxDolCronVideo extends BxDolCron {

function processing() {

global $sModule;
global $sFfmpegPath;
global $sModulesPath;
global $sFilesPath;

$iFilesCount = getSettingValue($sModule, "processCount");
if(!is_numeric($iFilesCount)) $iFilesCount = 2;
$iFailedTimeout = getSettingValue($sModule, "failedTimeout");
if(!is_numeric($iFailedTimeout)) $iFailedTimeout = 1;
$iFailedTimeout *= 86400;
$sDbPrefix = DB_PREFIX . ucfirst($sModule);

$iCurrentTime = time();

do
{
//remove all tokens older than 10 minutes
if (!getResult("DELETE FROM `" . $sDbPrefix . "Tokens` WHERE `Date`<'" . ($iCurrentTime - 600). "'"))
break;

if (!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Date`='" . $iCurrentTime . "', `Status`='" . STATUS_FAILED . "' WHERE `Status`='" . STATUS_PROCESSING . "' AND `Date`<'" . ($iCurrentTime - $iFailedTimeout) . "'"))
break;
$rResult = getResult("SELECT * FROM `" . $sDbPrefix . "Files` WHERE `Status`='" . STATUS_PENDING . "' ORDER BY `ID` LIMIT " . $iFilesCount);
if (!$rResult)
break;
for($i=0; $i<mysql_num_rows($rResult); $i++)
{
$aFile = mysql_fetch_assoc($rResult);
if(convertVideo($aFile['ID']))
{
$sType = 'bx_videos';
//album counter & cover update
/*
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
*/
//tags & categories parsing
$oTag = new BxDolTags();
$oTag->reparseObjTags($sType, $aFile['ID']);

$oCateg = new BxDolCategories($aFile['Owner']);
$oCateg->reparseObjTags($sType, $aFile['ID']);
}
else
if(!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Status`='" . STATUS_FAILED . "' WHERE `ID`='" . $aFile['ID'] . "'"))
break;
}
} while(false);
}
}

?>

_____________________________________________________________________________________

I really appreciate your help..... thank you

Quote · 19 Oct 2009

I emailed you back with my file on that cause it unless I'm not seeing it but my file is different on that.

If your getting that Error! File not found, its not the cron job at all, its a bug in new code they added for beta 7.  Do the following to fix it:

For everyone else with the "File not found" error you need to do the following:

open flash/video/inc/classes/BxDolCronVideo.php

1.  comment out the new BxDolAlbum.php require like this:

// require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

2.  Comment out the new IF statement included in this file so it will not call the Albums.php as that contains a code error causing this problem.  Find this section at line 83

if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}

replace it with

/*
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
*/

This will comment out the code.  now you upload the file and clear your cache.  All new videos uploaded should work fine with sound.

Quote · 19 Oct 2009

I'm not sure what im doing wrong anymore... i can't get my videos to work...  i change the BxDolCronVideo.php like you mentioned, but stlll no success.

and, yes for prolaznik the question has been asked many times, but i searched the forums all day and cannot find the answer until hopefully now.., but thanks for your comment.

Quote · 19 Oct 2009

Thanks for your reply guys... but im not that good with codes.. and tried mauricecano's solution but, still getting the same error.  Could you please take a look at my file to see if in editing the code correctly please?

__________________________________________________________________

this is my file

__________________________________________________________________

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -------------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2007 BoonEx Group
*     website              : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or  any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

// require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCron.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCategories.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

global $sModule;
$sModule = "video";

global $sIncPath;
global $sModulesPath;

require_once($sIncPath . "constants.inc.php");
require_once($sIncPath . "db.inc.php");
require_once($sIncPath . "xml.inc.php");
require_once($sIncPath . "functions.inc.php");
require_once($sIncPath . "apiFunctions.inc.php");
require_once($sIncPath . "customFunctions.inc.php");

global $sFilesPath;
$sModuleIncPath = $sModulesPath . $sModule . "/inc/";
require_once($sModuleIncPath . "header.inc.php");
require_once($sModuleIncPath . "constants.inc.php");
require_once($sModuleIncPath . "functions.inc.php");
require_once($sModuleIncPath . "customFunctions.inc.php");

class BxDolCronVideo extends BxDolCron {

function processing() {

global $sModule;
global $sFfmpegPath;
global $sModulesPath;
global $sFilesPath;

$iFilesCount = getSettingValue($sModule, "processCount");
if(!is_numeric($iFilesCount)) $iFilesCount = 2;
$iFailedTimeout = getSettingValue($sModule, "failedTimeout");
if(!is_numeric($iFailedTimeout)) $iFailedTimeout = 1;
$iFailedTimeout *= 86400;
$sDbPrefix = DB_PREFIX . ucfirst($sModule);

$iCurrentTime = time();

do
{
//remove all tokens older than 10 minutes
if (!getResult("DELETE FROM `" . $sDbPrefix . "Tokens` WHERE `Date`<'" . ($iCurrentTime - 600). "'"))
break;

if (!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Date`='" . $iCurrentTime . "', `Status`='" . STATUS_FAILED . "' WHERE `Status`='" . STATUS_PROCESSING . "' AND `Date`<'" . ($iCurrentTime - $iFailedTimeout) . "'"))
break;
$rResult = getResult("SELECT * FROM `" . $sDbPrefix . "Files` WHERE `Status`='" . STATUS_PENDING . "' ORDER BY `ID` LIMIT " . $iFilesCount);
if (!$rResult)
break;
for($i=0; $i<mysql_num_rows($rResult); $i++)
{
$aFile = mysql_fetch_assoc($rResult);
if(convertVideo($aFile['ID']))
{
$sType = 'bx_videos';
//album counter & cover update
/*
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
*/
//tags & categories parsing
$oTag = new BxDolTags();
$oTag->reparseObjTags($sType, $aFile['ID']);

$oCateg = new BxDolCategories($aFile['Owner']);
$oCateg->reparseObjTags($sType, $aFile['ID']);
}
else
if(!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Status`='" . STATUS_FAILED . "' WHERE `ID`='" . $aFile['ID'] . "'"))
break;
}
} while(false);
}
}

?>

_____________________________________________________________________________________

I really appreciate your help..... thank you

Huh mine is weird I suppose here is my origonal and I can't find where to edit

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -------------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2007 BoonEx Group
*     website              : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or  any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCron.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCategories.php');

global $sModule;
$sModule = "video";

global $sIncPath;
global $sModulesPath;

require_once($sIncPath . "constants.inc.php");
require_once($sIncPath . "db.inc.php");
require_once($sIncPath . "xml.inc.php");
require_once($sIncPath . "functions.inc.php");
require_once($sIncPath . "apiFunctions.inc.php");
require_once($sIncPath . "customFunctions.inc.php");

global $sFilesPath;
$sModuleIncPath = $sModulesPath . $sModule . "/inc/";
require_once($sModuleIncPath . "header.inc.php");
require_once($sModuleIncPath . "constants.inc.php");
require_once($sModuleIncPath . "functions.inc.php");
require_once($sModuleIncPath . "customFunctions.inc.php");

class BxDolCronVideo extends BxDolCron {

function processing() {

global $sModule;
global $sFfmpegPath;
global $sModulesPath;
global $sFilesPath;

$iFilesCount = getSettingValue($sModule, "processCount");
if(!is_numeric($iFilesCount)) $iFilesCount = 2;
$iFailedTimeout = getSettingValue($sModule, "failedTimeout");
if(!is_numeric($iFailedTimeout)) $iFailedTimeout = 1;
$iFailedTimeout *= 86400;
$sDbPrefix = DB_PREFIX . ucfirst($sModule);

$iCurrentTime = time();

do
{
//remove all tokens older than 10 minutes
if (!getResult("DELETE FROM `" . $sDbPrefix . "Tokens` WHERE `Date`<'" . ($iCurrentTime - 600). "'"))
break;

if (!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Date`='" . $iCurrentTime . "', `Status`='" . STATUS_FAILED . "' WHERE `Status`='" . STATUS_PROCESSING . "' AND `Date`<'" . ($iCurrentTime - $iFailedTimeout) . "'"))
break;
$rResult = getResult("SELECT * FROM `" . $sDbPrefix . "Files` WHERE `Status`='" . STATUS_PENDING . "' ORDER BY `ID` LIMIT " . $iFilesCount);
if (!$rResult)
break;
for($i=0; $i<mysql_num_rows($rResult); $i++)
{
$aFile = mysql_fetch_assoc($rResult);
if(convertVideo($aFile['ID']))
{
//tags & categories parsing
$sType = 'bx_videos';
$oTag = new BxDolTags();
$oTag->reparseObjTags($sType, $aFile['ID']);

$oCateg = new BxDolCategories($aFile['Owner']);
$oCateg->reparseObjTags($sType, $aFile['ID']);
}
else
if(!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Status`='" . STATUS_FAILED . "' WHERE `ID`='" . $aFile['ID'] . "'"))
break;
}
} while(false);
}
}

?>

Quote · 19 Oct 2009

That is weir... my file is so much different

I'm don't have a clue now how to fix this... i tried your original file and that didnt work for me either

Quote · 19 Oct 2009

Mankya your file is the old beta 6 version, not the beta 7 version.

Rey352 your edit is off, copy and repalce your code with this (the entire code):

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -------------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2007 BoonEx Group
*     website              : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or  any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCron.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCategories.php');
//require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

global $sModule;
$sModule = "video";

global $sIncPath;
global $sModulesPath;

require_once($sIncPath . "constants.inc.php");
require_once($sIncPath . "db.inc.php");
require_once($sIncPath . "xml.inc.php");
require_once($sIncPath . "functions.inc.php");
require_once($sIncPath . "apiFunctions.inc.php");
require_once($sIncPath . "customFunctions.inc.php");

global $sFilesPath;
$sModuleIncPath = $sModulesPath . $sModule . "/inc/";
require_once($sModuleIncPath . "header.inc.php");
require_once($sModuleIncPath . "constants.inc.php");
require_once($sModuleIncPath . "functions.inc.php");
require_once($sModuleIncPath . "customFunctions.inc.php");

class BxDolCronVideo extends BxDolCron {

function processing() {

global $sModule;
global $sFfmpegPath;
global $sModulesPath;
global $sFilesPath;

$iFilesCount = getSettingValue($sModule, "processCount");
if(!is_numeric($iFilesCount)) $iFilesCount = 2;
$iFailedTimeout = getSettingValue($sModule, "failedTimeout");
if(!is_numeric($iFailedTimeout)) $iFailedTimeout = 1;
$iFailedTimeout *= 86400;
$sDbPrefix = DB_PREFIX . ucfirst($sModule);

$iCurrentTime = time();

do
{
//remove all tokens older than 10 minutes
if (!getResult("DELETE FROM `" . $sDbPrefix . "Tokens` WHERE `Date`<'" . ($iCurrentTime - 600). "'"))
break;

if (!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Date`='" . $iCurrentTime . "', `Status`='" . STATUS_FAILED . "' WHERE `Status`='" . STATUS_PROCESSING . "' AND `Date`<'" . ($iCurrentTime - $iFailedTimeout) . "'"))
break;
$rResult = getResult("SELECT * FROM `" . $sDbPrefix . "Files` WHERE `Status`='" . STATUS_PENDING . "' ORDER BY `ID` LIMIT " . $iFilesCount);
if (!$rResult)
break;
for($i=0; $i<mysql_num_rows($rResult); $i++)
{
$aFile = mysql_fetch_assoc($rResult);
if(convertVideo($aFile['ID']))
{
$sType = 'bx_videos';
/*
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
*/
//tags & categories parsing
$oTag = new BxDolTags();
$oTag->reparseObjTags($sType, $aFile['ID']);

$oCateg = new BxDolCategories($aFile['Owner']);
$oCateg->reparseObjTags($sType, $aFile['ID']);
}
else
if(!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Status`='" . STATUS_FAILED . "' WHERE `ID`='" . $aFile['ID'] . "'"))
break;
}
} while(false);
}
}

?>

Quote · 19 Oct 2009

Remember, once you replace that code in the file you must clear your cache for it to work.  You can clear your cache in the admin home by using the clear all, or if you ftp in delete everything in the /cache/  folder.  Then go to the video page, reresh to recompile the cache script and upload.  Wait till  your cron executes and encodes and you'll be set.

Quote · 19 Oct 2009

I replaced my file with yours, and followed the steps to clean my cache,, but still nothing... can you tell me if my cron job is set up correctly please

*     *     *     *     *     cd /home/johnquee/public_html/periodic; /usr/local/bin/php -q cron.php

Quote · 19 Oct 2009

Your cron is setup to run virtually every second.  Remember that the videos you already uploaded under the old code will not show, they are messed up and would have to be manually repaired.  However your new videos should work.

Quote · 19 Oct 2009

The typcial cron time setup is * /5  for 5 minutes,  you can execute your cron manually to test if its encoding the video by going to the http://site.com/periodic/cron.php    however there is an .htaccess file in there you needt o rename so you can run the file.

Quote · 19 Oct 2009

If my cron job is ok, and i uploaded all new videos but still doesnt work?  i replaced my file with yours, so that should be ok also... im going crazy here lol

Quote · 19 Oct 2009

Few other things to try, delete all your current non-working videos.  Upload a new video and make sure you activate it.  It should work if y ou have the same error I have.  Letme pull my notes on the subject to see if there was another step.

And try clearing yoru browser cache, sometimes it loves to keep the same file inside it.  I hvae that problem with my mozillia, when I change something even after clearing the system cache I need to clear browser cache.

Quote · 19 Oct 2009

I deleted all the old videos and uploaded new ones and still nothing..... if i give you my website login could you ck and see if the file i replace is fine... i dont know what else to do

Quote · 19 Oct 2009

whats your site?

snet you a mail with my yahoo

Quote · 19 Oct 2009

Few other things to try, delete all your current non-working videos.  Upload a new video and make sure you activate it.  It should work if y ou have the same error I have.  Letme pull my notes on the subject to see if there was another step.

And try clearing yoru browser cache, sometimes it loves to keep the same file inside it.  I hvae that problem with my mozillia, when I change something even after clearing the system cache I need to clear browser cache.

My Error is simple

error file not found and it shows I've done what you have told me and nothing. Same error :(

Quote · 19 Oct 2009

Its gonna be an adult site, so if you dont mind, i rather email you the information

Quote · 19 Oct 2009

Sure

Quote · 19 Oct 2009

I guess I've just gone and done everything again.  I've been posting about this issue for almost 2 weeks or more and it seems like BOONEX don't want to do anything so I am going to install the 6.1.4.  Kinda sucks cause Some of us have put a lot of work into this site already. and I know that most of the things work on that except the talk presence thing.  So I really wish they would fix this for us.

Quote · 19 Oct 2009

Hi

I can help you with that problem. I will need some test account on your site and your site cpanel details.

Quote · 19 Oct 2009

I'm pretty pissed here sorry.  But I deleted my site from dolphin software last night I than downloaded a new beta 7 of Dolphin and here is what is in that file ONCE AGAIN

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -------------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2007 BoonEx Group
*     website              : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or  any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCron.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolCategories.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlbums.php');

global $sModule;
$sModule = "video";

global $sIncPath;
global $sModulesPath;

require_once($sIncPath . "constants.inc.php");
require_once($sIncPath . "db.inc.php");
require_once($sIncPath . "xml.inc.php");
require_once($sIncPath . "functions.inc.php");
require_once($sIncPath . "apiFunctions.inc.php");
require_once($sIncPath . "customFunctions.inc.php");

global $sFilesPath;
$sModuleIncPath = $sModulesPath . $sModule . "/inc/";
require_once($sModuleIncPath . "header.inc.php");
require_once($sModuleIncPath . "constants.inc.php");
require_once($sModuleIncPath . "functions.inc.php");
require_once($sModuleIncPath . "customFunctions.inc.php");

class BxDolCronVideo extends BxDolCron {

function processing() {

global $sModule;
global $sFfmpegPath;
global $sModulesPath;
global $sFilesPath;

$iFilesCount = getSettingValue($sModule, "processCount");
if(!is_numeric($iFilesCount)) $iFilesCount = 2;
$iFailedTimeout = getSettingValue($sModule, "failedTimeout");
if(!is_numeric($iFailedTimeout)) $iFailedTimeout = 1;
$iFailedTimeout *= 86400;
$sDbPrefix = DB_PREFIX . ucfirst($sModule);

$iCurrentTime = time();

do
{
//remove all tokens older than 10 minutes
if (!getResult("DELETE FROM `" . $sDbPrefix . "Tokens` WHERE `Date`<'" . ($iCurrentTime - 600). "'"))
break;

if (!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Date`='" . $iCurrentTime . "', `Status`='" . STATUS_FAILED . "' WHERE `Status`='" . STATUS_PROCESSING . "' AND `Date`<'" . ($iCurrentTime - $iFailedTimeout) . "'"))
break;
$rResult = getResult("SELECT * FROM `" . $sDbPrefix . "Files` WHERE `Status`='" . STATUS_PENDING . "' ORDER BY `ID` LIMIT " . $iFilesCount);
if (!$rResult)
break;
for($i=0; $i<mysql_num_rows($rResult); $i++)
{
$aFile = mysql_fetch_assoc($rResult);
if(convertVideo($aFile['ID']))
{
$sType = 'bx_videos';
//album counter & cover update
if (getSettingValue($sModule, "autoApprove") == true) {
$oAlbum = new BxDolAlbums($sType);
$oAlbum->updateObjCounterById($aFile['ID']);
if (getParam($oAlbum->sAlbumCoverParam) == 'on')
$oAlbum->updateLastObjById($aFile['ID']);
}
//tags & categories parsing
$oTag = new BxDolTags();
$oTag->reparseObjTags($sType, $aFile['ID']);

$oCateg = new BxDolCategories($aFile['Owner']);
$oCateg->reparseObjTags($sType, $aFile['ID']);
}
else
if(!getResult("UPDATE `" . $sDbPrefix . "Files` SET `Status`='" . STATUS_FAILED . "' WHERE `ID`='" . $aFile['ID'] . "'"))
break;
}
} while(false);
}
}

?>

Quote · 19 Oct 2009

Okay that is what it should look like under the default.  If your still having the problems with error file not found copy my entire codea nd replace your code and it should solve that problem.

HEY BOONEX! many problems with videos here, wanta take a look at it (not being snide, but you guys are really ignoring the elephant in the room while rushing to RC)

Quote · 19 Oct 2009

Seems like my post keep getting lost here.  I've been in email contact with BOONEX since this started.  Nothing NO HELP except from the forums.  Now I don't have a site.  Afraid to even try this install again.  Jesus I've been up for weeks trying to get this thing to work.

Had no videos Error File Not found

No Polls

When you edit something have all sort of weird code errors about something in safe mode, etc BLAH BLAH BLAH

What should I DO?

Okay that is what it should look like under the default.  If your still having the problems with error file not found copy my entire codea nd replace your code and it should solve that problem.

HEY BOONEX! many problems with videos here, wanta take a look at it (not being snide, but you guys are really ignoring the elephant in the room while rushing to RC)

Quote · 19 Oct 2009

I am going to try this again.  Is there anything that needs changed before I install.   Really we shouldn't have to edit anything.  But do we?

Quote · 19 Oct 2009

Yes we have to edit stuff because the function is broke for many people and developers are not wanting to look at the issue for some reason.

Quote · 19 Oct 2009

Than Forgive my ignorance what needs to be changed.  I already started to upload or would you like to have some fun installing this today Tongue out

Quote · 19 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.