将index.php链接到我网站的其他部分时遇到问题 [英] Having issues with index.php linking to the rest of my site

查看:74
本文介绍了将index.php链接到我网站的其他部分时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好希望你们都做得很好..今天我的网站出现了问题我已经安装了一个新脚本,我根据安装进行了配置但是我有这个错误



[08-May-2017 11:45:55 UTC] PHP注意:第236行的/home/rootmov6/public_html/index.php中的未定义变量:cachekey_plain



我知道它不会太多,但我会非常感谢任何指导如果您需要更多信息,请告诉我。



< b>我尝试了什么:



我尝试删除使用cachekey执行的代码行但没有任何乐趣只会进一步加剧错误

Hello hope you are all doing well.. Today I am having an issue with my website I have installed a new script and I have configured it according to installation but I have this error

[08-May-2017 11:45:55 UTC] PHP Notice: Undefined variable: cachekey_plain in /home/rootmov6/public_html/index.php on line 236

I know its not much to go on but I would be most grateful for any guidance If you need anymore information please let me know.

What I have tried:

I have tried removing lines of code to-do with cachekey but no joy it just furthers the error

推荐答案

这不是错误,而是通知。它通知您变量
That is not an error but a notification. It informs you that the variable


cachekey_plain 未定义。



因为这会导致未定义或不需要的行为,你应该通过定义和初始化脚本变量并检查可选变量来消除消息:

cachekey_plain is undefined.

Because such can result in undefined or unwanted behaviour, you should get rid of the message by defining and initialising script variables and check optional variables before accessing them:
// Define and initialise variable 


cachekey_plain = ;

// 检查变量是否存在(例如
cachekey_plain = ""; // Check if variable exists (e.g. for


这篇关于将index.php链接到我网站的其他部分时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆