Fieldtype, Module

Archived
Forum
(read-only)

CE Tweet

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Causing Effect

     

PHP Error (notice) “Array to string conversion”

General (Resolved)

breella
breella

Hello!

Just installed CE Tweet, in the Fieldtypes section of EE.  Clicked on “CE Tweet” in the list of Fieldtype Names and was taken to the CE Tweet settings page (where I can set Maximum search results number).  At the top of the page EE report the following error/notice:

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 172

Sounds like a simple bug which can be easily fixed!  It isn’t a show stopper I don’t think, but then I’ve only just begun to use the add-on.

:)

Causing Effect - Aaron Waldon
# 1
Developer
Causing Effect - Aaron Waldon

Hi breella!

The helpers/form_helper file is actually a core class, but it is possible that something changed that is causing that error. Thanks for letting me know. Can you please tell me which versions of EE, CE Tweet, and PHP you are using?

Causing Effect - Aaron Waldon
# 2
Developer
Causing Effect - Aaron Waldon

Do you have any more information about this breella? Where you able to get this sorted out? I have not heard about this bug from anyone else (yet), so it would be a big help to me if you could get me the requested info. :)

Dom & Tom, Inc
# 3
Dom & Tom, Inc

Aaron, it’s most likely a PHP 5.4 exclusive bug. I’ve run into something like that error numerous times when using PHP 5.4.

Causing Effect - Aaron Waldon
# 4
Developer
Causing Effect - Aaron Waldon

Hi Dom & Tom, Inc!

I think you are correct on that. I recently ran into this with another add-on too. I’m guessing it’s this issue:

Converting an array to a string will now generate an E_NOTICE level error, but the result of the cast will still be the string “Array”.

from the PHP 5.4 Backward Incompatibilities page.

petenice
# 5
petenice

I’m hitting this same error. Any suggestions on how to remedy?

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: helpers/form_helper.php
Line Number: 172

ExpressionEngine v2.11.1

PHP 5.4.34