What's New
Viewing 19 posts - 1 through 19 (of 19 total)
Viewing 19 posts - 1 through 19 (of 19 total)
You must be logged in to reply to this topic.
Good morning,
I have a big problem, I notice in our dev website that the module StInstagram (advanced) has a problem with this function in the stinstagram.php file row 2809:
`public function hookDisplayHeader($params)
{
if ($this->_st_is_16) {
$controller = Dispatcher::getInstance()->getController();
$regex = ‘/<p>\[stinstagram\s+id=\s*[\’\”]?(\d+)[\’\”]?\s*\]<\/p>|\[stinstagram\s+id=\s*[\’\”]?(\d+)[\’\”]?\s*\]/Us’;
switch($controller) {
case ‘product’:
if(preg_match_all($regex, $this->context->controller->getProduct()->description, $matches)) {
$this->context->controller->getProduct()->description = preg_replace_callback($regex, array($this, ‘displayByInstagramId’), $this->context->controller->getProduct()->description);
}
break;
case ‘category’:
if(preg_match_all($regex, $this->context->controller->getCategory()->description, $matches)) {
$this->context->controller->getCategory()->description = preg_replace_callback($regex, array($this, ‘displayByInstagramId’), $this->context->controller->getCategory()->description);
}
break;
case ‘cms’:
if(preg_match_all($regex, $this->context->controller->cms->content, $matches)) {
$this->context->controller->cms->content = preg_replace_callback($regex, array($this, ‘displayByInstagramId’), $this->context->controller->cms->content);
}
break;
}
}`
Seems that create some 500 error page for the blog categories links. I don’t know why, at the moment I have insert here:
`public function hookDisplayHeader($params)
{
if ($this->_st_is_16 <strong>&& false</strong>){`
the FALSE param so that the function is skipped but, it is strange that it doesn’t work properly. Could you take a look?
Thank you so much.
Hi,
Please take a look at the topic: https://www.sunnytoo.com/forums/topic/problem-instagram#post-79003
Best regards.
You must be logged in to reply to this topic.