Skip to content

magento man

TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in xx/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109

I’m getting this error when I try so save api configure for Iyzico payment gateway TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109 Stack trace: #0 /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Controller/IyzicoBase/IyzicoPkiStringBuilder.php(109): array_key_last(‘tr’) #1 /chroot/home/a94b818d/de88c03958.nxcli.io/app/code/Iyzico/Iyzipay/Observer/IyzipayConfigSaveBefore.php(77): IyzicoIyzipayControllerIyzicoBaseIyzicoPkiStringBuilder->pkiStringGenerate(Object(stdClass)) #2 /chroot/home/a94b818d/de88c03958.nxcli.io/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): IyzicoIyzipayObserverIyzipayConfigSaveBefore->execute(Object(MagentoFrameworkEventObserver))… Read More »TypeError: array_key_last(): Argument #1 ($array) must be of type array, string given in xx/Controller/IyzicoBase/IyzicoPkiStringBuilder.php:109

Exception log errors (The element “order_totals” can’t have a child because “order_totals” already has a child with alias)

Trying to clean up my logs and I keep getting this error over and over in my exception logs. [2022-12-27 20:07:39] report.CRITICAL: The element “order_totals” can’t have a child because “order_totals” already has a child with alias “ltl_shipping_fee”. {“exception”:”[object] (Magento\Framework\Exception\LocalizedException(code:… Read More »Exception log errors (The element “order_totals” can’t have a child because “order_totals” already has a child with alias)

Custom Customer Address field not passing validation

I’ve added a custom field to the Customer Addresses with the following UpgradeData: public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { /** @var CustomerSetup $customerSetup */ $customerSetup = $this->customerSetupFactory->create([‘setup’ => $setup]); $params = [ ‘label’ => ‘House Number’, ‘type’ => ‘varchar’,… Read More »Custom Customer Address field not passing validation

Speeding Magento 2

I am running a magento 2.4.5 in production mode The settings in admin are as follows: Minify Html: Yes Merge JavaScript Files: Yes Enable JavaScript Bundling: Yes Minify JavaScript Files: Yes Merge CSS Files: Yes Minify CSS Files: Yes Any… Read More »Speeding Magento 2

PHP Fatal error: During inheritance of JsonSerializable: Uncaught Exception: Deprecated Functionality:

After Magento Upgrade in latest version showing error under third party module PHP Fatal error: During inheritance of JsonSerializable: Uncaught Exception: Deprecated Functionality: Return type of AheadworksRbsliderUiComponentMassActionBannerOptions::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[ReturnTypeWillChange] attribute should be… Read More »PHP Fatal error: During inheritance of JsonSerializable: Uncaught Exception: Deprecated Functionality: