Sorry, of course the 'saveProductRelations' function isn't being called when you're on basket page, it is when you save localised product, as you said. Anyway, is this error a new problem due to the use of "localise to" buttons or do you have this error since the beginning?