【问题标题】:Upgrade v2.2 to v2.3.4.1 after getting Admin Error in Oscommerce在 Oscommerce 中出现管理员错误后将 v2.2 升级到 v2.3.4.1
【发布时间】:2021-10-19 13:26:51
【问题描述】:

在前台商店完全运行后,我已将 OSCommerce v2.2 升级到 v2.3.4.1。但管理员收到如下错误:

警告:使用未定义的常量 ENABLE_SSL - 假定为“ENABLE_SSL” (这将在 PHP 的未来版本中引发错误) /home/inceptio/public_html/curtispayments/test-os/admin/includes/functions/html_output.php 第 14 行

警告:无法修改标头信息 - 标头已由 (输出开始于 /home/inceptio/public_html/curtispayments/test-os/admin/includes/functions/html_output.php:14) 在 /home/inceptio/public_html/curtispayments/test-os/admin/includes/functions/general.php 第 25 行

我已经在我的网站上启用了 SSL。另外,在两个 configure.php 文件中添加以下代码

define('ENABLE_SSL', true);

当我在管理员 configure.php 中插入上述代码时:

此页面无法正常工作

管理员:https://inceptionsystem.com/curtispayments/test-os/admin/

正面:https://inceptionsystem.com/curtispayments/test-os/

我该如何解决这个问题?有没有人建议非常感谢?

谢谢

【问题讨论】:

    标签: php ssl oscommerce


    【解决方案1】:

    OK 很容易找到这样的文件和行 在存储根目录中创建一个文件 在 bash 外壳中 您必须在“目录”上方的目录中 将其复制并粘贴到 bash shell 中

    BA=$(cat <<-ENDBA
    #!/bin/bash
    file="allcode"
    catalog="catalog"
    today="\`date -u +\"%Y%m%d%H%M%S\"\`" 
    if [ -s "\$file" ]
    then 
       echo "File \$file exists and is not empty "
       FILE="\$file_pre_\$today"
       echo "Preserving older allcode File to: \$FILE"
       mv \$file \$FILE
       echo "....creating New \$file file"
    else
       FILE="\$file"
       echo " file \$file does not exist, or is empty "
       echo "....creating file \$file"
    fi
    grep -I  -n  -r "." \$catalog  | egrep  -e ".php*:" -e ".js:" -e ".sql:" -e ".css:" -e ".xml:" -e ".crt:" -e ".ht*:" >\$FILE
    ENDBA
    )
    BL=$(cat <<-ENDBL
    #!/bin/bash
    if [ \$# -eq 0 ]; then
        echo "No arguments provided"
        echo -n " Enter Search String "
        read search
        if [ -z "\$search" ]
        then 
            exit 1
        else
            echo " Searching for string \$search "
        fi
    else
      search=\$1
      echo " Searching for string \$search " 
    fi
    cat allcode | egrep -e \$search| egrep  -e ".php*:" >\$search.found 
    #cat allcode | egrep -e "\$search"| egrep  -e ".php*:" -e ".js:" -e ".sql:" -e ".css:" -e ".xml:" -e ".crt:" -e ".ht*:">\$search.found
    echo -n "Matching Lines Found "; wc -l \$search.found
    cat \$search.found | sed -e "s/:.*/:/g" | sort -u>\$search.files
    echo -n "Matching Files Found are "; wc -l  \$search.files
    #comment out line 7 and un-comment line 8 for looking in all code not just PHP
    ENDBL
    )
    echo -e "$BL" >bl
    echo -e "$BA" >ba
    sudo chmod u+x ba bl
    ./ba
    #now all  your code is backed up and you can search it
    

    希望我所有的转义都是正确的:(

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-03
    • 1970-01-01
    • 2015-01-21
    • 2013-09-07
    • 2020-01-19
    • 2014-10-06
    相关资源
    最近更新 更多