Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Problems in Magento Admin panel (System > Configuration)
 
Saioa
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2007-11-25
Barcelona
 

I have these PHP errors:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of usort(). 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 /home/.greco/uluka/uluka.com/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Tabs.php on line 60

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of usort(). 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 /home/.greco/uluka/uluka.com/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 75

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of usort(). 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 /home/.greco/uluka/uluka.com/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 104

Why?

 
Magento Community Magento Community
Magento Community
Magento Community
 
shaun
Member
 
Avatar
Total Posts:  39
Joined:  2007-11-09
Todmorden, UK
 

What version of PHP are you running ?

Magento requires PHP v5.2.0 or later

http://www.magentocommerce.com/system-requirements

 
Magento Community Magento Community
Magento Community
Magento Community
 
Saioa
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2007-11-25
Barcelona
 

I have PHP Version 5.2.3…

 
Magento Community Magento Community
Magento Community
Magento Community
 
clarklab
Jr. Member
 
Total Posts:  1
Joined:  2008-01-20
 

I’ve got this same problem. anyone have a fix?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Can’t reproduce…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Daimonas
Jr. Member
 
Total Posts:  12
Joined:  2008-01-19
 

Try using the CGI-php script if you not already, create a file called php.ini with the following option in it

allow_call_time_pass_reference = On

That’s known as a call-time pass-by-reference, which PHP controls with the following setting in php.ini:

By default, in recent PHP releases the above setting should be switched to Off; turning it on is “frowned upon” by PHP’s makers. Switched off, PHP will generate warning errors every time a function call specifies an argument should be passed by reference. As such, it’s good practice to leave this setting off.

The reason why call time pass by reference is a “bad thing” is that call time passing by reference can make code extremely difficult to follow. I’ve occasionally seen PHP XML parsers written using a call-time pass-by-reference—it’s nearly impossible to gain any idea of what’s going on.

The “decision” as to whether a variable is passed by reference or not is one that belongs to the function being called, not the code that calls it. The above code written correctly would look like this:

// Accept by reference - good practice
function display(&$message)
{
echo $message;
}

$myMessage = ‘Hello World!’;

display($message);

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michae1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi guys,

The problem was fixed recently and the fixes will be available in the next release.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top