-
Notifications
You must be signed in to change notification settings - Fork 10
ArgumentCountError when no phoneNumberFieldHandle is configured #70
Copy link
Copy link
Open
Description
Sorry, me again! Now that I have the authorisation sorted, I'm getting the following error when attempting to check the response via curl -u username:password "https://dev.website.com/actions/shipstationconnect/orders/process?action=export". Any thoughts on what might be causing it? I originally had the Organisation field removed from addresses so thought that might be the culprit, but adding that back in doesn't seem to have made a difference. I also don't have a Phone field, could that be an issue?
Let me know if you need any additional info. Thanks.
Stack Trace
ArgumentCountError: Too few arguments to function craft\base\Element::get(), 0 passed in /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/Component.php on line 243 and exactly 1 expected in /home/ploi/dev.website.com/vendor/craftcms/cms/src/base/Element.php:958
Stack trace:
#0 /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/Component.php(243): craft\base\Element::get()
#1 /home/ploi/dev.website.com/vendor/craftcms/cms/src/base/Element.php(2622): yii\base\Component->__isset()
#2 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/models/Address.php(222): craft\base\Element->__isset()
#3 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/models/Customer.php(116): fostercommerce\shipstationconnect\models\Address::fromCommerceAddress()
#4 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/models/Order.php(453): fostercommerce\shipstationconnect\models\Customer::fromCommerceOrder()
#5 [internal function]: fostercommerce\shipstationconnect\models\Order::fromCommerceOrder()
#6 /home/ploi/dev.website.com/vendor/illuminate/collections/Arr.php(602): array_map()
#7 /home/ploi/dev.website.com/vendor/illuminate/collections/Collection.php(778): Illuminate\Support\Arr::map()
#8 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/services/Xml.php(33): Illuminate\Support\Collection->map()
#9 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/controllers/OrdersController.php(108): fostercommerce\shipstationconnect\services\Xml->generateXml()
#10 /home/ploi/dev.website.com/vendor/fostercommerce/shipstationconnect/src/controllers/OrdersController.php(52): fostercommerce\shipstationconnect\controllers\OrdersController->getOrders()
#11 [internal function]: fostercommerce\shipstationconnect\controllers\OrdersController->actionProcess()
#12 /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#13 /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#14 /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#15 /home/ploi/dev.website.com/vendor/craftcms/cms/src/web/Application.php(360): yii\base\Module->runAction()
#16 /home/ploi/dev.website.com/vendor/craftcms/cms/src/web/Application.php(659): craft\web\Application->runAction()
#17 /home/ploi/dev.website.com/vendor/craftcms/cms/src/web/Application.php(322): craft\web\Application->_processActionRequest()
#18 /home/ploi/dev.website.com/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#19 /home/ploi/dev.website.com/web/index.php(12): yii\base\Application->run()
#20 {main}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels