Migrate Magento 2.0 site and got warning Invalid argument supplied for foreach() vendor/magento/module-eav/Model/Config.php on line 280

Need help, In migration of website magento 2.0 i got the following warning. Warning: Invalid argument supplied for foreach() in public_html/vendor/magento/module-eav/Model/Config.php on line 280 #0 public_html/vendor/magento/module-eav/Model/Config.php(280): Magento\Framework\App\ErrorHandler->handler(2, ‘Invalid argumen…’, ‘/home/danielvin…’, 280, Array) #1 public_html/vendor/magento/module-eav/Model/Config.php(327): Magento\Eav\Model\Config->_initEntityTypes() #2 public_html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(290): Magento\Eav\Model\Config->getEntityType(‘customer’) #3 public_html/vendor/magento/module-customer/Model/ResourceModel/Customer.php(64): Magento\Eav\Model\Entity\AbstractEntity->setType(‘customer’) #4 public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Customer\Model\ResourceModel\Customer->__construct(Object(Magento\Eav\Model\Entity\Context), Object(Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot), Object(Magento\Framework\Model\ResourceModel\Db\VersionControl\RelationComposite), Object(Magento\Framework\App\Config), Object(Magento\Framework\Validator\Factory), Object(Magento\Framework\Stdlib\DateTime), Object(Magento\Store\Model\StoreManager), Array) #5 public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject(‘Magento\\Custome…’, Array)…

Refund using credit memo does not include tips

I am trying to issue refunds using the following code: $serviceOrder = Mage::getModel(‘sales/service_order’, $order); $data = array( ‘shipping_amount’=>$order[‘shipping_amount’], ‘grand_total’=>$order[‘grand_total’], ‘base_grand_total’=>$order[‘base_grand_total’], ‘adjustment_positive’=>$positive – $refundedFromGiftCard, ‘adjustment_negative’=>$negative, ‘qtys’=>$items, ); $creditmemo = $serviceOrder->prepareInvoiceCreditmemo($invoice,$data); $creditmemo->setRefundRequested(true) ->setShippingAmount($order[‘shipping_amount’]) ->setGrandTotal($order[‘grand_total’]) ->setOfflineRequested(false) ->load()->refund(); $transaction = Mage::getModel(‘core/resource_transaction’); $transaction->addObject($creditmemo) ->addObject($creditmemo->getOrder()) ->addObject($creditmemo->getInvoice()) ->save(); However, whenever I do a refund of x amount(full/partial) for an order with shipping…

php bin/magento setup:upgrade error help

I installed a magento extension and after running php bin/magento setup:upgrade, I get the following errors. I’ve tried hours trying to find a solution. I even got my server company to help, but no luck. I’m running Magento 2.3.4 with PHP version 7.2 PHP Fatal error: Uncaught Error: Call to undefined function JsonSchema\Uri\filter_var() in /home/thesuitexchange/thesuitexchange/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php:82…

Magento 2. Change image position in list plugin

I use Magic_360 in my magento 2. It is ok, but it show it’s 360 picture first in fotorama. I am trying to write plugin wich move this picture to the second position. Files: /app/code/NickNick/Magic360PositionPlugin/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘NickNick_Magic360PositionPlugin’, __DIR__ ); /app/code/NickNick/Magic360PositionPlugin/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd”> <module name=”NickNick_Magic360PositionPlugin” setup_version=”2.2.2″> </module> </config> /app/code/NickNick/Magic360PositionPlugin/etc/frontend/di.xml <?xml version=”1.0″?>…

Magento 2 – PayPal Express – Charge shipping after an order was placed

Magento/2.3 (Community) We have a client that charges it’s customers for shipping after an order was placed. They have no issue charging if the payment method was Authorize.net – they’re able to go in and re-charge the customer. With PayPal Express however this doesn’t seem possible. I’ve already looked at “Sale” and “Order” options for…

How to hide a category in the top menu programmatically in Magento 2?

I know that Enterprise Edition meets the requirement. What I want is to show the category “Wholesale” just to my customer group in “Wholesale”. When a customer is logged in and he is in this group, he is able to see the category. I know all the validations if (!($this->_customerSession->isLoggedIn() && $this->_customerSession->getCustomer()->getGroupId() == 2)) {…