zikula-modules / Scribite

Integrate WYSIWYG editors for Zikula and its modules.
30 stars 7 forks source link

ContextErrorException in ThemeUtil.php line 163: Notice: Array to string conversion #154

Closed robbrandt closed 8 years ago

robbrandt commented 8 years ago

This happens when submitting changes to the TinyMCE plugin

in ThemeUtil.php line 163
at ErrorHandler->handleError('8', 'Array to string conversion', '/Users/robbrandt/Documents/htdocs/zcs1/lib/legacy/util/ThemeUtil.php', '163', array('theme' => array('modern'))) in ThemeUtil.php line 163
at ThemeUtil::getIDFromName(array('modern')) in UserUtil.php line 1293
at UserUtil::getTheme() in ThemeUtil.php line 294
at ThemeUtil::getModuleStylesheet('ZikulaSecurityCenterModule') in ModUtil.php line 929
at ModUtil::_loadStyleSheets('ZikulaSecurityCenterModule', false, 'user') in ModUtil.php line 887
at ModUtil::loadGeneric('ZikulaSecurityCenterModule', 'user', false) in ModUtil.php line 797
at ModUtil::load('ZikulaSecurityCenterModule') in Core.php line 494
at Zikula_Core->init('4095', object(Zikula_Request_Http)) in index.php line 18
craigh commented 8 years ago

none of those are Scribite methods. Can you please outline in more detail what's happening?

also are you using a custom (non-core) theme?

robbrandt commented 8 years ago

No, everything is core. Andreas08. Just tried it with Bootstrap and I get the same error. It may not be a Scribite error since it's a plugin accessed at http://localhost/zcs1/extensions/adminplugin/dispatch?_module=Scribite&_plugin=TinyMce&_action=configure but since it's the only scribite plugin that does it I tend to think it's an error in the plugin.

craigh commented 8 years ago

well this at ThemeUtil::getIDFromName(array('modern')) in UserUtil.php line 1293 is the root of the problem. perhaps the plugin is attempting to set the theme var in the query and the system is getting confused.

Guite commented 8 years ago

I'll take a look tomorrow.

Guite commented 8 years ago

@robbrandt which core version?

robbrandt commented 8 years ago

Build 155.

Guite commented 8 years ago

Fixed in 8a624a8956cb990d6619ab65cfdf5b9e020f0570