Importation de données :: Post-installation

More
11 years 7 months ago #36066 by silencev3
Bonjour a tous,

j'aimerai avoir un peu d'aide pour un petit probleme que je n'arrive pas a résoudre.

Je m'explique.

J'importe des données depuis un fichier. Lorsque je recupere les données de ce fichier je les passe a la fonction store() de flexi.

Comme ceci.
Code:
$data = array( "title" => $title_item, "text" => $textItem, "id" => "0", "type_id" => $idType[$i], "catid" => $catego[$i], "tag" => $tag_id, "vstate" => "2", "state" => "1", "language" => "*" ); $custom = get_object_vars($item); $data["custom"] = $custom; $c_item_id = $newID; if(!$this->store($data)) echo "Erreur !"; // Try to rename entry if id column is being used if ($c_item_id) { $item_id = $this->getId(); $q = "UPDATE #__content SET id='".$c_item_id."' WHERE id='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_items_ext SET item_id='".$c_item_id."' WHERE item_id='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_tags_item_relations SET itemid='".$c_item_id."' WHERE itemid='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_cats_item_relations SET itemid='".$c_item_id."' WHERE itemid='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_fields_item_relations SET item_id='".$c_item_id."' WHERE item_id='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_items_versions SET item_id='".$c_item_id."' WHERE item_id='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_versions SET item_id='".$c_item_id."' WHERE item_id='".$item_id."'"; $db->setQuery($q); $db->query(); $q = "UPDATE #__flexicontent_favourites SET itemid='".$c_item_id."' WHERE itemid='".$item_id."'"; $db->setQuery($q); $db->query(); if (FLEXI_J16GE) { $q = "UPDATE #__assets SET id='".$c_item_id."' WHERE id='".$item_id."'"; } else { $q = "UPDATE #__flexiaccess_acl SET axo='".$c_item_id."'" . " WHERE acosection = ". $db->Quote('com_content') . " AND axosection = ". $db->Quote('item') . " AND axo='".$item_id."'"; } $db->setQuery($q); $db->query(); }


L'import se fait correctement, il n'y a aucun probleme avec ca mais je pense avoir un petit probleme de droits(je pense) car apres l'import , quand je me reconnecte dans l'administration , j'ai probleme de post installation : Autorisation initiale.

Je dois donc cliquer dessus pour corriger le probleme et c'est ce que j'aimerai corriger.

Est-ce que je dois envoyer une donnée supplementaire ou executer une autre fonction pour que je ne me retrouve plus avec cette erreur a chaque import ?

Merci d'avance pour vos reponses.

Silencev3

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #36068 by micker
tu peus nous mettre une screen de ton erreur ?
MErci

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #36076 by silencev3
Bonjour mycker,

voici le screen que tu as demandé.

[img


Silence

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #36094 by ggppdk
Hello,
this is normal

because the entry in the assets (Access Control Lists of Joomla) does not exist and you need to click once to create it

you code does not create the assets entry


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #36113 by silencev3
Bonjour,

Merci pour ta reponse ggppdk,

Désolé je ne sais pas repondre en anglais car mon anglais est vraiment tres mauvais :) .

J'avais vu cette histoire d'"asset", et il me semble quand 1.5 la table asset n'existait pas .

Je ne comprends pas trop ces "assets".

Pourrais tu me guider pour que je puisse creer ces entrés ?

Merci d'avance

silencev3

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #36114 by ggppdk
About J2.5 assets,
you can read Joomla documentation on it
it same for FLEXIcontent


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.328 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline