令人沮丧的Smarty错误:对未定义函数phperror_reporting的调用 [英] Frustrating Smarty Error : call to undefined function phperror_reporting

查看:169
本文介绍了令人沮丧的Smarty错误:对未定义函数phperror_reporting的调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将网站上传到服务器上,但始终出现以下错误:

I am trying to upload my site onto the server but I keep getting the following error:

Fatal error: Call to undefined function phperror_reporting() in /home/jagani/public_html/theforum/forumfiles.php on line 1

文件的前几行是:

<?php

error_reporting(E_ALL^E_NOTICE);

session_start();

似乎php和error_reporting之间的空间没有被注册.感谢您对这个问题的任何见识.

Seems that the space between the php and error_reporting isn't being registered. I'd appreciate any insight on this problem.

推荐答案

正如您所说,这听起来像是空白的问题.如果您拥有ssh访问权限,我将尝试通过键入vi test.php然后输入以下代码来创建一个测试php文件:

As you said, it sounds like a problem with the whitespace. If you've got ssh access, I'd try creating a test php file by typing vi test.php and then putting the following code:

<?php

print("test");

?>

尝试查看该文件并查看其是否有效;如果是这样,则您的问题是编码问题,您可以通过在受影响的文件上运行dos2unix来解决此问题.它只会影响一个文件(和/或其他文件),还是系统上的任何php文件?

Try viewing that file and see if it works; if so, then your problem is an encoding issue, which you might be able to fix by running dos2unix on the affected file. Does it only affect that one file (and/or others) or is it any php file on the system?

这篇关于令人沮丧的Smarty错误:对未定义函数phperror_reporting的调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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