Forum sur l'installation du module PrestaShop PrestaPricing » 

[FAQ]Patch #4 pour V 4.3.0.a - Erreur à la ligne 45 du traitement Procédure locale ajoute_fils_categorieM2

Auteur Message

Sitolog

Inscrit le : 04/12/2011

Messages : 524

Publié : 31/07/2012 14:55:21 "Citer"

FRANCAIS:

Question fréquente, j'ai l'erreur suivante au lancement de PrestaPricing V4.3.0.1.a, suite à la mise à jour, pourquoi et que dois je faire ?:

Code :

Erreur à la ligne 45 du traitement Procédure locale ajoute_fils_categorieM2.
Les dimensions d'un tableau doivent être positives.

----- Informations techniques -----

Projet : PrestaPricing

Appel WL :
Traitement de 'Procédure locale ajoute_fils_categorieM2'
(FEN_MAIN.PROCEDURE.ajoute_fils_categorieM2), ligne 45, thread 0

Que s'est-il passé ?
Les dimensions d'un tableau doivent être positives.


Code erreur : 2329
Niveau : erreur fatale (EL_FATAL)

Dump de l'erreur du module 'WD160VM.DLL' (16.0.150.6).
Identifiant des informations détaillées (.err) : 2329 Informations supplémentaires :
EIT_PILEWL :
Procédure locale ajoute_fils_categorieM2 (FEN_MAIN.PROCEDURE.ajoute_fils_categorieM2), ligne 45 Procédure locale Affichage_Category (FEN_MAIN.PROCEDURE.Affichage_Category), ligne 69 Initialisation de FEN_MAIN (FEN_MAIN), ligne 85 Clic sur BTN_Valider (FEN_Fenetre1.ONG_Connections.BTN_Valider), ligne 388 EIT_DATEHEURE : 31/07/2012 13:06:26


Cette erreur est provoquée par une incohérence dans la structure de la base, comme par exemple une catégorie sans parent ou dont la valeur du paramètre "level_depth" (niveau) est incorrecte.

On peut constater et corriger aisément ce genre de problème de structure avec PrestaCatégories, en affichant les colonnes "Parent" et "niveau". Les erreurs de cohérences sont faciles à voir et a corriger:
-Catégorie orpheline: Chaque catégorie doit avoir une catégorie parente qui existe (sauf pour l'Accueil bien sur)
-Boucle infinie:Aucune catégorie ne doit avoir pour parent, une catégories qui est enfant ou petit enfant d'elle même .
-Niveau incorrect:La valeur de "Niveau" doit être égale à niveau de la catégorie parente + 1

J'ai remarqué que des incohérences sont crées lors de l'importation de catégories avec PrestaShop lui même et lors de l'installation de la version gratuite de StoreCommander.

PrestaShop semble s'en accommoder, mais je recommande malgré tout de les corriger avec PrestaCatégories.

La version précédente de PrestaPricing s’accommodait également de ce genre d'erreur de structure, ce qui n'est plus le cas de la version 4.3.0.a build1, qui plante en affichant l'erreur ci dessus.

Pour éviter ce plantage, j'ai créé un patch correctif. Il s'agit du fichier PrestaPricing.wdl.004 en libre service dans l'onglet "Télécharger" de la page de PrestaPricing.

Ce patch permet juste à PrestaPricing d’ignorer le problème de structure de la base (comme le fait bizarrement PrestaShop), mais ne corrige pas celui-ci.

Autres modifications apportées par ce patch:
-Gestion des " et ; dans les champs des tables copies par copier coller
-Rajout de deux champs pour saisi de l'adresse d'un serveur proxi et de son port.
-Gestion des heures (en plus de la date) de début et fin de prix spécifiques.


Installation du patch : simplement placer le fichier dans le répertoire de PrestaPricing sur le PC et relancer l'application, c’est tout.

ATTENTION : Ce Patch ne fonctionne qu’avec la version 4.3.0.a build 1 de PrestaPricing. Ne pas l’utiliser avec une version précédente ou ultérieure (sera intégré par défaut).

Pensez à supprimer ce fichier, ainsi que tout autre patch avant la prochaine mise à jour.



ENGLISH (Google translate):
Common question: I get the following error launching PrestaPricing V4.3.0.1.a, following the update, why and what should I do?:

Code :

Error at line 45 of the Local ajoute_fils_categorieM2 treatment procedure.
The dimensions of an array must be positive.

----- Technical Data -----

Project: PrestaPricing

WL Call:
Treatment of 'local ajoute_fils_categorieM2 Procedure'
(FEN_MAIN.PROCEDURE.ajoute_fils_categorieM2), line 45, thread 0

What has happened?
The dimensions of an array must be positive.


Error Code: 2329
Level: fatal error (EL_FATAL)

Dump error of module 'WD160VM.DLL' (16.0.150.6).
Identifying details (. Err): 2329 Additional information:
EIT_PILEWL:
Local procedure ajoute_fils_categorieM2 (FEN_MAIN.PROCEDURE.ajoute_fils_categorieM2), line 45 Affichage_Category Local Procedure (FEN_MAIN.PROCEDURE.Affichage_Category), line 69 Initializing FEN_MAIN (FEN_MAIN), line 85 Click on BTN_Valider (FEN_Fenetre1.ONG_Connections.BTN_Valider), line 388 EIT_DATEHEURE: 31/07/2012 13:06:26


This error is caused by an inconsistency in the database structure, such as a class without a parent or the value of the parameter "level_depth" (level) is incorrect.

One can easily find and correct this kind of problem with PrestaCatégories , showing the columns "Parent" and "level depth". Consistency errors are easy to see and correct:
Category-orphan: Each category must have a parent category that exists (except for the Home course)
-Infinite loop: No class should have the parent, a category that is child or grandchild of itself.
-Wrong-Level: The value of "Level" must be equal to the level of the parent category + 1

I noticed suchinconsistencies are created when importing categories with PrestaShop itself and when using the free version of StoreCommander.

PrestaShop seems to live with it, but I still recommend to correct them with PrestaCategories.

The previous version of PrestaPricing accommodated itself also this kind of error structure, which is no longer the case with version 4.3.0.a build1, who crashes displaying the error above.

To avoid this crash, I created a patch fix. This is the file PrestaPricing.wdl.004 available in the "Download" tab of PrestaPricing page.

This patch simply allows PrestaPricing to ignore the problem of database structure (as does PrestaShop oddly), but does not correct it.

Other changes made by this patch:
-Support special characters like "and, in the table field, when copying and pasting.
-Addition of two fields to define a server proxy and its port.
-Hours management (in addition to the date) in the start and end date of specific prices.


Patch Installation: Simply place the file in the directory PrestaPricing on the PC and restart the application, that's all.

WARNING: This patch only works with version 4.3.0.a build 1 of PrestaPricing. Do not use with any previous or later version (will be included by default in futur versions).

Remember to delete this file, and any other patch before the next update.

Crdlt
Franck

Réglages
  • Identification
Menu