Hi Jost,
das ist m.W. ein alter Code. In Con 4.6.4 öffnet das Auswahlfeld statt in einem pop-up im eigentlichen Editor. Nach Auswahl des Bildes wird dann das Bild aber doch nicht eingefügt, dafür lädt und lädt der Browser. Schätze, da liegt ein Kommunikationsproblem mit dem aktuellen Contenido vor.
Neuerdings zeigt das Bildmodul 2 im Backend einen Codeschnipsel an (<A HREF= ), obwohl ich nichts am Code wie gepostet geändert habe. Wird irgendwie immer schlimmer und der Kunde immer ungeduldiger - verständlicherweise.
Mal ein Tip von den Entwicklern vielleicht?
EDIT
Hab die Module folgendermaßen geändert:
Bild 1:
Code: Alles auswählen
<?php
if ("CMS_IMG[1]" != "") {
$img = '<img src="CMS_IMG[1]" alt=""></img>';
echo $img;
}
echo "<p style=\"height:0; width:0;margin:0;\">CMS_IMGDESCR[1]</p>";
?>
Bild 2:
Code: Alles auswählen
<?php
if ("CMS_IMG[2]" != "") {
$img = '<img src="CMS_IMG[2]" alt=""></img>';
echo $img;
}
echo "<p style=\"height:0; width:0;margin:0;\">CMS_IMGDESCR[2]</p>";
?>
Jetzt funktioniert Bild 2 einwandfrei, bei Bild 1 habe ich immer noch dieses Problem: Nachdem ein Bild eingepflegt worden ist, hat der image-Button des Backend keinen Link mehr, man kann das Bild also nicht austauschen (jedenfalls auf dem Mac, kann erst heute abend auf Win testen).
Steht was im error-log? JA!
con_cat_tree AS A,
con_cat AS B,
con_cat_lang AS C
WHERE
A.idcat = B.idcat AND
B.idcat = C.idcat AND
B.idclient = '3' AND
C.idlang = '3' AND
C.visible = '1' AND
B.parentid = ''
ORDER
BY A.idtree
[13-Dec-2005 14:59:39] /contenido/contenido/external/backendedit/front_content.php?changeview=edit&client=3〈=3&action=con_editart&idartlang=133&idart=118&idcat=102&tmpchangelang=&contenido=b4cca19e8ca7247f4b8f203a020f364a next_record called with no query pending in Module ID 50.
[13-Dec-2005 15:02:50] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=99&idart=114&idartlang=129&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM con_upl WHERE idclient='3' AND idupl =
[13-Dec-2005 15:02:50] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=99&idart=114&idartlang=129&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 next_record called with no query pending.
[13-Dec-2005 15:03:16] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=100&idart=115&idartlang=130&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM con_upl WHERE idclient='3' AND idupl =
[13-Dec-2005 15:03:16] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=100&idart=115&idartlang=130&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 next_record called with no query pending.
[13-Dec-2005 15:03:42] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=101&idart=116&idartlang=131&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM con_upl WHERE idclient='3' AND idupl =
[13-Dec-2005 15:03:42] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=101&idart=116&idartlang=131&contenido=b4cca19e8ca7247f4b8f203a020f364a〈=3 next_record called with no query pending.
[13-Dec-2005 15:42:31] /contenido/contenido/external/backendedit/front_content.php?changeview=edit&client=3〈=3&action=con_editart&idartlang=133&idart=118&idcat=102&tmpchangelang=&contenido=8b01f8c0ee7265811cb670c5264ad7af MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.public,
C.idcatlang
FROM
' at line 4
SELECT
A.idcat,
C.name
C.public,
C.idcatlang
FROM
con_cat_tree AS A,
con_cat AS B,
con_cat_lang AS C
WHERE
A.idcat = B.idcat AND
B.idcat = C.idcat AND
B.idclient = '3' AND
C.idlang = '3' AND
C.visible = '1' AND
B.parentid = ''
ORDER
BY A.idtree
[13-Dec-2005 15:42:31] /contenido/contenido/external/backendedit/front_content.php?changeview=edit&client=3〈=3&action=con_editart&idartlang=133&idart=118&idcat=102&tmpchangelang=&contenido=8b01f8c0ee7265811cb670c5264ad7af next_record called with no query pending in Module ID 49.
[13-Dec-2005 15:42:31] /contenido/contenido/external/backendedit/front_content.php?changeview=edit&client=3〈=3&action=con_editart&idartlang=133&idart=118&idcat=102&tmpchangelang=&contenido=8b01f8c0ee7265811cb670c5264ad7af MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.public,
C.idcatlang
FROM
' at line 4
SELECT
A.idcat,
C.name
C.public,
C.idcatlang
FROM
con_cat_tree AS A,
con_cat AS B,
con_cat_lang AS C
WHERE
A.idcat = B.idcat AND
B.idcat = C.idcat AND
B.idclient = '3' AND
C.idlang = '3' AND
C.visible = '1' AND
B.parentid = ''
ORDER
BY A.idtree
[13-Dec-2005 15:42:31] /contenido/contenido/external/backendedit/front_content.php?changeview=edit&client=3〈=3&action=con_editart&idartlang=133&idart=118&idcat=102&tmpchangelang=&contenido=8b01f8c0ee7265811cb670c5264ad7af next_record called with no query pending in Module ID 50.
[13-Dec-2005 15:43:06] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=103&idart=119&idartlang=134&contenido=8b01f8c0ee7265811cb670c5264ad7af〈=3 MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM con_upl WHERE idclient='3' AND idupl =
[13-Dec-2005 15:43:06] /contenido/contenido/includes/include.backendedit.php?type=CMS_IMG&typenr=2&client=3〈=3&idcat=103&idart=119&idartlang=134&contenido=8b01f8c0ee7265811cb670c5264ad7af〈=3 next_record called with no query pending.
... usw.
Systemvariablen:
Server Betriebssystem Apache
PHP MySQL database extension mysql
MySQL Serverversion 4.1.13-standard-log
Installierte PHP-Version 4.4.1
safe_mode Deaktiviert
magic_quotes_gpc Aktiviert
magic_quotes_runtime Deaktiviert
gpc_order GPC
memory_limit 20M
max_execution_time 30
Deaktivierte Funktionen nichts deaktiviert
Gettext extension geladen
sql.safe_mode Deaktiviert
Brauche damit dringend eure Hilfe...