Fatal error – argument #1 must be string, array given
-
Hi,
We have a manage your subscription page with a couple of custom fields such as company name, adress etc.
However, when people change the info in their fields, a fatal error occurs: PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in …./public_html/wp-content/plugins/mailpoet/lib/Subscription/Manage.php:179
Stack trace:
#0 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-content/plugins/mailpoet/lib/Subscription/Manage.php(179): trim()
#1 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-content/plugins/mailpoet/lib/Subscription/Manage.php(110): MailPoet\Subscription\Manage->filterOutEmptyMandatoryFields()
#2 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-includes/class-wp-hook.php(303): MailPoet\Subscription\Manage->onSave()
#3 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
#5 /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-admin/admin-post.php(51): do_action()
#6 {main}
thrown in /home/bloemenc/domains/bloemencorso-bollenstreek.nl/public_html/wp-content/plugins/mailpoet/lib/Subscription/Manage.php on line 179`Any idea what is causing this?
Looking forward.
- The topic ‘Fatal error – argument #1 must be string, array given’ is closed to new replies.