The module works perfectly if you are using normal link. However, Gallery could not be loaded correctly. The log always complains:
"https:/192.168.0.2/gallery2/images/xhtml10.png not found."
Please be aware there was one "black slash" missing.
If this is a typo in the module?
Thanks

Comments

npe’s picture

Status: Active » Fixed

I fixed this problem.

In function _gallery_init, look for line:
$embedPath = str_replace('http://' .....
Replace it with:
$embedPath = str_replace('http' . ($_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'], '', $base_url) . '/';
This can solve the problem.

Regards

pitpit’s picture

it could be better to test $_SERVER['HTTPS'] before retrieve it, like this

$embedPath = str_replace('http' . (isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] == 'on' ? 's' : '' : '').'://' .$_SERVER['HTTP_HOST'], '', $base_url) . '/';
Anonymous’s picture

Status: Fixed » Closed (fixed)