when i activate polyland theme strings I also get this:
“The plugin generated 557 characters of unexpected output during activation….”
Hi
It’s maybe a conflict with your theme or a plugin which corrupts the DB.
1) Before do some actions in your DB you must switch on the Twenty Fifteen theme + only Polylang. The other plugins must be deactivated.
2) Go in DB in the wp_posts table.
3) Search for Polylang_mo in the column post_type.
4) Delete the matching line (delete Polylang_mo lines).
There should be one per language. Since I don’t know which one is corrupted, you have to delete them all (you will loose all your strings translations).
5) Then go in the table wp_options an delete the option ‘_transient_pll_languages_list’ (this row will regenerated).
6) Test with the Twenty Fifteen theme + only Polylang.
7) If it works try this time with your theme + only Polylang.
8) If it works: reactivate your plugins one by one to find which one cause the incompatibility.
ok turns out the plugin causing the issue is called:
Polylang Theme Strings
Seems like something in my custom theme is screwing things up. i’ve tried cut this theme to barebones so I suppose will try to go the the plug-in author
“The plugin generated 557 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”
sort of got things to work, looks like i am able to get translations going of string coming from polylang theme strings into polylang and then to lingotek, however Italian and French are not translating and I get this:
Notice: unserialize(): Error at offset 1231 of 2259 bytes in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/polylang/include/mo.php on line 60
Notice: unserialize(): Error at offset 801 of 2175 bytes in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/polylang/include/mo.php on line 60
Other languages work fine…
You can try the Loco Translate plugin instead of the Polylang Theme Strings plugin. It does the same job and there is not incompability reported betwwen Loco translate and Polylang.
ok thanks, if i can figure out all this, i would like to send you a little donation. this one is a real hairball… lol
Hello,
I get the same error. In my case I think this come from DB transfert, perhaps encoding in base64 before and after saving could prevent from problem in general.
https://davidwalsh.name/php-serialize-unserialize-issues
I’m gonna try to move from one host to another host using this technic
Thx Chrystl! Your variant worked!! )
thanks to @chrystl 3rd comment.