Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 后台办公室中的每一页都需要重新登录,但底部的“开发”面板未显示_Php_Apache_Prestashop_Prestashop 1.7_Php 7.1 - Fatal编程技术网

Php 后台办公室中的每一页都需要重新登录,但底部的“开发”面板未显示

Php 后台办公室中的每一页都需要重新登录,但底部的“开发”面板未显示,php,apache,prestashop,prestashop-1.7,php-7.1,Php,Apache,Prestashop,Prestashop 1.7,Php 7.1,我在mac pro和macbook pro上本地安装了prestashop,没有任何问题 我想继续生产,我在谷歌云平台上创建了一个Kubernetes集群,并在PHP7.1.13上从git(branchstableVersion1.7.2.4)安装了prestashop,mariadb 10.3.4作为数据库,apache 2.4.10作为web服务器 我有两个问题 使用后台,每当我尝试浏览其他页面时,它都会要求我重新登录 在后台,未显示底部的“开发模式”面板 我注意到,登录后,在googl

我在mac pro和macbook pro上本地安装了prestashop,没有任何问题

我想继续生产,我在谷歌云平台上创建了一个Kubernetes集群,并在PHP7.1.13上从git(branch
stable
Version1.7.2.4)安装了prestashop,mariadb 10.3.4作为数据库,apache 2.4.10作为web服务器

我有两个问题

  • 使用后台,每当我尝试浏览其他页面时,它都会要求我重新登录

  • 在后台,未显示底部的“开发模式”面板

  • 我注意到,登录后,在google chrome开发者控制台中,我看到以下错误:

    Uncaught TypeError: Cannot read property 'advices_to_display' of null
        at Object.success (gamification_bt.js:24)
        at j (jquery-1.11.0.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
        at x (jquery-1.11.0.min.js:4)
        at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
    
    我不知道这是否与我的问题有关

    我还检查了cookies,发现我有一个cookie,名为
    PHPSESSID
    当我尝试重新登录时,它的值不会改变,所以它是新的,就像它创建了一个新会话一样

    我的
    phpinfo()
    输出位于

    我尝试过不使用apache模块
    mod_security2
    mod_evasive
    ,但问题仍然存在

    我检查了需求并启用了所有相关的php模块(可以在phpinfo输出中看到),但它也没有改变任何东西

    我有点迷路了,所以任何关于这个问题的信息都将不胜感激

    更新 我注意到,当我进入订单页面时,我在google chrome开发者控制台中看到以下错误:

    index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1012 Uncaught TypeError: Cannot read property 'has_errors' of null
        at Object.success (index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1012)
        at j (jquery-1.11.0.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
        at x (jquery-1.11.0.min.js:4)
        at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
    success @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1012
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    x @ jquery-1.11.0.min.js:4
    b @ jquery-1.11.0.min.js:4
    XMLHttpRequest.send (async)
    (anonymous) @ VM2175:1
    send @ jquery-1.11.0.min.js:4
    ajax @ jquery-1.11.0.min.js:4
    refresh_box_conversion_rate @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1005
    (anonymous) @ admin.js?v=1.7.2.0:1614
    each @ jquery-1.11.0.min.js:2
    each @ jquery-1.11.0.min.js:2
    refresh_kpis @ admin.js?v=1.7.2.0:1607
    (anonymous) @ admin.js?v=1.7.2.0:956
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    ready @ jquery-1.11.0.min.js:2
    K @ jquery-1.11.0.min.js:2
    index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1052 Uncaught TypeError: Cannot read property 'has_errors' of null
        at Object.success (index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1052)
        at j (jquery-1.11.0.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
        at x (jquery-1.11.0.min.js:4)
        at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
    success @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1052
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    x @ jquery-1.11.0.min.js:4
    b @ jquery-1.11.0.min.js:4
    XMLHttpRequest.send (async)
    (anonymous) @ VM2175:1
    send @ jquery-1.11.0.min.js:4
    ajax @ jquery-1.11.0.min.js:4
    refresh_box_carts @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1045
    (anonymous) @ admin.js?v=1.7.2.0:1614
    each @ jquery-1.11.0.min.js:2
    each @ jquery-1.11.0.min.js:2
    refresh_kpis @ admin.js?v=1.7.2.0:1607
    (anonymous) @ admin.js?v=1.7.2.0:956
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    ready @ jquery-1.11.0.min.js:2
    K @ jquery-1.11.0.min.js:2
    index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1092 Uncaught TypeError: Cannot read property 'has_errors' of null
        at Object.success (index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1092)
        at j (jquery-1.11.0.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
        at x (jquery-1.11.0.min.js:4)
        at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
    success @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1092
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    x @ jquery-1.11.0.min.js:4
    b @ jquery-1.11.0.min.js:4
    XMLHttpRequest.send (async)
    (anonymous) @ VM2175:1
    send @ jquery-1.11.0.min.js:4
    ajax @ jquery-1.11.0.min.js:4
    refresh_box_average_order @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1085
    (anonymous) @ admin.js?v=1.7.2.0:1614
    each @ jquery-1.11.0.min.js:2
    each @ jquery-1.11.0.min.js:2
    refresh_kpis @ admin.js?v=1.7.2.0:1607
    (anonymous) @ admin.js?v=1.7.2.0:956
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    ready @ jquery-1.11.0.min.js:2
    K @ jquery-1.11.0.min.js:2
    index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1132 Uncaught TypeError: Cannot read property 'has_errors' of null
        at Object.success (index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1132)
        at j (jquery-1.11.0.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
        at x (jquery-1.11.0.min.js:4)
        at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
    success @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1132
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    x @ jquery-1.11.0.min.js:4
    b @ jquery-1.11.0.min.js:4
    XMLHttpRequest.send (async)
    (anonymous) @ VM2175:1
    send @ jquery-1.11.0.min.js:4
    ajax @ jquery-1.11.0.min.js:4
    refresh_box_net_profit_visit @ index.php?controller=AdminOrders&token=89ba607af3ec7e91bba30f2f9358a922:1125
    (anonymous) @ admin.js?v=1.7.2.0:1614
    each @ jquery-1.11.0.min.js:2
    each @ jquery-1.11.0.min.js:2
    refresh_kpis @ admin.js?v=1.7.2.0:1607
    (anonymous) @ admin.js?v=1.7.2.0:956
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    ready @ jquery-1.11.0.min.js:2
    K @ jquery-1.11.0.min.js:2
    util.js:248 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
    TC.j @ util.js:248
    (anonymous) @ js?v=3.exp:147
    (anonymous) @ js?v=3.exp:62
    (anonymous) @ js?v=3.exp:60
    (anonymous) @ js?v=3.exp:62
    (anonymous) @ js?v=3.exp:125
    (anonymous) @ js?v=3.exp:60
    (anonymous) @ js?v=3.exp:125
    (anonymous) @ js?v=3.exp:60
    (anonymous) @ js?v=3.exp:125
    ae @ js?v=3.exp:62
    $d.na @ js?v=3.exp:125
    (anonymous) @ util.js:1
    js?v=3.exp:38 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
    _.Pb @ js?v=3.exp:38
    (anonymous) @ common.js:54
    (anonymous) @ common.js:199
    c @ common.js:48
    (anonymous) @ AuthenticationService.Authenticate?1shttp%3A%2F%2Fwww.xn----3hckih2ap0e.co.il%2Fadmin-dev%2Findex.php%3Fcontroller%3DAdminOrders%26token%3D89ba607af3ec7e91bba30f2f9358a922&callback=_xdc_._vg6xgl&token=72227:1
    
    我也不知道这是否有关系。。我只是想提供尽可能多的信息


    这个问题也与某种超时无关,因为即使在我尝试加载另一个页面的一秒钟后,它仍会要求我重新登录。

    如果后台需要登录,可能是因为两个原因:

  • 您的ip已更改,并且Prestashop设置为检查员工ip
  • Cookie已过期或服务器未接收到Cookie 要检查是否是第一种情况,请转到管理->首选项并禁用检查cookie的ip地址。 由于您有一个kubernetes群集,因此您的ip更改可能是群集设置/工作方式的结果

    如果是与cookie相关的问题,则可以通过检查cookie集以及服务器是否接收到cookie来进行调试


    至于调试工具栏,只有在调试模式打开时才显示,并且在使用symfony的页面中显示。例如,在产品页面和模块中。要启用调试模式,您可以编辑文件
    config/defines.inc.php
    并设置
    define(“PS\u mode\u DEV”,true)或在高级参数->性能中,并将调试模式设置为是。

    尝试以下方法:

    登录到管理面板(或后台办公室)

    配置->管理->高级参数->常规


    禁用
    检查cookie的IP地址设置
    并单击“保存”按钮保存设置。

    是否调试cookie有效性?或者可能是与ip相关的问题。尝试转到管理->首选项并禁用检查cookie的ip地址检查。您还可以在这里设置cookie的生存期。@sadlyblue-welp。。禁用ip检查修复了该问题。谢谢:)知道为什么我的底部prestashop调试面板不可见吗?我认为这些问题是相关的,但事实并非如此。不管怎样,把它作为答案贴出来,我会接受的。这可能需要一个不同的问题。