Hello,
for some period I used different than your Live Search Extension, but now when I enable it back, the images are not showing in the search output.
Is there any cache, that I need to clean ( I clean the theme and extension cache), or ?
|
|
Hello,
I’m still working on that problem.
We are using separate domain for the static (images) content and it looks like when that vqmod is enabled, the live search does not display the images.
I tracked down the problem to this variable “image_serve_domain”, so I defined it in system/vendor/BurnEngine/config/engine.php
But then I had problem with line 458 from system/vendor/BurnEngine/library/Context.php
return ‘http:’ . (TB_RequestHelper::isRequestHTTPS() ? ‘s’ : ”) . ‘//’ . $this->engine_config['image_serve_domain'] . ‘image/’;
That was returning wrong url – http://s/ or something like that.
I change it to
return ‘https://’ . $this->engine_config['image_serve_domain'] . ‘/image/’;
I’m not sure if I did not break something else.
|
|
Hi,
you can try to replace the getUmageUrl function with the following version: public function getImageUrl($store_domain = false)
{
if (!$this->engine_config['image_serve_domain'] || $store_domain) {
return $this->base_httpsIf . 'image/';
}
$url = $this->engine_config['image_serve_domain'];
if (strpos($this->engine_config['image_serve_domain'], 'http://') === 0 && TB_RequestHelper::isRequestHTTPS()) {
$url = str_replace('http', 'https', $url);
}
return rtrim($url, '/') . '/image/';
}
Now your `image_serve_domain setting` in system/vendor/BurnEngine/config/engine.php should work as expected. This fix will be included in the next theme updates too.
Regards,
ThemeBurn team
|
|
Hi,
now the URLs are looking like:
https://popi.se/staticpopi.webactivity.eu/image/…
popi.se is the main domain
staticpopi.webactivity.eu is the domain defined in engine.php
|
|