Skip to content

mb_strpos(): Offset not contained in string #65

@mprofitlich

Description

@mprofitlich

I sometimes got the PHP error mb_strpos(): Offset not contained in string. I cannot find out when it happens and when not.

There’s an old thread from 2012 on the Symphony forum in which Nikolai Shmakov gives a solution that also works for me:

Replace line 383 in class.search_index_php
$p = $match[0][1];
against
$p = $match[0][1]/2;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions