laravel PHP;传入的参数无效,Rels.php [closed]

k2fxgqgv  于 2022-12-01  发布在  PHP
关注(0)|答案(1)|浏览(94)

已关闭。此问题需要details or clarity。当前不接受答案。
**想要改进此问题吗?**通过editing this post添加详细信息并阐明问题。

昨天关门了。
Improve this question
我试图导出一个excel文件与刀片在某些情况下我可以导出,但有时它返回一个异常[INVALID PARAMETERS PASSED IN. Rels.php]

PhpOffice\PhpSpreadsheet\Writer\Exception: Invalid parameters passed. in /var/www/html/social/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Rels.php:423 Stack trace: #0 /var/www/html/social/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Rels.php(229): PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels->writeRelationship(Object(PhpOffice\PhpSpreadsheet\Shared\XMLWriter), '_hyperlink_126', 'http://schemas....', '', 'External') #1 /var/www/html/social/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(290): PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels->writeWorksheetRelationships(Object(PhpOffice\PhpSpreadsheet\Worksheet\Worksheet), 2, true) #2 /var/www/html/social/vendor/maatwebsite/excel/src/Writer.php(140): PhpOffice\PhpSpreadsheet\Writer\Xlsx->save('/var/www/html/s...') #3 /var/www/html/social/vendor/maatwebsite/excel/src/Writer.php(70): Maatwebsite\Excel\Writer->write(Object(App\Exports\SearchReportExport), Object(Maatwebsite\Excel\Files\LocalTemporaryFile), 'Xlsx') #4 /var/www/html/social/vendor/maatwebsite/excel/src/Excel.php(195): Maatwebsite\Excel\Writer->export(Object(App\Exports\SearchReportExport), 'Xlsx') #5 /var/www/html/social/vendor/maatwebsite/excel/src/Excel.php(99): Maatwebsite\Excel\Excel->export(Object(App\Exports\SearchReportExport), 'report/excel/16...', 'Xlsx') #6 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Maatwebsite\Excel\Excel->store(Object(App\Exports\SearchReportExport), 'report/excel/16...', 'gcs') #7 /var/www/html/social/app/Http/Controllers/SocialReportController.php(470): Illuminate\Support\Facades\Facade::__callStatic('store', Array) #8 /var/www/html/social/app/Jobs/ReportHandlerJob.php(42): App\Http\Controllers\SocialReportController->generateExcel(Array) #9 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\ReportHandlerJob->handle() #10 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container{closure}() #11 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure)) #12 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure)) #13 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL) #14 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array) #15 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}(Object(App\Jobs\ReportHandlerJob)) #16 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(App\Jobs\ReportHandlerJob)) #17 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #18 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(83): Illuminate\Bus\Dispatcher->dispatchNow(Object(App\Jobs\ReportHandlerJob), false) #19 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}(Object(App\Jobs\ReportHandlerJob)) #20 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(App\Jobs\ReportHandlerJob)) #21 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(85): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #22 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(59): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\Queue\Jobs\DatabaseJob), Object(App\Jobs\ReportHandlerJob)) #23 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(88): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\DatabaseJob), Array) #24 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(368): Illuminate\Queue\Jobs\Job->fire() #25 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(314): Illuminate\Queue\Worker->process('database', Object(Illuminate\Queue\Jobs\DatabaseJob), Object(Illuminate\Queue\WorkerOptions)) #26 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(134): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\DatabaseJob), 'database', Object(Illuminate\Queue\WorkerOptions)) #27 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\Queue\Worker->daemon('database', 'high', Object(Illuminate\Queue\WorkerOptions)) #28 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\Queue\Console\WorkCommand->runWorker('database', 'high') #29 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle() #30 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container{closure}() #31 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure)) #32 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure)) #33 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL) #34 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\Container\Container->call(Array) #35 /var/www/html/social/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle)) #36 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle)) #37 /var/www/html/social/vendor/symfony/console/Application.php(1009): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #38 /var/www/html/social/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #39 /var/www/html/social/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #40 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #41 /var/www/html/social/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #42 /var/www/html/social/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #43 {main}

请帮助,我不知道如何修复它,我不能在我的本地电脑上重现错误。
谢谢

ifmq2ha2

ifmq2ha21#

如果你试图从blade创建一个excel文件,试着删除除了table标签之外的所有标签。这可能会有帮助。

相关问题