We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

libraries/extensions.php shouldn't this->last_cal() be by reference?

Developer Preview

GDmac - expocom's avatar
GDmac - expocom
350 posts
13 years ago
GDmac - expocom's avatar GDmac - expocom

The code in the extensions library has changed and the $args are not passed by reference anymore, compared to 2.4 and 2.5.2.

I got a PHP warning

A PHP Error was encountered
Severity: Warning
Message: Parameter 3 to Playa_ext::channel_entries_tagdata() expected to be a reference, value given
Filename: libraries/Extensions.php
Line Number: 235
       
Kevin Cupp's avatar
Kevin Cupp
791 posts
13 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks, GDmac. Yes I happened to notice this too last week, looks like we deleted a little too much code when getting rid of some old PHP 4 stuff. To fix, you can add this below line 158 of Extensions.php:

foreach($args as $k => $v)
{
    $args[$k] =& $args[$k];
}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.