Are you still having problems with your second error notice?
If you do please make following changes.
Find file: /templates/gk_twn2/html/com_content/article/default.php
Find Line: 42 which is below
- Code: Select all
$pin_image = $uri->root() . substr($matches[0], 5,-1);
Replace with below
- Code: Select all
if(isset($matches[0])) {
$pin_image = $uri->root() . substr($matches[0], 5,-1);
}
So your final code around 42 should look as below.
- Code: Select all
$og_image = '';
preg_match('/src="([^"]*)"/', $this->item->text, $matches);
if(isset($matches[0])) {
$pin_image = $uri->root() . substr($matches[0], 5,-1);
}
}
See you around...