Quantum-Manager / tracker

Tracker for all questions about Quantum Manager.
3 stars 0 forks source link

strpos(): Argument #1 ($haystack) must be of type string, array given #173

Open coolcat-creations opened 1 year ago

coolcat-creations commented 1 year ago

Describe the bug I have the error strpos(): Argument #1 ($haystack) must be of type string, array given in frontend

Call Stack:

() JROOT/plugins/content/quantummanagercontent/quantummanagercontent.php:69
2 strpos() JROOT/plugins/content/quantummanagercontent/quantummanagercontent.php:69
3 PlgContentQuantummanagercontent->prepare() JROOT/plugins/content/quantummanagercontent/quantummanagercontent.php:45
4 PlgContentQuantummanagercontent->onContentPrepare() JROOT/libraries/src/Plugin/CMSPlugin.php:279
5 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
6 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:107
dmitriitux commented 1 year ago

https://github.com/Quantum-Manager/quantummanagercontent/commit/995877386e37e67f20b77b20a3a580c8f38c4fe1

corrected, you can download the plugin from github separately and install it. But to be honest, I don’t understand how an array can go there instead of a string

coolcat-creations commented 1 year ago

The issue happens on a category blog

dmitriitux commented 1 year ago

I understand, I'll take a look

coolcat-creations commented 1 year ago

Hi @dmitriitux it was caused by a Joomla Custom field that held an array instead of a string. Somehow not your fault but still an issue I need to investigate. Not sure why the custom field was in $article->text