I have create a module base on Cramer's Import Pages From CSV in order to be able to import bilingual data. I based my code with the help of this page.
While the title, the body (page_content) field are saved, I cannot save the french path (this is an import of previous blog entries from another CMS. I must keep the URL. The english URL is saved).
$p->of(false);
if($columns['Titre'] != "") {
$french = $this->languages->get("francais");
$p->of(false); //
$p->title->setLanguageValue($french, $columns['Titre']);
$p->page_content->setLanguageValue($french, $columns['Corps']);
$p->name->setLanguageValue($french, $columns['Chemin']);
$p->status->setLanguageValue($french, 1);
}
I get this error