Skip to main content
Solved

Magento 2 integrated with Klaviyo: Error Cart > Manage Cart

  • June 19, 2024
  • 1 reply
  • 40 views

Forum|alt.badge.img

I have installed Kalviyo extension however while configuring we end up in getting an error with access issue.

I have generated the API key with full access but still Kalviyo is complaining about access issue.

 

 

Error details:
<br />
<b>Fatal error</b>: Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in <b>/usr01/www/albi_magento_b2b/vendor/magento/framework/Reflection/DataObjectProcessor.php</b> on line <b>146</b><br />
<br />
<b>Fatal error</b>: Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in <b>/usr01/www/albi_magento_b2b/vendor/magento/framework/Webapi/ErrorProcessor.php</b> on line <b>301</b><br />
<br />
<b>Fatal error</b>: Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in <b>/usr01/www/albi_magento_b2b/vendor/colinmollenhour/credis/Client.php</b> on line <b>756</b><br />
<br />
<b>Fatal error</b>: Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in <b>/usr01/www/albi_magento_b2b/vendor/magento/framework/App/ErrorHandler.php</b> on line <b>62</b><br />

 

Thanks in advance.

Best answer by Sujal

Hey @Vaibhaav,

The error messages you're encountering indicate a memory allocation issue within your Magento 2 installation. While you have generated a full-access Klaviyo API key, the integration process seems to be exceeding the allowed memory limit.

Here's how to address this:

1. Increase PHP Memory Limit:

The most common solution is to increase the PHP memory limit for your Magento 2 store. You can achieve this by editing your php.ini file or through your hosting control panel.
A recommended starting point could be 256M or 512M, but adjust based on your server resources and the complexity of your Magento store.


2. Review Klaviyo Permissions:

While you mentioned a full-access Klaviyo API key, ensure the specific permissions assigned to the key grant access to the necessary functionalities for the integration. Double-check Klaviyo's documentation to verify required permissions.


3. Debugging & Klaviyo Support:

Temporarily disable other Magento extensions to rule out conflicts.
If increasing the memory limit doesn't resolve the issue, consider using debugging tools or logs within Magento 2 to see if there are more specific error messages related to the Klaviyo integration.


4. Klaviyo Support:

If the above steps don't work, reach out to Klaviyo support directly. They can investigate further based on your specific account, Magento 2 configuration, and the Klaviyo integration process.


Additional Tips:

Consider contacting your web hosting provider for assistance with increasing the PHP memory limit if needed.

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Sujal
Expert Problem Solver II
Forum|alt.badge.img+11
  • Expert Problem Solver II
  • 56 replies
  • Answer
  • June 19, 2024

Hey @Vaibhaav,

The error messages you're encountering indicate a memory allocation issue within your Magento 2 installation. While you have generated a full-access Klaviyo API key, the integration process seems to be exceeding the allowed memory limit.

Here's how to address this:

1. Increase PHP Memory Limit:

The most common solution is to increase the PHP memory limit for your Magento 2 store. You can achieve this by editing your php.ini file or through your hosting control panel.
A recommended starting point could be 256M or 512M, but adjust based on your server resources and the complexity of your Magento store.


2. Review Klaviyo Permissions:

While you mentioned a full-access Klaviyo API key, ensure the specific permissions assigned to the key grant access to the necessary functionalities for the integration. Double-check Klaviyo's documentation to verify required permissions.


3. Debugging & Klaviyo Support:

Temporarily disable other Magento extensions to rule out conflicts.
If increasing the memory limit doesn't resolve the issue, consider using debugging tools or logs within Magento 2 to see if there are more specific error messages related to the Klaviyo integration.


4. Klaviyo Support:

If the above steps don't work, reach out to Klaviyo support directly. They can investigate further based on your specific account, Magento 2 configuration, and the Klaviyo integration process.


Additional Tips:

Consider contacting your web hosting provider for assistance with increasing the PHP memory limit if needed.