Search

I found some other semi-related threads but no reference to my problem. I’m using 2.0.7 and select box link.

I recently upgraded to PHP5.3 and when I was trying to save an entry, I was getting “strlen() expects parameter 1 to be string, array given” on line 284 of class.field.php

I changed strlen($data) to empty($data) and it seems to work now… I wonder if this needs to be done for all calls to strlen to be compatible with Symphony?

Do you know which field caused the error? The strlen() function is valid in PHP 5.3…

I will say however that you should really upgrade to 2.0.8RC3 rather than 2.0.7, there are a lot of bugs in the version you’re using which have been fixed in the release candidate of 2.0.8

I’m not 100% sure but I think it was any select box link fields.

strlen() has changed slightly from php5.2 to php5.3.

In 5.2 if strlen is passed an array it will return the length. In 5.3 if passed an error it will return null. More info here: http://www.php.net/manual/en/function.strlen.php#98315

Is 2.0.8rc3 more stable than 2.0.7?

Is 2.0.8rc3 more stable than 2.0.7?

Yes, by a fair margin.

In 5.2 if strlen is passed an array it will return the length. In 5.3 if passed an error it will return null. More info here: http://www.php.net/manual/en/function.strlen.php#98315

Handy to know the reasoning. I suppose this is something that should be looked at for 2.0.8 considering it will probably have a long life and need to be robust enough to handle PHP5.3, especially as it’s popularity grows.

Totally agree Brendo.

My MAMP setup is using 5.3 and I haven’t run into any problems as of yet… Odd…

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