문제

I am having an issue with a cron job in Magento 2.1. I have a job that I need to query a database to get some stock values for my Magento products, but the cron job gives me the following error:

HP Fatal error:  Class 'Meese\MWS\Cron\mysqli' not found in /chroot/home/ikonopsc/ikonops.com/html/app/code/Meese/MWS/Cron/Stock.php on line 28

Why is the mysqli object not available here?

도움이 되었습니까?

해결책

Figured it out. It had to do with my namespace declaration.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top