最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

insert

运维笔记admin13浏览0评论

insert

insert

insert_batch工作现场服务器;(insert_batch works live server; my server; but not on raspberry)

我在我的树莓中安装了PHP7.1,并将项目文件夹从我的个人计算机复制到树莓。

除了当我使用函数insert_batch时,我的整个项目在树莓中运行insert_batch 。

相同的代码正在我的在线服务器上运行,没有任何问题,并在我的个人计算机中。 有了这个说法,我唯一的结论是一些图书馆/依赖关系可能会丢失?

这是我试图插入: Array[0] = array('field_1' => 'value_field_1', 'field_2' => 'value_field_2');

我得到的错误是:

<p>Severity: Warning</p><p>Message: array_keys() expects parameter 1 to be array, boolean given</p><p>Filename: database/DB_query_builder.php</p><p>Line Number: 1520</p>

现在,我不会去编辑框架的核心,因为它在其他计算机上工作,它必须是一个配置问题。

要说清楚:我的现场服务器工作和使用Linux; 我的个人电脑工作,它与Xampp的窗口。

I've installed PHP7.1 in my raspberry and copy the project folder from my personal computer to the raspberry.

My whole project works fine in raspberry, except when I use the function insert_batch.

The same code is working on my online server without any problem and in my personal computer. With that said, my only conclusion is that some libraries/dependencies might be missing?

This is what I'm trying to insert: Array[0] = array('field_1' => 'value_field_1', 'field_2' => 'value_field_2');

And I'm getting the error:

<p>Severity: Warning</p><p>Message: array_keys() expects parameter 1 to be array, boolean given</p><p>Filename: database/DB_query_builder.php</p><p>Line Number: 1520</p>

Now, I won't go edit the core of the framework, because since it's working on other computers it must be a config issue.

To make it clear: my live server works and uses linux; my personal computer works and it's windows with Xampp.

最满意答案

几个月前我有同样的问题,我不记得。

已解决 。

CodeIgniter 3.0 insert_batch工作本地主机,但不在服务器上

I had the same issues months ago and I didn't remember.

Solved.

CodeIgniter 3.0 insert_batch works localhost but not on server

发布评论

评论列表(0)

  1. 暂无评论