dongzan0108 2013-06-23 19:39 采纳率: 0%
浏览 115
已采纳

Laravel 4:从本地服务器复制到实时服务器

I am trying to copy a project from localhost to live server done in Laravel 4 framework. On the local machine it is working, but I have this error in live server:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
/**********/laravel/bootstrap/autoload.php on line 46

Parse error: syntax error, unexpected T_STRING in 
/**********/laravel/bootstrap/autoload.php on line 46

I didn't modify those files.

Thanks

  • 写回答

1条回答 默认 最新

  • duanfu1945 2013-06-23 19:51
    关注

    At line 46 there is

    Patchwork\Utf8\Bootup::initAll();
    

    and php complaining for \ which means it doesn't supprt namespace, you have to upgrade to PHP 5 >= 5.3.0 because right now it's (on your live server) prior to PHP 5.3.0 and remember that laravel requires PHP >= 5.3.7 so upgrade your php version.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 QTableWidget重绘程序崩溃
  • ¥15 51寻迹小车定点寻迹
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
  • ¥15 麒麟V10桌面版SP1如何配置bonding