[dokuwiki] Re: New repository plugin

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 17 Jan 2011 18:44:21 +0100

Hi

> Now it's time for testing, sample pages are included in the download and
> the plugin can be configured to use an sqlite database, also the popularity
> data is simulated to get the correct feeling.
>
> So anyone interested
>   1. Install the plugin http://github.com/HakanS/dokuwiki-plugin-pluginrepo
>   2. Change config options – especially db_name.

I finally came around to testing this. After I found out how to
specify the db name (mysql:dbname=plugin) I hit a road block with the
following error:

Warning: PDOStatement::execute(): SQLSTATE[HY000]: General error: 2014
Cannot execute queries while other unbuffered queries are active.
Consider using PDOStatement::fetchAll(). Alternatively, if your code
is only ever going to run against mysql, you may enable query
buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
in /raid/www/dokuwiki/lib/plugins/pluginrepo/helper.php on line 293

I'm not sure I understand this one. The code seems to use fetchAll
everywhere so there should be no problem, but there is. The suggested
Attribute can only be set on a per statement basis not for the whole
connection, we'd need some wrapper then....

http://www.php.net/manual/en/ref.pdo-mysql.php#84688 suggests it could
be a compatibility error but my mysql is running on the same PC as my
php so the libraries should match...

Hakan, did you test this successfully with mysql? Any hints?

Andi

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

Other related posts: