pragmaMx Support Forum

pragmaMx => Zusatzmodule => Thema gestartet von: debs am 27 April 2025, 18:12:16

Titel: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: debs am 27 April 2025, 18:12:16
Structure 1.4 kann auf PMX 2.9.3 nicht konfiguriert werden

Fehlermeldung:

Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477

Siehe Anhang.

Vielen Dank für Ihre Hilfe.



Impossible de paramétrer Structure 1.4 sur PMX 2.9.3

Message d'erreur :

Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477

Voir pièce jointe.

Merci pour votre aide.
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: debs am 28 Juni 2025, 06:35:16
Ich kann die Konfiguration immer noch nicht durchführen. Haben Sie eine Lösung?

Wenn ich auf den Parameter klicke, erhalte ich folgende Fehlermeldung:

ASMPL

Im Skript für diese Seite ist ein Fehler aufgetreten.

Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477



----------------------------------------------------------------------------------------------------------


Je suis toujours dans l'impossibilité de paramétrer , avez-vous une solution ?

Lorsque que je clique sur paramètre, j'ai l'erreur suivante qui apparais :

ASMPL

Une erreur est survenue dans le script de cette page.

Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477

Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: Olaf / TerraProject am 28 Juni 2025, 11:40:32
Je l'inclurai dans la prochaine version. Veuillez ajouter les lignes suivantes au fichier :
..\modules\Structure\language\admin.lang-french.php
langdefine("_stc_BOX WIDTH","largeur max. de la boîte");
langdefine("_stc_BOXWIDTH_HELP","largeur max. des boîtes sur la page du module. Doit être adaptée au design.");
.. or better translation....

füge das an die o.g. Datei an. In der kommenden Version wird es enthalten sein.
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: debs am 28 Juni 2025, 13:50:46
Ich habe es gerade getestet, aber es funktioniert nicht.

Es ist die gleiche Fehlermeldung.


Ich habe es mit PMX auf Deutsch getestet, und es funktioniert nicht.

Fehlermeldung:

Es sind Probleme bei der Seitenerstellung aufgetreten.
Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477

----------------------------------------------------------------------------------------------------------

Je viens de tester mais sa ne fonctionne pas.

C'est le même message d'erreur.


J'ai fait un test en avec PMX en allemand et sa ne fonctionne pas.

Message d'erreur :

Es sind Probleme bei der Seitenerstellung aufgetreten.
Fatal error: Uncaught exception:
Undefined constant "_stc_BOXWIDTH" (code: 0)
in modules/Structure/admin/admin.php on line 477
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: Olaf / TerraProject am 01 Juli 2025, 20:14:17
der Fehler ist ein Leerzeichen
richtiG:
langdefine("_stc_BOXWIDTH","largeur max. de la boîte");
langdefine("_stc_BOXWIDTH_HELP","largeur max. des boîtes sur la page du module. Doit être adaptée au design.");
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: Olaf / TerraProject am 19 Juli 2025, 14:15:10
Une nouvelle version de Structure est disponible. Téléchargez-la ici.
es gibt eine neue Version von Structure. Hier gehts zum Download

Download (https://www.pragmamx.org/modules.php?name=Downloads&op=view&lid=1139)
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: akhan am 18 Januar 2026, 23:01:38
Hallo OLaf,
Das gleiche Fehler war auch in der admin.lang-english.php vorhanden.

langdefine("_stc_BOXWIDTH","maximum Box Width");
langdefine("_stc_BOXWIDTH_HELP","Maximum width of boxes on the module page. Must be adapted to the design.");

nach einfügen folgende Zeilen ist zwar Fata Error nicht mehr da, aber es gibt noch einen andere Fehlermeldung:

PHP Run-time warning:
Undefined array key "show_boxwidth"
in modules/Structure/admin/admin.php on line 477

Bitte um eine Lösung ?
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: Olaf / TerraProject am 19 Januar 2026, 08:33:09
schau bitte mal nach, ob in der Datei "modules/Structure/includes/default_config.php" alle folgenden Daten drin sind:

function defaultConfig(){
   
    $default_conf['show_name']='Structure';
    $default_conf['show_before'] = 'Hier eine kleine Einleitung zum Modul';
    $default_conf['show_design']= 'Blanklist';
    $default_conf['upload_path'] = 'upload';
    $default_conf['upload_width'] = 500;
    $default_conf['upload_hight'] = 300;
    $default_conf['show_accordion'] = 1;
    $default_conf['show_blocks'] = 1;
    $default_conf['user_system'] = 1;
    $default_conf['user_edit_data'] = 1;
    $default_conf['user_editor'] = 1;
    $default_conf['image_upload'] = 0;
    $default_conf['show_welcome'] = 1;
    $default_conf['show_details'] = 0;
    $default_conf['show_boxwidth'] = 300;   
    return $default_conf;
}

Wenn nicht, diese hineinkopieren und die Daten einmal abspeichern, dann sollten die fehlenden Daten da sein. Wenn nicht, bitte nochmal melden.
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: akhan am 19 Januar 2026, 16:14:02
Hallo Olaf,

habe gerade in diese Datei nach geschaut. es sind folgende Einträge vorhanden:

function defaultConfig(){

$default_conf['show_name']='MEIN BÜCHERREGAL';
$default_conf['show_before'] = 'Hier eine kleine Einleitung zum Modul';
$default_conf['show_design']= 'Blanklist';
$default_conf['upload_path'] = 'upload';
$default_conf['upload_width'] = 500;
$default_conf['upload_hight'] = 300;
$default_conf['show_accordion'] = 1;
$default_conf['show_blocks'] = 1;
$default_conf['user_system'] = 1;
$default_conf['user_edit_data'] = 1;
$default_conf['user_editor'] = 1;
$default_conf['image_upload'] = 0;
$default_conf['show_welcome'] = 1;
$default_conf['show_details'] = 0;

return $default_conf;
}


Überigens diese Fehlermeldung kommt, wenn man aus dem Adminbereich Strucktur-Module Konfigurieren will und auf dem SETTING-TABS anklickt.

PHP Run-time warning:
Undefined array key "show_boxwidth"
in modules/Structure/admin/admin.php on line 477

LG
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: Olaf / TerraProject am 20 Januar 2026, 07:25:26
dann musst du nocht die Angabe
    $default_conf['show_boxwidth'] = 300; hinzufügen
Titel: Aw: Structure 1.4 – Konfiguration nicht möglich / Paramétrage impossible
Beitrag von: akhan am 20 Januar 2026, 16:05:52
OK, das hat funktioniert. Der Fehler ist weg.

Danke OLaf  :thumbup: