comment nettoyer la base d'eZ ?

Vous devez être connecté pour utiliser le forum. Vous pouvez le faire ici.

Auteur Message

sébastien gaillard

Mercredi 24 Juin 2009 10:32:09 am

comment nettoyer la base d'eZ ?

Bonjour,

Voilà le pbm auquel je suis confronté:

lorsque je lance :
php runcronjobs.php frequent
j'ai l'erreur suivante lors de l'exécution du script de notification:
Fatal error: Call to a member function attribute() on a non-object in /var/www/psycho/kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php on line 128

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

lorsque je lance:
php bin/php/updateniceurls.php
J'obtiens:
Fatal error: Call to a member function attribute() on a non-object in /var/www/psycho/kernel/classes/ezcontentobjecttreenode.php on line 3960

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

J'ai donc été afficher des var_dump (dans \kernel\classes\notification\eznotificationeventfilter.php et kernel\classes\ezcontentobjecttreenode.php) de façon à comprendre quel(s) objet(s) posent pbm.
Il s'avère que dans les 2 cas, on dirait que c'est le même objet qui joue les troubles fête (ContentObjectID = 17444) :

POUR NOTIFICATION.PHP
object(eZContentObjectTreeNode)#14007 (22) {
["CurrentLanguage"]=>
bool(false)
["Name"]=>
string(1) "1"
["ClassIdentifier"]=>
string(17) "psycho_paragraphe"
["ClassName"]=>
string(17) "Psycho Paragraphe"
["PersistentDataDirty"]=>
bool(false)
["NodeID"]=>
string(5) "16990"
["ParentNodeID"]=>
string(5) "16881"
["MainNodeID"]=>
string(5) "16990"
["ContentObjectID"]=>
string(5) "17444"
["ContentObjectVersion"]=>
string(1) "2"
["ContentObjectIsPublished"]=>
string(1) "1"
["Depth"]=>
string(1) "7"
["SortField"]=>
string(1) "1"
["SortOrder"]=>
string(1) "1"
["Priority"]=>
string(1) "0"
["ModifiedSubNode"]=>
string(10) "1239290952"
["PathString"]=>
string(37) "/1/2/147/210/38781/38782/16881/16990/"
["PathIdentificationString"]=>
string(77) "beaute/corps/complexes/articles_et_dossiers/c_est_l_ete_sublimez_votre_peau/1"
["RemoteID"]=>
string(32) "4f698e48d23151d3d96987eb9959d03d"
["IsHidden"]=>
string(1) "0"
["IsInvisible"]=>
string(1) "0"
["ContentObject"]=>
object(eZContentObject)#14010 (23) {
["ID"]=>
string(5) "17444"
["Name"]=>
string(1) "1"
["CurrentLanguage"]=>
string(6) "fre-FR"
["ClassName"]=>
string(17) "Psycho Paragraphe"
["ClassIdentifier"]=>
string(17) "psycho_paragraphe"
["DataMap"]=>
array(0) {
}
["ContentActionList"]=>
bool(false)
["ContentObjectAttributes"]=>
array(0) {
}
["MainNodeID"]=>
bool(false)
["InputRelationList"]=>
array(0) {
}
["PersistentDataDirty"]=>
bool(false)
["SectionID"]=>
string(1) "1"
["OwnerID"]=>
string(3) "370"
["ClassID"]=>
string(2) "60"
["IsPublished"]=>
string(1) "0"
["Published"]=>
string(10) "1233821600"
["Modified"]=>
string(10) "1239290952"
["CurrentVersion"]=>
string(1) "2"
["Status"]=>
string(1) "1"
["LanguageMask"]=>
string(1) "2"
["InitialLanguageID"]=>
string(1) "2"
["RemoteID"]=>
NULL
["Permissions"]=>
array(0) {
}
}
}

POUR UPDATENICEURLS.PHP
+object(eZContentObjectTreeNode)#419 (22) {
["CurrentLanguage"]=>
string(6) "fre-FR"
["Name"]=>
string(1) "1"
["ClassIdentifier"]=>
string(17) "psycho_paragraphe"
["ClassName"]=>
string(17) "Psycho Paragraphe"
["PersistentDataDirty"]=>
bool(false)
["NodeID"]=>
string(5) "16990"
["ParentNodeID"]=>
string(5) "16881"
["MainNodeID"]=>
string(5) "16990"
["ContentObjectID"]=>
string(5) "17444"
["ContentObjectVersion"]=>
string(1) "2"
["ContentObjectIsPublished"]=>
string(1) "1"
["Depth"]=>
string(1) "7"
["SortField"]=>
string(1) "1"
["SortOrder"]=>
string(1) "1"
["Priority"]=>
string(1) "0"
["ModifiedSubNode"]=>
string(10) "1239290952"
["PathString"]=>
string(37) "/1/2/147/210/38781/38782/16881/16990/"
["PathIdentificationString"]=>
string(77) "beaute/corps/complexes/articles_et_dossiers/c_est_l_ete_sublimez_votre_peau/1"
["RemoteID"]=>
string(32) "4f698e48d23151d3d96987eb9959d03d"
["IsHidden"]=>
string(1) "0"
["IsInvisible"]=>
string(1) "0"
["ContentObject"]=>
object(eZContentObject)#420 (23) {
["ID"]=>
string(5) "17444"
["Name"]=>
string(1) "1"
["CurrentLanguage"]=>
string(6) "fre-FR"
["ClassName"]=>
string(17) "Psycho Paragraphe"
["ClassIdentifier"]=>
string(17) "psycho_paragraphe"
["DataMap"]=>
array(0) {
}
["ContentActionList"]=>
bool(false)
["ContentObjectAttributes"]=>
array(0) {
}
["MainNodeID"]=>
bool(false)
["InputRelationList"]=>
array(0) {
}
["PersistentDataDirty"]=>
bool(false)
["SectionID"]=>
string(1) "1"
["OwnerID"]=>
string(3) "370"
["ClassID"]=>
string(2) "60"
["IsPublished"]=>
string(1) "0"
["Published"]=>
string(10) "1233821600"
["Modified"]=>
string(10) "1239290952"
["CurrentVersion"]=>
string(1) "2"
["Status"]=>
string(1) "1"
["LanguageMask"]=>
string(1) "2"
["InitialLanguageID"]=>
string(1) "2"
["RemoteID"]=>
NULL
["Permissions"]=>
array(0) {
}
}
}

Quand je tente d'accéder à cet objet via l'interface d'admin (http://admin.sgaillard.psycho.fr/...s/c_est_l_ete_sublimez_votre_peau/1), j'ai une error/kernel(20)
Je me suis demandé si cet objet ne figurait pas dans la poubelle mais :
SELECT * FROM `ezcontentobject_trash` WHERE `contentobject_id` = 17444 ne retourne rien....

eZ recommande de ne pas toucher aux contnus des tables "à la main". Quelqu'un aurait une idée de comment résoudre ce problème ?

Merci d'avance, Sébastien

eZ publish™ copyright © 1999-2012 eZ systems as