All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Add on raises error when initiated on the Add-Ons screen

Status Resolved
Add-on / Version DataGrab 5.2.1
Severity
EE Version 7.3.14

Mlu

Jul 14, 2024

Description of the problem

When I try to initiate the datagrap add on from the expression engine add-ons screen, an “Call to undefined function mb_strpos()” error is raised. I am not able to proceed any further.

How To Reproduce Steps to reproduce the behavior: 1. Log into expression engine control panel 2. Select the “Add-Ons” button 3. Select the “DataGrap” button 4. Error is raised.

Error Messages Error Caught Call to undefined function mb_strpos() user/addons/datagrab/vendor-build/illuminate/support/Str.php:160

Stack Trace: Please include when reporting this error

0 user/addons/datagrab/vendor-build/illuminate/events/Dispatcher.php(83): BoldMinded\DataGrab\Dependency\Illuminate\Support\Str::contains()

1 user/addons/datagrab/Queue/Subscribers/QueueSubscriber.php(17): BoldMinded\DataGrab\Dependency\Illuminate\Events\Dispatcher->listen()

2 user/addons/datagrab/vendor-build/illuminate/events/Dispatcher.php(159): BoldMinded\DataGrab\Queue\Subscribers\QueueSubscriber->subscribe()

3 user/addons/datagrab/addon.setup.php(86): BoldMinded\DataGrab\Dependency\Illuminate\Events\Dispatcher->subscribe()

4 [internal function]: ExpressionEngine\Core\Application->{closure}()

5 ee/ExpressionEngine/Core/Provider.php(461): call_user_func_array()

6 ee/ExpressionEngine/Service/Dependency/InjectionContainer.php(125): ExpressionEngine\Core\Provider->ExpressionEngine\Core{closure}()

7 ee/ExpressionEngine/Service/Dependency/InjectionContainer.php(106): ExpressionEngine\Service\Dependency\InjectionContainer->singleton()

8 [internal function]: ExpressionEngine\Service\Dependency\InjectionContainer->ExpressionEngine\Service\Dependency{closure}()

9 ee/ExpressionEngine/Service/Dependency/InjectionContainer.php(173): call_user_func_array()

10 ee/ExpressionEngine/Boot/boot.php(159): ExpressionEngine\Service\Dependency\InjectionContainer->make()

11 user/addons/datagrab/models/datagrab_model.php(135): ee()

12 ee/legacy/core/Loader.php(291): Datagrab_model->__construct()

13 user/addons/datagrab/mcp.datagrab.php(54): EE_Loader->model()

14 ee/ExpressionEngine/Controller/Addons/Addons.php(1561): Datagrab_mcp->__construct()

15 ee/ExpressionEngine/Controller/Addons/Addons.php(866): ExpressionEngine\Controller\Addons\Addons->getModuleSettings()

16 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings()

17 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array()

18 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController()

19 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run()

20 admin.php(139): require_once(‘…’)

20 admin.php(139): require_once(‘…’)

Screenshots / Videos / Template Code

Environment Details: - Version: [5.2.1] - PHP Version [8.1.2] - MySQL Version [8.0.37] - OS: [Linux] - Web Server: [Apache]

Possible Solution

Additional context

#1

BoldMinded (Brian)

It sounds like the mbstring functions are not installed on your server. Check your PHP ini, you can do this in the Tools > Utilities > Php Info section, and see if “mbstring” is installed. There should be a whole section usually starting with “Multibyte Support enabled”

#2

BoldMinded (Brian)

Closing due to the lack of activity/response.

Login to reply