Message: Array to string conversion
I've just inherited a site that's using LV and when creating new variables it's outputting some PHP notices for the client:
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/steven/Sites/f29.dev/manage/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412
It's running EE 2.5.5 and I've just upgraded to the latest version of LV as well and the same thing is happening.
I can't see the same issue happening on any other page of the module, only create a new var.
Replies
Low 7 Jun 2013 11:57
From what version did you upgrade?
stevieg_83 7 Jun 2013 12:01
upgraded from 2.3.4 - there was a whole heap of other addons that were installed that weren't in use so got shot of those and now there are no other addons that I haven't used successfully before with LV.
Low 7 Jun 2013 12:07
Hmm, I need to take a look myself. Any chance of that?
stevieg_83 7 Jun 2013 12:09
sure - I'll need to get staging environment running.
where should I send the details?
Low 7 Jun 2013 12:10
You can send SuperAdmin login credentials to hi at gotolow dot com. Thanks.
Low 7 Jun 2013 12:11
If it's easier, you can also send me a SQL dump of the exp_global_variables, exp_low_variables, exp_low_variable_groups and exp_extensions tables.
stevieg_83 7 Jun 2013 12:12
cool - I'll send the db extract first
Low 7 Jun 2013 12:30
Hmm. Can you try and disable all non-native variable types in the Extension settings and see if the problem persists?
stevieg_83 7 Jun 2013 12:40
think I've narrowed it down thanks to another project - had to change PHP version.
Environment was running PHP 5.4.10 - change it back to 5.3.20 locally and they're gone.
Low 7 Jun 2013 12:41
Really? Hmm, I was looking at a EE2.5.5 install with PHP 5.4.4 and couldn't reproduce... Weirdness.
stevieg_83 7 Jun 2013 12:43
yeah I've never had issues before running on that PHP version - we can close this out for now and if we have further issues we can investigate.
Did you manage to check the other thing I mentioned?
Jeremy Daalder 18 Jun 2013 02:20
I am having this error too now - A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 345
EE 2.6.1 LV 2.3.5 PHP 5.4.15
Also only on the create new variable page. No immediate iption to change php version on this server.
I suspect an addon conflict as this only appeared recently...any ideas where I should look (happy to grant you access Low)
Jeremy Daalder 18 Jun 2013 02:35
Ok have worked out the error shows, once per category, if you have categories with no sub-catgeories. (you get 'array' in the list as the name for these)
Low 18 Jun 2013 06:46
Hey Jeremy, access would be good. You can send superadmin login credentials to hi at gotolow dot com.