[dokuwiki] Re: Accessing renderer 'doc' data.

  • From: Etienne MELEARD <etienne.meleard@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 12 Oct 2010 09:23:35 +0200

Le 11/10/2010 20:36, WC Jones a écrit :
On Mon, Oct 11, 2010 at 11:30 AM, Chris Tapp<dokuwiki@xxxxxxxxxxxx>  wrote:
Fatal error: Cannot create references to/from string offsets nor overloaded
objects
You are prolly misplacing a # somewhere -- but I'm not a PHP programmer - yet :P

See http://bugs.php.net/bug.php?id=23442&edit=1

HTH/Sx
It appears that in your code you are trying to assign a reference pointing to your content thing to the $-this->doc property and afaik in PHP you can't use reference to a string (read http://www.php.net/manual/en/language.references.php there is useful information about reference).

If you are trying to append content to doc the correct syntax should be $this->doc .= $content_thing (you can even remove the dot if you just want to replace the whole document), in fact I don't even understand why your syntax work under 5.2.6 because I tried it on my server and it failed ...

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

Other related posts: