symphonycms/symphony-2 — Issue #969: [2.3 beta] Configuration::write() causes an error
Author: kanduvisla
Created: 2011-12-12 12:34:22+00:00
State: open

When I try to save the configuration from my extension, it throws an error.

I am updating CKEditor, and saving the configration using the recommended `Configuration::write()`-method as described in the [Migration Guide](https://github.com/symphonycms/symphony-2/wiki/Migration-Guide-for-2.3-for-Extension-Developers).

However, it throws an error:

Object of class extension_ckeditor could not be converted to string

Looking into the function it makes sense this error is thrown, because I'm trying to call a static function `write()` on the Configuration-object from my Extension driver-class. When I look into the function on `class.configuration.php`:184, I see the function is public, but not static. Furthermore, there are references to `$this` in the function which I believe is not possible in static functions. Therefore `$this` refers to the parent class (the driver for ckeditor in my case) which cannot be converted to a string on line 193. Not sure what it does with `$this->_properties`, since these are none-existent.

Calling the function like `Symphony::Configuration()->write()` does produce the expected behavior, which makes me wonder: is this a bug in the code or in the documentation? Anyway, something needs to be adjusted.