Klap-in / dokuwiki-plugin-imagereference

Dokuwiki plugin that creates references to images/tables in your text, like the LaTeX figure references.
https://www.dokuwiki.org/plugin:imagereference
0 stars 7 forks source link

Warning "Illegal string offset 'type" in imgcaption.php #19

Closed mhei closed 3 years ago

mhei commented 8 years ago

I see the following errors in my Apache error.log:

PHP Warning: Illegal string offset 'type' in /var/lib/dokuwiki/lib/plugins/imagereference/syntax/imgcaption.php on line 188

Plugin is installed on an Ubuntu dokuwiki installation, that is release 2013-12-08 "Binky". The version I installed is according to the manager.dat file in the imagereference base directory: installed=Thu, 08 Oct 2015 09:47:08 +0000 url=https://github.com/Klap-in/dokuwiki-plugin-imagereference/zipball/master

I did not yet tried the latest version because git history told me, that the imgcaption.php was changed last on March 11, this year.

Klap-in commented 8 years ago

Do you try to export an latex page?

Please share the piece of wiki text with captions/references that triggers this. Sometimes you see errors only the first time a page is displayed, in that case you can refresh caching in the wiki by adding &purge=true or ?purge=true to the url.

mhei commented 8 years ago

Indeed, I'm seeing the error line when exporting Latex. There is one error line for each imgcaption tag used in the wiki page.

One example wiki text is:

...
<imgcaption example1|RS-485-Brücke>
{{:start:documents:example1.png?nolink&600|}}</imgcaption>
...

The error line is generated with and without appending the purge parameter to the URL.

Klap-in commented 3 years ago

I cannot reproduce the warning anymore.