Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

HELP: set allow_call_time_pass_reference to true in your INI file


Go to End


3 Posts   4677 Views

Avatar
evsionlab.com

5 Posts

29 March 2008 at 5:49am

I get the following intermittently when I access my blog/forum. Anyone know why? Thanks

<b>Warning</b>: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_parse_into_struct(). 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 <b>/home/community/ecommerce/code/DPS.php</b> on line <b>260</b><br />

Avatar
evsionlab.com

5 Posts

31 March 2008 at 11:07pm

Edited: 31/03/2008 11:07pm

nobody knows? =( time for wordpress.

Avatar
fogster

Community Member, 4 Posts

7 June 2008 at 8:51am

My php.ini file includes the following comment:

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).

Seems to me that it's a feature that SilverStripe uses that shouldn't really be on... (Does it work if you turn it off? I just installed and it 'suggested' I enable it, so I did... Haven't tried without it.)