[dokuwiki] Re: indexer.php warnings.

  • From: master <master@xxxxxxxx>
  • To: Shawn Plummer <dokuwiki@xxxxxxxxxxxxx>
  • Date: Fri, 1 Dec 2006 10:16:44 +0200

Здравствуйте, Shawn.

Вы писали 30 ноября 2006 г., 16:02:12:
> I got hundreds of the following warning:
> bannerdoc:programs:sg:sg013re... PHP Warning:  array_keys(): The
> first argument should be an array in /var/www/myhtml/doc.geneseo.edu/ 
> inc/indexer.php on line 57
> PHP Warning:  join(): Bad arguments. in /var/www/myhtml/ 
> doc.geneseo.edu/inc/indexer.php on line 57

at the
http://wiki.splitbrain.org/plugin:searchindex_manager#array_keys_error

array_keys() error
After upgrading to the 2006-11-06 release and re-installing this
plugin, I am getting the following error inside the box continuously
when it attempts to create the new index.
> Warning: array_keys(): The first argument should be an array in
> /home/zyberdog/public_html/wiki/inc/indexer.php on line 56
> Warning: join(): Bad arguments. in
> /home/zyberdog/public_html/wiki/inc/indexer.php on line 56

A temporary fix/hack for this is to insert the following on line 56 in
/inc/indexer.php:
if (!is_array($links)) { $links = Array($links); }



It really work...

-- 
С уважением,
 master                          mailto:master@xxxxxxxx

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: