Closed fjf2002 closed 1 year ago
Investigating the problem:
$properties = $parent->getProperties();
$parent->getProperties()
seems to return NULL.
What about
[]
inside function getProperties()
,$properties = $parent->getProperties() ?? [];`
Same problem here:
[root@wiki php-fpm]# grep -c 'Invalid argument supplied for foreach()' www-error.log
16480
[root@wiki php-fpm]# wc -l www-error.log
16565 www-error.log
Btw, proposed fix already in master but not in release: https://github.com/lpaulsen93/dokuwiki-plugin-odt/blob/master/ODT/css/cssimportnew.php#L1263
foreach ($parents as $parent) {
$properties = $parent->getProperties() ?? [];
foreach ($properties as $key => $value) {
@Klap-in Hello, can you release some latest fixes or this plugin is looking for maintainer?
I released ~that~ a new version. No idea why @lpaulsen93 is not involved anymore here, but maintainers are welcome!
Unfortunately these fixes happened at the beginning of the March, but release happened at the end of February so they are not included.
Sorry for the unhandy formulation, I mean I released a new version. Please see https://github.com/lpaulsen93/dokuwiki-plugin-odt/releases
I should first check for new release, sorry. Thanks for it!
Can confirm that issue is fixed for me. Maybe it should be closed?
Thanks for the feedback.
Hello,
I'm getting the following errors in apache's error.log. I'm using PHP 7.2 and the latest dokuwiki.