Groups
Groups
Sign in
Groups
Groups
bzfshop-group
Conversations
Labels
About
Send feedback
Help
新建主题 异常 Array to string conversion
36 views
Apache
Linux
程序安装
程序开发
Skip to first unread message
yangss
unread,
Jan 15, 2014, 11:25:29 PM
1/15/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bzfsho...@googlegroups.com
原因:主题保存配置用了 saveOptionValue,这个只能保存基本数据类型,int, string, 在配置文件中config.php中存在了一个 object 或者 array ,安装主题时出现错误。
可使用json_encode() 先变成 string。
bzfshop-support
unread,
Jan 19, 2014, 2:15:35 AM
1/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bzfsho...@googlegroups.com
saveOptionValue 只能保存基本的数据类型,int, string, 如果你是别的数据类型需要自己先转成 基本类型,
比如,你是一个 array,可以用 json_encode 转成 string 再保存
Reply all
Reply to author
Forward
0 new messages