Plugin could not be activated because it triggered a fatal error.
-
I can download the plugin, but it throws me an error message when it comes to activation:
“Plugin could not be activated because it triggered a fatal error.”
I set debugging and logging on my site and these are the related logs:[06-Mar-2025 21:40:20 UTC] PHP Fatal error: Uncaught Error: Call to undefined function MailPoet\Migrator\mb_strimwidth() in /home/mywebsite/dir/plugins/mailpoet/lib/Migrator/Migrator.php:90
Stack trace:
#0 /home/mywebsite/dir/plugins/mailpoet/lib/Migrator/Migrator.php(38): MailPoet\Migrator\Migrator->getStatus()
#1 /home/mywebsite/dir/plugins/mailpoet/lib/Config/Activator.php(78): MailPoet\Migrator\Migrator->run()
#2 /home/mywebsite/dir/plugins/mailpoet/lib/Config/Activator.php(60): MailPoet\Config\Activator->processActivate()
#3 /home/mywebsite/dir/plugins/mailpoet/lib/Config/Initializer.php(313): MailPoet\Config\Activator->activate()
#4 /home/mywebsite/wp-includes/class-wp-hook.php(324): MailPoet\Config\Initializer->runActivator(false)
#5 /home/mywebsite/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /home/mywebsite/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /home/mywebsite/wp-admin/includes/plugin.php(703): do_action('activate_mailpo...', false)
#8 /home/mywebsite/wp-admin/plugins.php(60): activate_plugin('mailpoet/mailpo...', 'https://www.myw...', false)
#9 {main}
thrown in /home/mywebsite/dir/plugins/mailpoet/lib/Migrator/Migrator.php on line 90My instinct says the error is related to Multibyte String because of the first line “mb_strimwidth()”.
Also ‘–enable-mbstring=shared’ is in Configure Command section withing phpinfo query. Based on this mbstring is installed on the hosted webserver. Am I wrong?
I assume I need to configure it as well as per Runtime Configuration, but I don’t know what parameters I should put into php.ini file in order to make mailpoet work.I had white screen error, disabled all the plugins I have, even trying active mailpoet under a default wordpress theme; increased memory and size settings in php.ini to 512M; set plugins dir to 777, but none of them worked.
I followed this guide on mailpoet about the minimum requirements and I’m unsure whether these extensions are installed on this hosted webserver or not: XML, ZIP, MBSTRING.Here are some information of my site, that maybe related to this issue:
### wp-server ###
server_architecture: Linux 4.18.0-477.27.2.lve.el8.x86_64 x86_64
httpd_software: LiteSpeed
php_version: 8.2.27 64bit
php_sapi: litespeed
max_input_variables: 2000
time_limit: 30000
memory_limit: 2024M
max_input_time: 60
upload_max_filesize: 32M
php_post_max_size: 32M
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: https://www.mywebsite.com/
WP_CONTENT_DIR: /home/mywebsite/dir
WP_PLUGIN_DIR: /home/mywebsite/dir/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined
- You must be logged in to reply to this topic.