I have a fresh install of 1.9.7 and 1.9.8 on both Fedora Core 5 and Solaris 10, each with the latest Apache 2.2 and PHP 5 version. When I try to Publish or Republish any TikiWiki Mods, I get this in my php log (I have debugging symbols turned on).
PHP Notice: Array to string conversion in /opt/wiki/lib/mods/modslib.php on line 151, referer: http://wiki/tiki-mods.php?publishall=1
PHP Notice: Array to string conversion in /opt/wiki/lib/mods/modslib.php on line 152, referer: http://wiki/tiki-mods.php?publishall=1
PHP Notice: Array to string conversion in /opt/wiki/lib/mods/modslib.php on line 153, referer: http://wiki/tiki-mods.php?publishall=1
PHP Warning: implode() <a href='function.implode'>function.implode</a>: Bad arguments. in /opt/wiki/lib/mods/modslib.php on line 159, referer: http://wiki/tiki-mods.php?publishall=1
This results in a file beginning with '-rray' being written into mods/Dist and mods/Cache. This file is very hard to remove on these two operating systems, since it keeps tricking the rm command into thinking they are command options even when escaped.
This seems to be the result of an Array being passed as part of the argument to modslib->publish $Items argument. The code assumes that it is a purely an array of strings, and when it is not you generate non-fatal errors that cause this problem
I haven't looked around in detail to find the root cause of the array being passed, but I have added a simple argument check to the appropriate routine in lib/mods/modslib.php. I am including the diff:
149d148
< if (! is_string($item)) { continue; }
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |