FLASH UPLOADER on Sounds Module

I'm having trouble uploading sounds using the FLASH Uploader.. Once the file has uploaded successfully, the page goes blank instead of displaying the boxes to enter the file name, description, tags etc..

I tried uploading a sound using the Regular Upload & it works perfectly.

 

Anyone have any idea what could cause this & which files I need to inspect to get my Flash Uploader working properly?

 

Thanks much..

 

Quote · 30 Apr 2012

It's only affecting my sounds module, so I think the issue is due to a 3rd party module.

I just need to know which file & line is responsible for processing the uploaded sound & displaying the File name, tags & description text boxes after a successful upload.

Quote · 30 Apr 2012

You need to have to use FTP( File transfer protocol)

go to modules folder boonex  folder look for 

sounds/classes/BxSoundsUploader.php and find

//code

function servicePerformMusicUpload($sFilePath, $aInfo, $isMoveUploadedFile = false) {

global $sModule;

$sModule = "mp3";

global $sFilesPathMp3;

 

if (!$this->oModule->_iProfileId)

$this->oModule->_iProfileId = $this->_iOwnerId;

   if (!$this->_iOwnerId || !$this->oModule->isAllowedAdd())

return false;

$sFilePath = process_db_input($sFilePath, BX_TAGS_STRIP, BX_SLASHES_NO_ACTION);

$iOwnerID = $this->_getAuthorId();

$iOwnerID = ($this->_iOwnerId > 0) ? $this->_iOwnerId : $iOwnerID;

$iPointPos = strrpos($sFilePath, '.');

        $sExt = substr($sFilePath, $iPointPos + 1);

        if (!$this->oModule->_oConfig->checkAllowedExts(strtolower($sExt)))

            return false;

 

        if (!($iId = uploadMusic($sFilePath, $iOwnerID, $sFilePath, $isMoveUploadedFile))) {

            return false;

        }

 

        if ($aInfo) {

            foreach (array('title', 'categories', 'tags', 'desc') as $sKey)

       $aInfo[$sKey] = isset($aInfo[$sKey]) ? $aInfo[$sKey] : '';

       $this->initMusicFile($iId, $aInfo['title'], $aInfo['categories'], $aInfo['tags'], $aInfo['desc']);

 

            $sAlbum = mb_strlen($_POST['extra_param_album']) > 0 ? $_POST['extra_param_album'] : getParam('sys_album_default_name');

   $sAlbum = isset($aInfo['album']) ? $aInfo['album'] : $sAlbum;

   $sAutoActive = false;

   if (strtolower($sExt) == 'mp3' && getSettingValue($sModule, "autoApprove") == true)

   $sAutoActive = true;

            $this->addObjectToAlbum($this->oModule->oAlbums, $sAlbum, $iId, $sAutoActive);

            $this->oModule->isAllowedAdd(true, true);

        }

        return $iId;

    }

 

you need to have a good programming skills to have it check and test.

Quote · 30 Apr 2012

I replaced BxSoundsUploader.php  with the original file included in the Boonex 7.0.9 archive. I'm still getting the BLANK screen after uploading a SOUND via the FLASH uploader.

Since blank screens are indicative of a PHP error I tried looking in my phperror log file & couldn't find anything relating to the sounds module. Not a clue what it could be.. 

Quote · 2 May 2012

It might be an error that isn't logged. Turn php error reporting completely on so it's displayed on the screen.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 2 May 2012
 
 
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.