Error Message thrown
-
Notice: unserialize(): Error at offset 824 of 3624 bytes in /var/www/vhosts/mk6qdxzn.web8.alfahosting-server.de/3neu.feng-shui-flow.com/wp-content/plugins/mailpoet/lib/Doctrine/Types/SerializedArrayType.php on line 27
Hi there,
I found my problem mentioned in this thread. It also happened after restoring a backup. Re-installing the plugin via FTP didn´t change a thing.
https://ww.wp.xz.cn/support/topic/error-message-thrown/
Could you please advise what else to do?
Thanks!
The page I need help with: [log in to see the link]
-
Hi there @justnice86,
I see another report of this same “Notice: unserialize(): Error at offset in ******/lib/Doctrine/Types/SerializedArrayType.php” error in our support system, and in that user’s case they resolved the issue by deactivating a separate “Bounce Handler” plugin that they had installed.
Do you have a Bounce Handler add-on currently active on your site? If so, please try deactivating it and see if that clears out that Notice.
Please let me know how that goes, or if you have any questions!
Hi there @kellymetal,
no, I don´t have a bounce handler.
The error definitely has something to do with the restoring. I have a copy of this website where everything works fine.What approach results from the knowledge that it is a restoring problem that is not solved by reinstalling the plugin via FTP?
Hi there @justnice86,
That’s hard to say. When you reinstall MailPoet, all files and database tables should be reinstalled, fixing this issue.
Can you please confirm that you followed these steps to reinstall it?
If so, can you please send us a copy of your System Info found in Settings > Help?
Please make sure to remove your email address before pasting it here.
Hi @guicmazeredo,
I followed all steps of the tutorial because I read it before trying anything else.
My webmaster lately changed the settings so that the error isn´t visible on the frontend, but I still see it in the backend.I wonder why the exact localization of the error does not provide any information for the solution?
PHP max_execution_time: 900
PHP memory_limit: 768M
PHP upload_max_filesize: 256M
PHP post_max_size: 256M
WordPress language: de_DE
Multisite environment?: No
Current Theme: Kadence Child (version 1.0.0)
Active Plugin names: query-monitor/query-monitor.php, polylang/polylang.php, ewww-image-optimizer/ewww-image-optimizer.php, kadence-blocks/kadence-blocks.php, kadence-starter-templates/kadence-starter-templates.php, loco-translate/loco.php, mailpoet/mailpoet.php, media-library-plus/maxgalleria-media-library.php, seo-by-rank-math/rank-math.php, updraftplus/updraftplus.php, wp-optimize/wp-optimize.php
Sending Method: MailPoet
Sending Frequency: 25 emails every 5 minutes
Send all site’s emails with: current sending method
Task Scheduler method: WordPress
Cron ping URL: https://3neu.feng-shui-flow.com?mailpoet_router&endpoint=cron_daemon&action=ping
Default FROM address:
Default Reply-To address:
Bounce Email Address:
Total number of subscribers: 1
Plugin installed at: 2022-02-07 11:02:45`Hi there,
I’ve found one other report of this “Notice: unserialize(): Error at offset” // Doctrine/Types/SerializedArrayType.php error
In that user’s case, they found that it was related to a specific form they had created on their site, and once they deleted the form, the error disappeared.
You could try duplicating any of your forms, and then deleting the originals, and see if that resolves the error on your site. (Although duplicating the form may result in the same error with the new form, in which case recreating the form would be necessary)
Please let me know how that goes, or if you have any questions!
Hi @kellymetal,
even though the forms I use are just modifications of the mailpoet forms,
I gave it try and deleted my forms from the posts and inserted a non modificated one.
It doesn´t solve the problem. Maybe the details of the error help to find another approach?wp-content/plugins/mailpoet/lib/Doctrine/Types/SerializedArrayType.php:27 unserialize() wp-content/plugins/mailpoet/lib/Doctrine/Types/SerializedArrayType.php:27 MailPoet\D\T\SerializedArrayType->convertToPHPValue() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:197 MailPoetVendor\D\O\I\H\AbstractHydrator->gatherRowData() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:170 MailPoetVendor\D\O\I\H\ObjectHydrator->hydrateRowData() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:85 MailPoetVendor\D\O\I\H\ObjectHydrator->hydrateAllData() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:119 MailPoetVendor\D\O\I\H\AbstractHydrator->hydrateAll() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:505 MailPoetVendor\D\O\AbstractQuery->executeIgnoreQueryCache() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:472 MailPoetVendor\D\O\AbstractQuery->execute() wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:372 MailPoetVendor\D\O\AbstractQuery->getResult() wp-content/plugins/mailpoet/lib/Form/FormsRepository.php:30 MailPoet\F\FormsRepository->findAllNotDeleted() wp-content/plugins/mailpoet/lib/PostEditorBlocks/SubscriptionFormBlock.php:48 MailPoet\P\SubscriptionFormBlock->MailPoet\P\{closure}() wp-includes/class-wp-hook.php:307 do_action('admin_head') wp-admin/admin-header.php:163Hi again @justnice86 👋🏽,
This could also be due to a plugin or theme conflict. Can you switch your theme to a default one (Twenty Twenty) and disable all your plugins and see if MailPoet works?
If it does work, enable your theme and all your other plugins one after the other until MailPoet breaks again. You’ll be able to tell us what’s at fault.
You can refer to this article: https://kb.mailpoet.com/article/204-how-to-test-for-plugins-conflict
I am asking this because I am unable to reproduce the error on my site. So please give it a try and let us know how that goes!
Cheers
Hi @danielinhou,
chances were low because I have a duplicate website with the same theme and plugins and no errors.
If you want to reproduce the issue you have to re-install a backup of the site, because that´s what produced the error.Nevertheless, I installed the health plugin and did as recommended. The errors are still there. After the last posting here it increased to two error messages,
unserialize(): Error at offset 354 of 3157 bytes
unserialize(): Error at offset 824 of 3624 bytesCheers
Hi there @justnice86,
Thank you for testing!
Can you please check if you have
define('DB_CHARSET', 'utf8');in your wp-config.php file?It can cause issues if you have ‘utf8mb4’ set instead.
Hi Elvira @treibalen,
thank you for helping me.
Yes, the wrong code was in my wp-config.
define( ‘DB_CHARSET’, ‘utf8mb4’ );
I´ve changed it to
define( ‘DB_CHARSET’, ‘utf8’ );but the errors are still there. Do I have to fix anything else?
Hi there @justnice86,
Thank you for checking!
I asked our developers to take a look and they came back with the following:
– are you restoring the backup on the same site or on a different one? Can you please ensure that the same database collation is used on the site where you do the restore? You can check that with your hosting.
– I see that you tried removing your forms, but can you please confirm that you tried completely deleting them from MailPoet > Forms and creating new ones?
– What tools do you use when restoring the backup?
Cheers!
Dear Elvira @treibalen,
yes, I can ensure that the same database collation is used.
My hoster offers backups and I simply restored an earlier version from their server.
In this case, I did not use any of my backuptools.“I see that you tried removing your forms, but can you please confirm that you tried completely deleting them from MailPoet > Forms and creating new ones?”
The first thing I did was this https://kb.mailpoet.com/article/258-re-installing-updating-the-plugin-via-ftp
I also removed the existing forms from my website and created and inserted new ones.
Do you mean anything else by deleting them from MailPoet?I do have a copy of the website in a different development state. I could restore that site with an earlier version from the hoster to see if the error also occurs. Please let me know if this might be helpful.
Cheers!
Hooray,
the update has solved my problem. Thank you!
The topic ‘Error Message thrown’ is closed to new replies.