急救!!php+smarty网站上传安装问题!!
我在本地开发、测试好了网站,当上传到虚拟主机时,出现一大推错误,怎么办啊?错误如下:Notice:Useofundefinedconstantpage-assumed'x...
我在本地开发、测试好了网站,当上传到虚拟主机时,出现一大推错误,怎么办啊?错误如下:
Notice: Use of undefined constant page - assumed 'xxx' in X:\xxx\xxx
都是这样的错误!网站是php+smarty的,有高手能帮解决吗?
Notice: Use of undefined constant page - assumed 'page' in F:\freehost\ruolin\web\common\page.class.php on line 9
Notice: Undefined index: page in F:\freehost\ruolin\web\common\page.class.php on line 9
Notice: Use of undefined constant pageft - assumed 'pageft' in F:\freehost\ruolin\web\common\page.class.php on line 10
Notice: Use of undefined constant ALL_PS - assumed 'ALL_PS' in F:\freehost\ruolin\web\global.php on line 9
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant id - assumed 'id' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant id - assumed 'id' in F:\freehost\ruolin\web\index.php on line 8
【都是这种提示,在本地服务器好好的啊】 展开
Notice: Use of undefined constant page - assumed 'xxx' in X:\xxx\xxx
都是这样的错误!网站是php+smarty的,有高手能帮解决吗?
Notice: Use of undefined constant page - assumed 'page' in F:\freehost\ruolin\web\common\page.class.php on line 9
Notice: Undefined index: page in F:\freehost\ruolin\web\common\page.class.php on line 9
Notice: Use of undefined constant pageft - assumed 'pageft' in F:\freehost\ruolin\web\common\page.class.php on line 10
Notice: Use of undefined constant ALL_PS - assumed 'ALL_PS' in F:\freehost\ruolin\web\global.php on line 9
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant id - assumed 'id' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant name - assumed 'name' in F:\freehost\ruolin\web\index.php on line 8
Notice: Use of undefined constant id - assumed 'id' in F:\freehost\ruolin\web\index.php on line 8
【都是这种提示,在本地服务器好好的啊】 展开
展开全部
模板里的某个变量没有被赋值
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
唉,网络环境是不一样的,你需要有个配置文件,来配置环境变量,物理路径一定要设置成自动获取的,不然一旦移动就出错
比如你定义的是 $baseurl = dirname(__FILE__);这样的
比如你定义的是 $baseurl = dirname(__FILE__);这样的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
肯定是好多本地的信息你没改过来,上传到服务器后很多文件需要重新修改的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
或者你试下把那些例如$info[id]改成$info['id']这些看看行不。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询