PHP error mb_strpos(): Empty delimiter

My Invoice Plane is 1.5.3

It is running well in the past month, but suddenly the following error occurs, please help

A PHP Error was encountered

Severity: Warning

Message: mb_strpos(): Empty delimiter

Filename: MX/Router.php

Line Number: 214

Backtrace:

File: /home/mysite/public_html/invoice/application/third_party/MX/Router.php
Line: 214
Function: mb_strpos

File: /home/mysite/public_html/invoice/application/third_party/MX/Router.php
Line: 68
Function: set_class

File: /home/mysite/public_html/invoice/index.php
Line: 327
Function: require_once

As written many times in many other support tickets:
there is an orange box that says to read the wiki and the FAQ. In the FAQ there is one entry that says “You have problems and need help? Use the debug mode.”

https://wiki.invoiceplane.com/en/1.5/general/faq

So please do that and post your logs here. Also post information about when it happens, what you did before and so on.
It’s not hard and saves my time to ask every time somebody has problems.

Sorry that the debug mode on and the error log as follow, we did nothing, the error just happen today, many thanks

DEBUG - 2017-07-31 08:02:06 --> UTF-8 Support Enabled
ERROR - 2017-07-31 08:02:06 --> Severity: Warning --> mb_strpos(): Empty delimiter /home/hkwhisky/public_html/invoice/application/third_party/MX/Router.php 214
DEBUG - 2017-07-31 08:02:06 --> No URI present. Default controller set.
DEBUG - 2017-07-31 08:02:06 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2017-07-31 08:02:06 --> Dashboard MX_Controller Initialized
DEBUG - 2017-07-31 08:02:06 --> Config file loaded: /home/hkwhisky/public_html/invoice/application/config/invoice_plane.php
DEBUG - 2017-07-31 08:02:06 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/settings/models/Mdl_settings.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2017-07-31 08:02:06 --> Layout MX_Controller Initialized
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/invoices/models/Mdl_invoice_amounts.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/quotes/models/Mdl_quote_amounts.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/invoices/models/Mdl_invoices.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/quotes/models/Mdl_quotes.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/projects/models/Mdl_projects.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/tasks/models/Mdl_tasks.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/layout/views/alerts.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/dashboard/views/index.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/layout/views/includes/head.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/layout/views/includes/navbar.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/layout/views/includes/fullpage-loader.php
DEBUG - 2017-07-31 08:02:06 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/layout/views/layout.php
DEBUG - 2017-07-31 08:02:06 --> Total execution time: 0.1771
DEBUG - 2017-07-31 08:02:13 --> UTF-8 Support Enabled
ERROR - 2017-07-31 08:02:13 --> Severity: Warning --> mb_strpos(): Empty delimiter /home/hkwhisky/public_html/invoice/application/third_party/MX/Router.php 214
DEBUG - 2017-07-31 08:02:13 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2017-07-31 08:02:13 --> Ajax MX_Controller Initialized
DEBUG - 2017-07-31 08:02:13 --> Config file loaded: /home/hkwhisky/public_html/invoice/application/config/invoice_plane.php
DEBUG - 2017-07-31 08:02:13 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/settings/models/Mdl_settings.php
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2017-07-31 08:02:13 --> Layout MX_Controller Initialized
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/invoice_groups/models/Mdl_invoice_groups.php
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/tax_rates/models/Mdl_tax_rates.php
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/clients/models/Mdl_clients.php
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/clients/views/script_select2_client_id.js
DEBUG - 2017-07-31 08:02:13 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/invoices/views/modal_create_invoice.php
DEBUG - 2017-07-31 08:02:13 --> Total execution time: 0.0192
DEBUG - 2017-07-31 08:02:19 --> UTF-8 Support Enabled
ERROR - 2017-07-31 08:02:19 --> Severity: Warning --> mb_strpos(): Empty delimiter /home/hkwhisky/public_html/invoice/application/third_party/MX/Router.php 214
DEBUG - 2017-07-31 08:02:19 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2017-07-31 08:02:19 --> Ajax MX_Controller Initialized
DEBUG - 2017-07-31 08:02:19 --> Config file loaded: /home/hkwhisky/public_html/invoice/application/config/invoice_plane.php
DEBUG - 2017-07-31 08:02:19 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2017-07-31 08:02:19 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/settings/models/Mdl_settings.php
DEBUG - 2017-07-31 08:02:19 --> File loaded: /home/hkwhisky/public_html/invoice/application/controllers/../modules/layout/controllers/Layout.php
DEBUG - 2017-07-31 08:02:19 --> Layout MX_Controller Initialized
DEBUG - 2017-07-31 08:02:19 --> File loaded: /home/hkwhisky/public_html/invoice/application/modules/clients/models/Mdl_clients.php
DEBUG - 2017-07-31 08:02:19 --> Total execution time: 0.0138

So the error occurs while opening the login page???

yes, the error occurs while open the login page

well I have this problem i did some research and found this answer from stackoverflow
https://stackoverflow.com/a/2792233 and i open the file Router.php located in invoiceplane/application/third_party/MX/Router.php mine was on line 224
i commented // if (strpos($class, $suffix) === false) {
and add if (strncmp($class, $suffix, strlen($suffix)) === 0) {

and fix the problem for me.