Search

I get this error twice on every page in the admin and on the public side after the 2.2.1 update:

Warning: Call-time pass-by-reference has been deprecated in /home/mrblank/photobored.joshnichols.com/symphony/lib/toolkit/class.field.php on line 1226

Warning: Call-time pass-by-reference has been deprecated in /home/mrblank/photobored.joshnichols.com/symphony/lib/toolkit/class.field.php on line 1226

I'm on Dreamhost and I found this forum post that may be helpful.

http://discussion.dreamhost.com/thread-126924-post-127513.html

I checked Github to see if the file had been edited, but it hasn't. Any ideas on what to do?

Thanks!

I changed line 1226 of class.field.php from this:

        return $this->buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false);

to this:

        return $this->buildDSRetrievalSQL($data, $joins, $where, $andOperation = false);

and the error went away, BUT I don't know what this does or if it breaks anything.

Still need some help with this one!

Thanks!

What version of PHP are you running?

PHP Version 5.2.15

Yup, seen that before. In most cases, the fix is easy.

Instead of

function doStuff($data) {
...
}

doStuff(&$data);

you'll now have to do

function doStuff(&$data) {
...
}

doStuff($data);

Basically, it's no longer allowed to let the caller decide if it's call-by-reference but solely the callee.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details