in some constellations I get the following errormessage:
TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given
An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the imagereference plugin.
More info has been written to the DokuWiki error log.
If I open a page with the imagereference syntax inside itself, everything is ok. But if I use the include plugin and reference to the page with the imagereference syntax I get the error message.
My workaround at the moment was to modify the file imgcaption.php from line 151 down:
// Workaround nach PHP-Update:
if ($caprefs <> NULL) {
$data['refnumber'] = array_search($data['caprefname'], $caprefs);
}
Perhaps the problem occurred after updating our server to PHP version 8.1.11 some days ago.
Hi,
in some constellations I get the following errormessage:
The log file says this:
If I open a page with the imagereference syntax inside itself, everything is ok. But if I use the include plugin and reference to the page with the imagereference syntax I get the error message.
My workaround at the moment was to modify the file imgcaption.php from line 151 down:
Perhaps the problem occurred after updating our server to PHP version 8.1.11 some days ago.
What can I do?
Best regards Juergen