Klarna - problem with module - Error in JSONStorage::save

Started by betterlead, October 05, 2012, 22:18:07 PM

Previous topic - Next topic

betterlead

I am going to migrate my webshop from 1.1 to 2.0. At the moment it's weeks from being ready. I have one big trouble with the Klarna built in payment module. When I test drive it - say I put something in the cart and then go to it, I get the following message:

Sweden: Error in Klarna::fetchPClasses: Error in JSONStorage::save: Unable to write to ../vmfiles/klarna! Error Code #0

I have spent hours trying to solve this. Looked over and over for the above file, but no luck. Spoken to Klarnas integration support - even they don't have a clue.
Does anybody have any idea what is wrong and how to solve this?

If you'd like to see how this comes up, go to:

https://www.tingshop.com/test251/jupgrade/index.php/component/virtuemart/kok-servering/muggar-koppar/audrey-murano-tesil-detail?Itemid=0

And put the item in the cart/basket ("Lägg i varukorgen" - in Swedish), then go to "varukorgen" and you'll see the error message.

Cheers
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

betterlead

Update on this. With help from alatak and my brother Stan, shortly the fix is as follows:

Create a folder "klarna" in "vmfiles" (Which is the name of the folder that safe_path points) - chmode 777 and now it should work!

Sorry for short - but I think alatek will look into it and explain better. For the moment, I don't want to check this as solved.
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

alatak

Hello,

You are probably using the version 2.0.10? This issue has been solved in the 2.0.12. Please wait for the 2.0.12a to update.
Txs :)