Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mulosmani Friend
    #1004705

    Hello. Im geting this error on some links. Can you help me please?
    Warning: strpos(): Empty needle in /home3/smart84/public_html/templates/ja_teline_v/html/layouts/joomla/content/item/default.php on line 34

    this is the link: https://goo.gl/zv2Cr0

    Pankaj Sharma Moderator
    #1004707

    Hi
    Can u send me site super user details via Private reply.
    This warning is due to the PHP versions some time. You can try to set the erorr report to none or default and it if this work.. If not send me the details via Private reply i will check it further.

    mulosmani Friend
    #1004708
    This reply has been marked as private.
    Ninja Lead Moderator
    #1004710

    Hi

    I fixed the problem on your site with the solution below

    Open templates/ja_teline_v/html/layouts/joomla/content/item/default.php file

    find and change

    if ($params->get('show_intro', 0)) {
        $pos = strpos($item->text, $item->introtext);
        if ($pos !== false) {
            $item->text = substr_replace ($item->text, '', $pos, strlen($item->introtext));
        }
    }

    to

    if ($params->get('show_intro', 0)) {
        if ($item->text && $item->introtext ) { 
            $pos = strpos($item->text, $item->introtext);
            if ($pos !== false) {
                $item->text = substr_replace ($item->text, '', $pos, strlen($item->introtext));
            }
        }
    }

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 3 voices, and was last updated by  Ninja Lead 7 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum