PHP Warning: Illegal string offset ‘en_US’ in /home/…/ojs-3.2.1-2/lib/pkp/classes/core/DataObject.inc.php on line 133
PHP Warning: Cannot assign an empty string to a string offset in /home/…/ojs-3.2.1-2/lib/pkp/classes/core/DataObject.inc.php on line 133
@Heertsch can you provide some context for when these warnings appear? What action are you taking in the system when you see this entry in the log appear? That will help us track down the source of them.
)
But I’m affraid, that this does not help, because it generates a lot of output, but no warnings.
Is it possible to list the data-object only, if a warning is raised?
The setData method is used thousands of times on hundreds of objects. Can you tell us what action you are taking in the system when you see this entry appear in the logs? For example, you can provide reproduction steps like this:
OJS-Version:[quote=“Heertsch, post:1, topic:65167”]
ojs-3.2.1-2
[/quote]
Thanks for your hints. But the problem is, that the DB is frequently used (some warnings every second).
It would help, if one can explain what code I have to inject in the above snipped, so that the data-list is only logged, if a warning happens.