简体   繁体   English

致命错误:未捕获的错误:在应用程序/代码/DeviceDetector/Yaml/Spyc.php中找不到类“ Spyc”

[英]Fatal error: Uncaught Error: Class 'Spyc' not found in app/code/DeviceDetector/Yaml/Spyc.php

I am facing the issue with order placing on Magento ver. 在Magento ver上下订单时面临问题 2.2.2 . 2.2.2 After complete the payment when I will redirect to website https://domainname/paypal/express/placeOrder/ page and error display on that page. 付款完成后,我将重定向到网站https://domainname/paypal/express/placeOrder/页面,并在该页面上显示错误。

Please check the error below, 

Fatal error: Uncaught Error: Class 'Spyc' not found in /public_html/app/code/DeviceDetector/Yaml/Spyc.php:17 Stack trace: #0 /public_html/app/code/DeviceDetector/Parser/ParserAbstract.php(155): DeviceDetector\\Yaml\\Spyc->parseFile('/p...') #1 /public_html/app/code/DeviceDetector/Parser/ParserAbstract.php(243): DeviceDetector\\Parser\\ParserAbstract->getRegexes() #2 /public_html/app/code/DeviceDetector/Parser/Bot.php(53): DeviceDetector\\Parser\\ParserAbstract->preMatchOverall() #3 /public_html/app/code/DeviceDetector/DeviceDetector.php(623): DeviceDetector\\Parser\\Bot->parse() #4 /public_html/app/code/DeviceDetector/DeviceDetector.php(587): DeviceDetector\\DeviceDetector->parseBot() #5 /public_html/app/code/MageWorx/OrdersBase/Observer/OrderPlaced.php(107): DeviceDetector\\DeviceDetector->parse() #6 /public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): MageWorx\\OrdersBase\\Observer\\OrderPlaced- in /public_html/app/code/DeviceDetector/Yaml/Spyc.php on line 17 致命错误:未捕获错误:在/public_html/app/code/DeviceDetector/Yaml/Spyc.php:17中找不到类'Spyc':堆栈跟踪:#0 /public_html/app/code/DeviceDetector/Parser/ParserAbstract.php(155 ):DeviceDetector \\ Yaml \\ Spyc-> parseFile('/ p ...')#1 /public_html/app/code/DeviceDetector/Parser/ParserAbstract.php(243):DeviceDetector \\ Parser \\ ParserAbstract-> getRegexes()# 2 /public_html/app/code/DeviceDetector/Parser/Bot.php(53):DeviceDetector \\ Parser \\ ParserAbstract-> preMatchOverall()#3 /public_html/app/code/DeviceDetector/DeviceDetector.php(623):DeviceDetector \\ Parser \\ Bot-> parse()#4 /public_html/app/code/DeviceDetector/DeviceDetector.php(587):DeviceDetector \\ DeviceDetector-> parseBot()#5 / public_html / app / code / MageWorx / OrdersBase / Observer / OrderPlaced。 php(107):DeviceDetector \\ DeviceDetector-> parse()#6 /public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72):MageWorx \\ OrdersBase \\ Observer \\ OrderPlaced-在/ public_html / app / code中第17行的/DeviceDetector/Yaml/Spyc.php

The error is seems related to the DeviceDetector plugin but I don't know why this issue happen & I have check the particular lines mentioned in error but no solution found. 该错误似乎与DeviceDetector plugin有关,但我不知道为什么会发生此问题,我已经检查了错误提及的特定行,但未找到解决方案。

Please let me know how to resolve this issue. 请让我知道如何解决此问题。 Thanks in Advance! 提前致谢!

Can you add more details here, after what action this error start appear? 您可以在此处添加更多详细信息,在出现此错误开始采取什么措施之后? If you inject this class somewhere in constructor then I suggest you to run rm -rf generated/* because M2 dont update generated folder automatically if you change class that already generated in generation. 如果将此类插入构造函数中的某个位置,则建议您运行rm -rf generated/*因为如果更改已生成的类,M2不会自动更新生成的文件夹。 If its not work please share some context. 如果不起作用,请分享一些背景信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP致命错误:未捕获错误:找不到类 - PHP Fatal error: Uncaught Error: Class not found 致命错误:未捕获错误:未找到类“ maimana \\ App” — slim3 - Fatal error: Uncaught Error: Class 'maimana\App' not found — slim3 致命错误:未捕获的错误:找不到类“App\Config” - Fatal error: Uncaught Error: Class 'App\Config' not found 致命错误:未捕获错误:Class“App\Http\Controllers\Controller”未在 - Fatal error: Uncaught Error: Class "App\Http\Controllers\Controller" not found in PHP致命错误:未捕获错误:找不到类&#39;Acme \\ RegisterUser&#39; - PHP Fatal error: Uncaught Error: Class 'Acme\RegisterUser' not found 致命错误:未捕获的错误:找不到类“Func”php - Fatal error: Uncaught Error: Class 'Func' not found php PHP 致命错误:未捕获的错误:找不到类“cake\\\\lib\\\\Dispatcher” - PHP Fatal error: Uncaught Error: Class 'cake\\lib\\Dispatcher' not found PHP - Phalcon致命错误:未捕获的错误:未在其中找到类“Phalcon\\Db” - PHP - Phalcon <b>Fatal error</b>: Uncaught Error: Class 'Phalcon\Db' not found in PHP致命错误:未捕获的错误:在Symfony上找不到类“ DOMDocument” - PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found on Symfony 致命错误:未捕获错误:未找到 Class 'Ds\Map' PHP - Fatal error: Uncaught Error: Class 'Ds\Map' not found PHP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM