du0204 2017-07-04 09:40
浏览 105

Wordpress - 警告:array_merge():参数#2不是第662行的wp-includes \ load.php中的数组

I have a problem in wordpress site. I get an error:

      Warning: array_merge(): Argument #2 is not an array in wp-includes\load.php on line 662

and because of this i cannot access admin area.

on line 662 in load.php file is this:

  $_REQUEST = array_merge( $_GET, $_POST );

which is a part of wp function:

     function wp_magic_quotes() {
        // If already slashed, strip.
       if ( get_magic_quotes_gpc() ) {
          $_GET    = stripslashes_deep( $_GET    );
          $_POST   = stripslashes_deep( $_POST   );
          $_COOKIE = stripslashes_deep( $_COOKIE );
       }

       // Escape with wpdb.
       $_GET    = add_magic_quotes( $_GET    );
       $_POST   = add_magic_quotes( $_POST   );
       $_COOKIE = add_magic_quotes( $_COOKIE );
       $_SERVER = add_magic_quotes( $_SERVER );

       // Force REQUEST to be GET + POST.
       $_REQUEST = array_merge( $_GET, $_POST );
     }

Has anyone ever encountered similar problem and maybe knows what can cause this.

I have tried to disable all the plugins and it didn't help

Thanks in advance for any help Rafal

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog