VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: betterlead on October 05, 2012, 22:18:07 PM

Title: Klarna - problem with module - Error in JSONStorage::save
Post by: betterlead on October 05, 2012, 22:18:07 PM
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
Title: Re: Klarna - problem with module - Error in JSONStorage::save
Post by: betterlead on October 07, 2012, 11:42:39 AM
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.
Title: Re: Klarna - problem with module - Error in JSONStorage::save
Post by: alatak on October 08, 2012, 08:23:57 AM
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 :)