在functions.php的write上下文中不能使用函数返回值


php Fatal error: Can't use function return value in write context in functions.php

在尝试应用主题

时出现PHP致命错误
case('homeimage_texts'):
                if(!empty(Params::getParam('homeimage'))){
                    foreach(Params::getParam('homeimage',false,false,false) as $key => $value){
                        osc_set_preference($key,trim($value),'osclasswizards_theme');
                    }
                }
                osc_add_flash_ok_message(__('Banner settings updated correctly', OSCLASSWIZARDS_THEME_FOLDER), 'admin');
                osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/'.OSCLASSWIZARDS_THEME_FOLDER.'/admin/settings.php#banner'));
            break;

这看起来像是PHP版本问题。如果你使用的是PHP 5.3或以下版本,你可能会得到这个错误信息