Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

HTTPS support
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: HTTPS support

HTTPS support 12 years, 11 months ago #26757

Our website is also accessible using https, but then the dynamic blocks are not loaded. Javascript error: mturboloader.blocksContents[blockIdentifier] is undefined, mturbo.js line 18

I see an OPTIONS request to /mturbo?..... instead of a get, possibly due to the HTTPS?
The topic has been locked.

Re: HTTPS support 12 years, 11 months ago #26759

  • jich
  • OFFLINE
  • Posts: 254
Dear meDavid,

We know about this issue and we are working for fixing it. Problem causes incorrectly routing in the Magento Core. For now we are not able to help you. I believe it will solve in the near future.

Additional note:
We have solution only for HTTPS. No if you require HTTP and HTTPS simultaneously. Problem is than web browser does not allow send AJAX requests through different servers. It is security risk. HTTP and HTTPS are different servers.

Possibly solution (tested only Mag 1.6.1.0):

1) Change configuration file app/code/local/Artio/MTurbo/etc/config.xml about line 145:

from

 
...
<frontend>
<routers>
<mturbo>
<use>standard</use>
<args>
<module>Artio_MTurbo</module>
<frontName>mturbo</frontName>
</args>
</mturbo>
</routers>
...
</frontend>
...
 


to

 
...
<frontend>
<routers>
<mturbofrontend>
<use>standard</use>
<args>
<module>Artio_MTurbo</module>
<frontName>mturbofrontend</frontName>
</args>
</mturbofrontend>
</routers>
...
</frontend>
...
 


2) Change header of function for the action. File app/code/local/Artio/MTurbo/controllers/IndexController.php about line 35:

from

 
...
public function norouteAction($coreRoute=null) {
...
 


to


 
...
public function indexAction() {
...
 


3) Finally, change file app/code/local/Artio/MTurbo/Model/Observer.php about line 65:

from

 
...
$url = Mage::getBaseUrl().'mturbo';
$referer = Mage::helper('core/url')->getEncodedUrl();
$endScript = "\n<script type=\"text/javascript\">if (typeof(mturboloader)!='undefined') mturboloader.loadBlocks(\"$url\", \"$referer\");</script>\n";
....
 


to

 
...
$url = sprintf("%smturbofrontend", preg_replace('/^http?:/', '', Mage::getBaseUrl()));
$referer = Mage::helper('core/url')->getEncodedUrl();
$endScript = "\n<script type=\"text/javascript\">if (typeof(mturboloader)!='undefined') mturboloader.loadBlocks((location.protocol+\"$url\"), \"$referer\");</script>\n";
...
 
ARTIO Support Team
Last Edit: 12 years, 11 months ago by jich. Reason: Additional solution
The topic has been locked.
  • Page:
  • 1
Moderators: pedu
Přihlášení uživatele Prázdný