将Laravel项目上传到服务器错误500

时间:2018-03-22 20:07:39

标签: php laravel

我将我的网站上传到我的服务器,现在它返回错误500,我搜索了超过5个小时,我的服务器使用的是php 7.0,本地我的项目正在使用php 7.2

我检查了日志,它只返回1个错误500和2个警告

  

mod_fcgid:stderr:PHP Parse错误:语法错误,意外'?',期望变量(T_VARIABLE)在/var/www/vhosts/placarama.com.br/httpdocs/vendor/symfony/finder/Comparator/NumberComparator中。第42行的PHP

另外,

  

mod_fcgid:stderr:PHP致命错误:在第0行的“未知”中没有堆栈帧的情况下抛出异常

调试我的代码,我注意到在此代码之前的index.php中发生了错误

from random import randint attempts = 0 print("What would you like to test-roll today?") print("(64, 128, 256, 384, 512, 1024, 5000") inp = str(input()) lootTable = {"1024":1024, "128":128, "256":256, "5000":5000, "512":512, "384":384, "64":64} while True: rnd = randint(1,lootTable[inp]) attempts += 1 print("Rolling for %s (1/%d), attempt %d" %(inp, lootTable[inp], attempts)) if rnd == 1: break print("%s acquired on attempt %d!" %(inp, attempts))

之后

$response->send();

也许在这里

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

0 个答案:

没有答案
相关问题