klaviyo / magento2-klaviyo

37 stars 51 forks source link

Type Error occurred when creating object error #255

Closed gz-devops closed 1 year ago

gz-devops commented 1 year ago

Environment details

PHP version: 8.1 Magento version: 2.4.5 Klaviyo extension version: 4.0.11 Anything else that would help a developer reproduce the bug?

Steps to reproduce

Navigate to admin>Klaviyo>Enable Klaviyo and insert your api keys and press save

Expected result

Klaniyo should enabled

Actual result

Type Error occurred when creating object: Klaviyo\Reclaim\Logger\Logger, Monolog\Logger::__construct(): Argument #1 ($name) must be of type string, null given, called in /home/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121

And nothing is saved. Module stays disabled and api keys not saved Same error appears in frontend if you try to put something in cart.

Additional information

No response

siddwarkhedkar commented 1 year ago

@gz-devops Hey, thank you for submitting this issue!

Is this happening on your first install? Did this work with your store on previous releases?

gz-devops commented 1 year ago

@gz-devops Hey, thank you for submitting this issue!

Is this happening on your first install? Did this work with your store on previous releases?

First installation. Never installed before

siddwarkhedkar commented 1 year ago

Hi @gz-devops, thank you for your patience, I just tried to recreate this on my end with the same specifications you provided. I was unable to reproduce this bug, and successfully save both my public and private keys in the config. Can you try to re-install the extension following instructions listed here?

If the problem persists, please reach out to Klaviyo support and someone will be able to help you further in relation to your specific installation

gz-devops commented 1 year ago

Hi @gz-devops, thank you for your patience, I just tried to recreate this on my end with the same specifications you provided. I was unable to reproduce this bug, and successfully save both my public and private keys in the config. Can you try to re-install the extension following instructions listed here?

If the problem persists, please reach out to Klaviyo support and someone will be able to help you further in relation to your specific installation

Found the issue. On our environment magento modules related to "magento/module-inventory*" are disabled for speed purposes because we dont use them. Enable them back your module works