讨论 使用交流 500错误

500错误

英姐 发表于    阅读:376    回复:3
[2023-12-14 15:26:29] beta.ERROR: ErrorException: Undefined index: downloadCountBase in D:\phpstudy_pro\WWW\cad\module\Wenku\Api\Controller\WenkuDocController.php:7
Stack trace:
#0 D:\phpstudy_pro\WWW\cad\module\Wenku\Api\Controller\WenkuDocController.php(7): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined index...', 'D:\\phpstudy_pro...', 7, Array)
#1 D:\phpstudy_pro\WWW\cad\module\Wenku\Web\Controller\WenkuController.php(7): Module\Wenku\Api\Controller\WenkuDocController->get()
#2 [internal function]: Module\Wenku\Web\Controller\WenkuController->show('tj4751wxwl')
#3 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(256): call_user_func_array(Array, Array)
#4 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(164): Illuminate\Routing\Controller->callAction('show', Array)
#5 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(112): Illuminate\Routing\ControllerDispatcher->call(Object(Module\Wenku\Web\Controller\WenkuController), Object(Illuminate\Routing\Route), 'show')
#6 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#7 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#8 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#9 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#10 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#11 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Module\Wenku\Web\Controller\WenkuController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'show')
#12 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), '\\Module\\Wenku\\W...', 'show')
#13 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#14 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#15 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#16 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#17 D:\phpstudy_pro\WWW\cad\module\Member\Middleware\WebAuthMiddleware.php(7): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#18 [internal function]: Module\Member\Middleware\WebAuthMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#19 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#20 D:\phpstudy_pro\WWW\cad\vendor\modstart\modstart\src\App\Web\Middleware\BootstrapMiddleware.php(7): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 [internal function]: ModStart\App\Web\Middleware\BootstrapMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#22 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#23 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#25 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#26 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Router.php(673): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#27 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Routing\Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#28 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#29 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#30 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#31 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#34 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#37 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#40 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#42 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#43 D:\phpstudy_pro\WWW\cad\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#44 D:\phpstudy_pro\WWW\cad\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#45 {main}


评论

根据错误提示诊断到应该是系统升级不完全导致的。

参考链接 https://modstart.com/doc/install/upgrade.html 中《系统升级未完全如何手动补救》部分自行解决。

 

文库还原打开就首页正常,栏目页和文档页都出现500错误

 

是的,升级后会增加这个字段,但是看错误提示是你的表里面没有,所以需要按照刚发的升级说明手动完成升级。

 
1
我来评论
QQ
微信
客服