【问题标题】:Bonfire Database error篝火数据库错误
【发布时间】:2015-09-24 15:24:28
【问题描述】:

我是第一次使用 ciBonfire,它看起来非常好,很有希望开始开发和其他东西。

安装顺利,没有问题。但是当我尝试使用它的管理面板来保存新设置时,它给了我如下错误:

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: database/DB_driver.php

Line Number: 1440

Backtrace:

我在 Bonfire 论坛上提出了这个问题,但似乎没有人在那儿活跃。 如果有人可以看看这个,那将非常有帮助。

错误号:1048

Le champ 'value' ne peut être vide (null)

更新bf_settings SET value = CASE WHEN name = 'site.title' THEN '我的篝火' WHEN name = 'site.system_email' THEN 'admin@mybonfire.com' WHEN name = 'site.status' THEN '1' WHEN name = 'site.list_limit' THEN '25' WHEN name = 'auth.allow_register' THEN 1 WHEN name = 'auth.user_activation_method' THEN 0 WHEN name = 'auth.login_type' THEN 'email' WHEN name = 'auth.use_usernames' THEN '1' 当name = 'auth.allow_remember' 那么 1 当name = 'auth.remember_length' THEN 1209600 当name = 'auth.use_extended_profile' THEN 0 WHEN name = 'auth.allow_name_change' THEN 1 当name = 'auth.name_change_frequency' THEN '1' 当name = 'auth.name_change_limit' THEN '1' 当name = 'auth.password_min_length' THEN '8' 当name = 'auth.password_force_numbers' THEN NULL WHEN name = 'auth.password_force_symbols' THEN NULL WHEN name = 'auth.password_force_mixed_case' THEN NULL WHEN name = 'auth.password_show_labels' THEN 0 WHEN name = 'password_iterations' 那么'8' 当name = 'site.show_profiler' 那么1 当name = 'site.show_front_profiler' THEN 1 WHEN name = 'site.languages' THEN 'a:3:{i:0;s:7:\"english\";i:1;s:7:\"波斯语\";i:2;s:10:\"葡萄牙语\";}' 否则value 结束于name IN('site.title','site.system_email','site.status','site.list_limit','auth.allow_register','auth.user_activation_method','auth.login_type','auth.use_usernames', 'auth.allow_remember','auth.remember_length','auth.use_extended_profile','auth.allow_name_change','auth.name_change_frequency','auth.name_change_limit','auth.password_min_length','auth.password_force_numbers','auth .password_force_symbols','auth.password_force_mixed_case','auth.password_show_labels','password_iterations','site.show_profiler','site.show_front_profiler','site.languages')

文件名:E:/wamp/www/mpa/bonfire/core/BF_Model.php

行号:622

【问题讨论】:

    标签: php codeigniter settings bonfire


    【解决方案1】:

    我遇到了同样的问题,我通过更新( V0.8.0 到 V0.8.1 )修复了它 更新后,设置现在可以正常工作了。

    您可以在这里查看我的帖子以获取更多信息: http://forums.cibonfire.com/discussion/comment/4519/#Comment_4519

    可以在这里查看最新的更新日志: https://github.com/ci-bonfire/Bonfire/blob/master/bonfire/docs/changelog.md

    确保您是最新的 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 2015-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多