[dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 22 Nov 2007 15:40:52 +0100
Ferdinand Soethe writes:
Ferdinand Soethe wrote:
Opening any page I get this error message:
Warning: Call-time pass-by-reference has been deprecated; If
you would like to pass it by reference, modify the
declaration of resolve_mediaid(). If you would like to
enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file. in
/mnt/web1/10/88/51385788/htdocs/dw/lib/tpl/arctic/main.php
on line 73
Stratos is set to use php 5.2.2 but
allow_call_time_pass_reference is set to false.
Is there any way to work around this?
Best regards,
Ferdinand Soethe
Seems like the problem is using resolve_mediaid() which I
used to add header logos to the arctic template.
What is the new and correct way to link to a media file if I
know its namespace and pagename?
It's the right method but you are callng it with a calltime reference. Leave
out the & beforethe variable name in the method call and the error should be
gone.
Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- References:
Other related posts:
- » [dokuwiki] Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- » [dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- » [dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- » [dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- » [dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
- » [dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"
Ferdinand Soethe wrote:
Opening any page I get this error message: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of resolve_mediaid(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /mnt/web1/10/88/51385788/htdocs/dw/lib/tpl/arctic/main.php on line 73 Stratos is set to use php 5.2.2 but allow_call_time_pass_reference is set to false. Is there any way to work around this? Best regards, Ferdinand Soethe
Seems like the problem is using resolve_mediaid() which I used to add header logos to the arctic template. What is the new and correct way to link to a media file if I know its namespace and pagename?