Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: PHP Array to String Errors in Core

Status Resolved
Add-on / Version Custom System Messages
Severity Trivial
EE Version

Scott-David Jones

Mar 06, 2013

Hi,

Currently experiencing an issue where by the csm_data is appearing in the global vars and causing EE to through the following errors:

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: libraries/Core.php

Line Number: 346

When debugging the core i can see the following array’s in the

$this->EE->config->_global_vars

:

[csm_data] => Array
        (
            [title] => Error
            [heading] => Error
            [content] => 
Session Plugin: name parameter must be entered


            [redirect] => 
            [rate] => 1
            [link] => 
            [meta_refresh] => 
            [charset] => utf-8
            [type] => 
            [referrer] => *url*
            [action] => 
        )

    [csm_post] => Array
        (
        )


we have a range of extensions etc on the site, but the one i was working on changing was channel variables (which i run) not sure if there’s a conflict any where.. (but my ext just loops though the globals, snippets etc and updates the tag data it doesnt add anything to the globals..)

I also had a look at the session plugin but that exact error only occurs when trying to delete a session variable which is not on the template at all.
Any Ideas?

 

#1

BoldMinded (Brian)

Well, the content key there has this value in it “Session Plugin: name parameter must be entered” So my guess is the Session Plugin is doing something wrong. It looks to be adding everything in the $_SESSION super global as a _global_var? CSM doesn’t add arrays to _global_var, everything is a key => string pair, not key => array.

#2

Scott-David Jones

Hi,

Yeah i though the same thing and I did take a look at your code and also found the same conclusions; however the session variables plugin is not that complicated and it does not add anything to the _global_vars..

it simply add/get/deletes session data. the plugin its self is available here (not mine): http://devot-ee.com/add-ons/session-variables-plugin

Would it be possible for you to test? It could be one of the many extensions running on our site causing this but I cant figure out why..

#3

BoldMinded (Brian)

How are you using the plugin in your templates? Can you provide an example?

#4

Scott-David Jones

very odd, I just went to get you the template and all of it is working again.. no notices etc I think you can close this..

I’m wondering if someone else was doing any work on our servers…

#5

BoldMinded (Brian)

yeah, this seems very odd. I’ve yet to see a similar report, so not sure what is going on. Just open a new ticket and reference this one if it acts up again.

Login to reply