News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

External downloads does not work with CDN [Not a jDownloads problem]

Started by romagromov, 20.12.2016 11:12:47

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

romagromov

Hi!
I have enabled CloudFlare service for my site.
After that External downloads does not opens.
JDownloads opens my site page with blank page - like mysite.com/internet/browser/google-chrome/download instead external URL

Best free windows software for your PC at bestwinsoft.com
  •  

Arno

Hi,
when you try the stored link directly in the browser then is loaded the extern page correctly?

In the script is this simple line used:
// when url goes to another website - open it in a new browser window
            if ($extern_site){
                echo "<script>document.location.href='$filename';</script>\n"; 
                exit;   
            }
(The $filename is in this case the url which you typed in before)

I have not any experiences with Cloudflare.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

romagromov

Best free windows software for your PC at bestwinsoft.com
  •  

romagromov

Quote from: Arno on 20.12.2016 12:38:12
Hi,
when you try the stored link directly in the browser then is loaded the extern page correctly?

In the script is this simple line used:
// when url goes to another website - open it in a new browser window
            if ($extern_site){
                echo "<script>document.location.href='$filename';</script>\n"; 
                exit;   
            }
(The $filename is in this case the url which you typed in before)

I have not any experiences with Cloudflare.

I can't see this code...

I find only this one:

// check is set link to a new window?
                if ($this->item->extern_file && $this->item->extern_site   ){
                    $blank_window = 'target="_blank"';
                }


And site opens page in new tab. But it not redirects to extern_site. It opens internal page.
Best free windows software for your PC at bestwinsoft.com
  •  

Arno

You must open the file /controllers/download.php and search the send() function (around line 395).
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

romagromov

Ok, I got it.
Problem was with CloudFlare option, called Rocket Loader.
It should be disabled.


Also I want to noticed, that this option have too many bugs with other JS scripts on site.
Best free windows software for your PC at bestwinsoft.com
  •  

Arno

QuoteAlso I want to noticed, that this option have too many bugs with other JS scripts on site.
And what exactly should be buggy? Or did you mean the described Rocket Loader  above?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

romagromov

Yes, I mean that Rocket Loader have confilcts with JS.
No problem with JDownloads.
Best free windows software for your PC at bestwinsoft.com
  •