dosi8657 2012-12-08 00:44
浏览 50
已采纳

PHP致命错误:找不到类

I am getting Class 'Splash\\SiteBundle\\Util\\Resize' not found when running my app on prod. This does not happen on dev.

Here is the code from the error:

$resize = new \Splash\SiteBundle\Util\Resize($this->getAbsolutePath());

I have a file called Splash\SiteBundle\Util\Resize.php with this namespace

namespace Splash\SiteBundle\Util;

Class Resize{  ... }

Any thoughts?

  • 写回答

3条回答 默认 最新

  • duandai2178 2012-12-08 20:43
    关注

    I love when its the little things. My util folder was not capitalized. I changed this and it works now. I'm surprised my dev machine did not fail w this error.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 PdfiumViewer pdf转图片
  • ¥15 利用Java连接API接口总是出问题
  • ¥15 请教一个关于镜头标定,棋盘格格子大小的问题(畸变测试)
  • ¥15 安装GroudingDINO RuntimeError: Error compiling objects for extension
  • ¥15 关于推送项目到github的问题
  • ¥15 急!C++指针编写相关的问题
  • ¥15 kerberos身份认证配置问题
  • ¥30 用python写一个多签情况下波场的代理资源和回收资源
  • ¥15 matlab学期例题代码答疑
  • ¥15 在线手电筒追加按钮JS