Flash upload - wrong path

Hi,

I was searching Forum for an answer about Flash uploader wrong path and found none.

My problem is that when trying to upload with Flash uploader the path which is generated is wrong:

"/modules/modules/?r=photos/albums/my/add_objects HTTP/1.1"

which is wrong and generates 404 error. (Note: double modules/modules in the generated path)

I've created symbolic link "modules" inside the modules directory that points back to modules  and flash uploading is working, but that isn't the solution that I'm looking for becouse the loop link is not very good idea (I've done it just for testing).

I would like to know where to change it in Dolphin file(s) to correct the path problem.

The settings in a file inc/header.inc.php are set like this:

define('BX_DOL_URL_MODULES', $site['url'] . 'modules/' );

and

define('BX_DIRECTORY_PATH_MODULES', $dir['root'] . 'modules/' );

(I am not using permalinks nor .httaccess files due to fact that my site is not running on Apache but lighttpd server)

Can someone please help me about this problem?

same goes for video uploads using Flash uploader

Regards

Mayki

"When things get tough the tough get going..."
Quote · 25 Nov 2012

Can't reproduce the problem (tested with/without permalinks enables in Photos module), what is the page you are trying to upload from ?

However the possible solution might be - changing:

$this->sWorkingFile = $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';

to

$this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';

in modules/boonex/photos/classes/BxPhotosUploader.php file. The similar modification is required for other media modules.

Please let me know how it goes ?

Rules → http://www.boonex.com/terms
Quote · 26 Nov 2012

 

Can't reproduce the problem (tested with/without permalinks enables in Photos module), what is the page you are trying to upload from ?

However the possible solution might be - changing:

$this->sWorkingFile = $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';

to

$this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';

in modules/boonex/photos/classes/BxPhotosUploader.php file. The similar modification is required for other media modules.

Please let me know how it goes ?

 Eureka!!

It works. I did as you wrote, and it works. I tryed for photos only for now and I'm going to check other media modules later. And will let you know. But I guess it will work for other media as well.

Thanks, thanks and thanks again!!

Kind Regards

Mayki

"When things get tough the tough get going..."
Quote · 26 Nov 2012

Thank you for checking this: http://www.boonex.com/trac/dolphin/ticket/2919

Also what is the page you are trying to upload from when you see this error ?

Rules → http://www.boonex.com/terms
Quote · 27 Nov 2012

 

Thank you for checking this: http://www.boonex.com/trac/dolphin/ticket/2919

Also what is the page you are trying to upload from when you see this error ?

 

Hi AlexT,

The page you are asking - the page from where I tryed to upload from is regular page for uploading:

- pictures: "/modules/?r=photos/browse/album/Slike-uporabnika-xxx/owner/xxxx"

or for videos, I tryed uploading directly to already created Album:

"/modules/?r=videos/albums/my/add_objects/Video-uporabnika-xxxx/owner/xxxx"

ps:

I have changed the file "modules/boonex/videos/classes/BxVideosUploader.php" as you suggested and the created path is then correct and the flash upload works.

Thanks again for your help.

Regards Mayki

"When things get tough the tough get going..."
Quote · 2 Dec 2012

Thank you for the info, the strange thing is that I've uploaded from the same page and have no problem with it, anyway it is great to hear that this fix helps.

Rules → http://www.boonex.com/terms
Quote · 3 Dec 2012

That is strange indeed. I have another clean installation of Dolphin (v7.0.9) on another machine and I will try Flash uploader there, to see if it works. On this working installation Flash uploader never worked but I didn't pay much attention to the problem since there are other upload options. But then I decided to investigate and luckily after I found the problem you solved it - for me and maybe for someone else as well.

Best wishes

Mayki

ps.: I just tryed Flash uploader on that clean install and got same problem.....

"When things get tough the tough get going..."
Quote · 3 Dec 2012

thanks mayki and alext you have been added to my credit list for the flash uploader fix.

Quote · 6 Dec 2012

it's an awesome fix. you got credit on my site

Quote · 15 Dec 2012

 

it's an awesome fix. you got credit on my site

...... which is?

Cool

"When things get tough the tough get going..."
Quote · 15 Dec 2012

you can thanks alexT for the fix. he's a really good programmer.... read his link

 

· Administrator · 2366 posts

Quote · Report · Bury · 13 Days Ago · 0 likes ·
 

It maybe related to this problem:

http://www.boonex.com/trac/dolphin/ticket/2919

Quote · 17 Dec 2012

if you really want to know how to fix it.. alexT gave you the code.... and it's only for that specific module. go through all modules and replace the lines of code to fix the flash uploaders.

Quote · 17 Dec 2012

 

if you really want to know how to fix it.. alexT gave you the code.... and it's only for that specific module. go through all modules and replace the lines of code to fix the flash uploaders.

 

you are suggesting me to read the post and to aplay the fix from AlexT but in the same time you missed to read mine...., the one which starts with Eureka! If you would read it you would't  well I guess you wouldn't explaining me what to do when all was already done....

:)

"When things get tough the tough get going..."
Quote · 10 Jan 2013
 
 
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.