Codeigniter 未运行类定义 - PHP 或 Apache 配置问题
我刚刚将工作站点文件上传到一个新服务器,我知道该服务器可能存在 php/apache 配置问题,因为我必须与服务器管理员合作才能将它们整理出来。
当我访问该网站时,我没有收到任何错误,只是一个空白页面。我知道默认控制器正在运行,就像我在打印的类之外回显某些内容一样,但在类构造函数内部同样不执行任何操作。
我预计这与服务器配置问题有关,因为我已经让该站点在本地工作并在另一台服务器上运行了一年多,但 codeigniter 设置可能有问题。
非常感谢任何帮助。 干杯
I just uploaded working site files to a new server which I know is likely to have php/apache config problems as I've had to work with the server admin to sort them out to get this far.
When I visit the the site I don't get any errors just a blank page. I know that the default controller is being run as if I echo something outside the class it gets printed but the same inside the class constructor does nothing.
I expect this to be related to a server config issue as I have had the site working locally and live on another server for over a year but it is possible that there is something wrong with the codeigniter setup.
Any help greatly appreciated.
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果发现新服务器的 PHP 版本略有升级,需要我更新 Codeigniter。更新后工作正常。
奇怪的是它没有产生任何错误
Turned out that the new server had a slightly upgraded version of PHP which required me to update Codeigniter. After the update it worked fine.
Strange that it didn't produce any errors though