Skip to main content
Solved

Issue with Klaviyo integration in Prestashop

  • January 31, 2021
  • 7 replies
  • 1320 views

Forum|alt.badge.img+2

Hello,

I have an online store created in prestashop (Version 1.7.6.3). The server works with Plesk in its latest version with Php 7.3.

I have installed the free Klaviyo module and I have configured it following the manual. Everything worked correctly until I got to the API integration.

When I integrate Klaviyo with Prestashop, I add the address of the online store, the Prestashop Webservice API and permissions are correct.
I click on "Click here to retrieve the list of shops" but I get the following error: Please make sure your webservice key has permissions to the 'klaviyo' resource.

I have tried with another server but the problem persists, could you please advise me?

Thanks

Best answer by Scott

Hi @Onlysilver 

 

If you’ve ensured that the webservice key, automatically generated by Klaviyo’s module, already has the proper permissions then this could indicate you need to add a rewrite rule to your server’s .htaccess file. If your server runs PHP via CGI or FPM (you can check with your hosting provider) you’ll likely need to add the following two lines so that Klaviyo’s authentication headers get passed along to PrestaShop.

The lines to add to your server’s .htaccess file are:

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule . - [E=HTTP_AUTHORIZATION:%1]

Let us know if this doesn’t resolve the issue for you.

 

Best,

Scott

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

7 replies

Forum|alt.badge.img+2
  • Klaviyo Employee
  • 14 replies
  • Answer
  • February 1, 2021

Hi @Onlysilver 

 

If you’ve ensured that the webservice key, automatically generated by Klaviyo’s module, already has the proper permissions then this could indicate you need to add a rewrite rule to your server’s .htaccess file. If your server runs PHP via CGI or FPM (you can check with your hosting provider) you’ll likely need to add the following two lines so that Klaviyo’s authentication headers get passed along to PrestaShop.

The lines to add to your server’s .htaccess file are:

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule . - [E=HTTP_AUTHORIZATION:%1]

Let us know if this doesn’t resolve the issue for you.

 

Best,

Scott


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • February 1, 2021

Hello

Thank you very much it has worked correctly


Forum|alt.badge.img+2
  • Contributor I
  • 3 replies
  • July 17, 2021

not working for us 


julie.accardo
Klaviyo Employee
Forum|alt.badge.img+36
  • Klaviyo Employee
  • 185 replies
  • July 18, 2021

Hey @Dpm,

 

It looks like you wrote in about this in another post. My colleague @david.to provided a response on troubleshooting steps that you can follow in that other thread. If you haven’t had a chance to check it out, here’s his update for you:

 

Thanks very much for being a member of Klaviyo’s Community Forum!

 

Best,

Julie


Forum|alt.badge.img+1
  • Contributor I
  • 1 reply
  • February 24, 2022

Hy @Scott,

Thank you! Solved my problem.


Forum|alt.badge.img+1
  • Contributor I
  • 1 reply
  • March 12, 2022

Pues yo he copiado y pegado las dos líneas de código al final del archivo .htaccess pero el problema continua.

Uso Prestashop 1.7.7.3


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • March 15, 2022

Hi @Rago,

Gracias por compartir.

Recomiendo revisar la respuesta de mi colega aquí: https://community.klaviyo.com/integrations-39/prestashop-could-not-authenticate-please-ensure-your-webservice-key-is-permissioned-for-klaviyo-resource-1888 si aún no lo ha hecho.

Si eso no resuelve el problema, comuníquese con nuestro equipo de soporte para obtener más ayuda.