...das es an dieser datei nicht liegen kann....
Hi,
sehe ich genauso aber was kommt danach denn in Frage, wer weiß das?
Wäre ein Datenbank Fehler denkbar, also jetzt kein Misteriöser Bug sondern
eher ein Feld das eine falsche Einstellung hat oder sowas?
EDIT: ein fällt mir noch ein, weil du tiny erwähntest.
ich bilde mir ein ihr habt da bei der modifikation irgend etwas mit den text tags gemacht, deaktivier den doch mal.
und dann könntest du nochmal die lang/admin.php durch eine orignale ersetzen b.z.w. die main.php ,
warum ich hatte mal einen fall wo in der main.php unter "$lang['agreement_terms']" ein fehler war der crashte das registrierungs formular.
ich sagte doch das Problem bestand definitiv schon vor tinymce.
Mir fällt da nur tinymce ein aber das Problem bestand schon bevor
der tinymce dazu gekommen ist... definitiv.
Ich teste mal die lang files. Wenn das nicht hilft probiere ich trotzdem nochmal den tiny
wieder zu entfernen.
EDIT:Die lang files sind es nicht habe die originalen gerade getestet (main & admin).
EDIT2:Ich habe jetzt den tinymce rausgenommen, admin_function gegen die original ausgetauscht
und in der categories.php wieder die textarea eingesetzt.
Ich habe deine beiden letzten Vorschläge einzeln und dann zum Schluss zusammen getestet.
Das Problem bleibt nach wie vor bestehen.
EDIT3:Steht nicht immer neben neu erstellten Kategorien "neu" auch wenn kein Bild drin ist?
Ich wunder mich gerade wieso neben den mitlerweile 5 erstellten Testkategorien
(test1, test2....) nicht "neu" steht...
Wenn das "neu" da stehen müsste ist das vielleicht ein weiterer Hinweis auf das Problem?
EDIT4:Ich habe testweise das gesamte /admin Verzeichnis mit den Originaldateien ausgetauscht
(ausgenommen die Ordner images und plugins)
muss ich bzgl. Kategorien anlegen, speichern etc. noch was im includes Ordner ersetzen?
Auch jetzt besteht das Problem noch, wenn da keine andere Datei mehr im Spiel ist muss
doch mit der Datenbank irgendwas sein.
Kann ich die irgendwie auf validität prüfen?
Ggfs. komplett neu anlegen? Ich müsste nur darauf achten das ich die Felder der MOD
die welche benötigen auch wieder herstelle.
EDIT5: Fehler eingegrenztNachdem ich die includes Dateien mit denen aus einem frischen Archiv überschrieben habe
kann ich meine Kategorien wieder zu Subkategorien machen.
Jetzt muss erstmal rausfinden welches der files das Problem verursacht.
EDIT6: Datei lokalisiertEs ist die includes/functions.php die das Problem hervorruft.
Ich mache mal ein diff von meiner und der original mal sehen ob man den
Fehler finden kann.
EDIT7: Unterschiede der beiden Dateien extrahiertZum Download als Attachment:
Downloadund einmal als Text hier:
[ 1 ] C:\functions.php
[ 2 ] C:\functions_orig.php
------------------------------------------------------------------------------------------------------------------------
=======
=======
94 <!
95 <! /*
96 <! MOD MEDIA SITES
97 <! BEGIN INSERT
98 <! */
99 <! if ($data = media_sites($path))
100 <! return $data[1]['media_file'];
101 <! /*
102 <! MOD MEDIA SITES
103 <! END INSERT
104 <! */
105 <!
=======
=======
112 <!
113 <! /*
114 <! MOD MEDIA SITES
115 <! BEGIN INSERT
116 <! */
117 <! if ($data = media_sites($path))
118 <! return $data[1]['media_file'];
119 <! /*
120 <! MOD MEDIA SITES
121 <! END INSERT
122 <! */
123 <!
=======
=======
155 <!
156 <! /*
157 <! MOD MEDIA SITES
158 <! BEGIN INSERT
159 <! */
160 <! if (media_sites($remote_media_file))
161 <! return 1;
162 <! /*
163 <! MOD MEDIA SITES
164 <! END INSERT
165 <! */
166 <!
=======
=======
185 <!
186 <! /*
187 <! MOD MEDIA SITES
188 <! BEGIN INSERT
189 <! */
190 <! if ($data = media_sites($file_name))
191 <! return $data[0];
192 <! /*
193 <! MOD MEDIA SITES
194 <! END INSERT
195 <! */
196 <!
=======
=======
390 <!
391 <! if ($image_row['image_rating'] == '5.00') {
392 <! $rating_pic = "5.png";
393 <! } elseif ($image_row['image_rating'] >= '4.00') {
394 <! $rating_pic = "4.png";
395 <! } elseif ($image_row['image_rating'] >= '3.00') {
396 <! $rating_pic = "3.png";
397 <! } elseif ($image_row['image_rating'] >= '2.00') {
398 <! $rating_pic = "2.png";
399 <! } elseif ($image_row['image_rating'] >= '1.00') {
400 <! $rating_pic = "1.png";
401 <! } else {
402 <! $rating_pic = "0.png";
403 <! }
404 <! $site_template->register_vars(array(
405 <! "rating_pic" => $rating_pic,
406 <! "lang_rating" => $lang['rating'],
407 <! "lang_votes" => $lang['votes']
408 <! ));
409 <!
=======
=======
418 * $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\"><img src=\"".get_gallery_image("lightbox_yes.png")."\" border=\"0\" title=\"Lightbox hinzufügen/entfernen\" alt=\"\" /><span style=\"display: none;\">Lightbox hinzufügen/entfernen</span></a>";
* $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a>";
419 <!
=======
=======
423 * $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\"><img src=\"".get_gallery_image("lightbox_no.png")."\" border=\"0\" title=\"Lightbox hinzufügen/entfernen\" alt=\"\" /><span style=\"display: none;\">Lightbox hinzufügen/entfernen</span></a>";
* $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a>";
424 <!
=======
=======
428 * $lightbox_button = "<img src=\"".get_gallery_image("lightbox_off.png")."\" border=\"0\" alt=\"\" />";
* $lightbox_button = "<img src=\"".get_gallery_image("lightbox_off.gif")."\" border=\"0\" alt=\"\" />";
=======
=======
432 * $download_button = "<img src=\"".get_gallery_image("download_off.png")."\" border=\"0\" alt=\"\" />";
* $download_button = "<img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" />";
433 * $download_zip_button = (function_exists("gzcompress") && function_exists("crc32")) ? "<img src=\"".get_gallery_image("download_zip_off.png")."\" border=\"0\" alt=\"\" />" : "";
* $download_zip_button = (function_exists("gzcompress") && function_exists("crc32")) ? "<img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" />" : "";
=======
=======
439 * $download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><span>Bild herunterladen</span><img src=\"".get_gallery_image("download.png")."\" border=\"0\" title=\"Bild herunterladen\" alt=\"\" /></a>";
* $download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
440 * $download_zip_button = ($target == "" && function_exists("gzcompress") && function_exists("crc32")) ? "<a href=\"".$site_sess->url(ROOT_PATH."download.php?action=zip&".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><span>Bild komprimiert herunterladen</span><img src=\"".get_gallery_image("download_zip.png")."\" border=\"0\" title=\"Bild komprimiert herunterladen\" alt=\"\" /></a>" : "";
* $download_zip_button = ($target == "" && function_exists("gzcompress") && function_exists("crc32")) ? "<a href=\"".$site_sess->url(ROOT_PATH."download.php?action=zip&".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image("download_zip.gif")."\" border=\"0\" alt=\"\" /></a>" : "";
=======
=======
446 * $postcard_button = "<img src=\"".get_gallery_image("postcard_off.png")."\" border=\"0\" alt=\"\" />";
* $postcard_button = "<img src=\"".get_gallery_image("postcard_off.gif")."\" border=\"0\" alt=\"\" />";
=======
=======
449 * $postcard_button = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&mode=".$mode : ""))."\"><span>ePostkarte versenden</span><img src=\"".get_gallery_image("postcard.png")."\" border=\"0\" title=\"ePostkarte versenden\" alt=\"\" /></a>";
* $postcard_button = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&mode=".$mode : ""))."\"><img src=\"".get_gallery_image("postcard.gif")."\" border=\"0\" alt=\"\" /></a>";
=======
=======
477 <! if (!get_file_path($image_row['image_media_file'], "media", $image_row['cat_id'], 0, 0)) {
478 <! $image_tip_file = ICON_PATH."/".get_file_extension($image_row['image_media_file']).".gif";
479 <! }else {
480 <! $image_tip_file = get_file_path($image_row['image_media_file'], "media", $image_row['cat_id'], 0, 1);
481 <! }
482 <! $image_info = @getimagesize($image_tip_file);
483 <! $width = $image_info[0];
484 <! $height = $image_info[1];
485 <!
=======
=======
492 <! "image_name_short" => (strlen($image_row['image_name']) > 17) ? substr($image_row['image_name'], 0, 17).'...' : $image_row['image_name'],
=======
=======
519 <! "thumbnail_small" => get_thumbnail_small_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),
=======
=======
536 * $rated_imgs = $site_sess->get_session_var("rated_imgs");
* $rate_form = "";
537 * $split_list = explode(" ", $rated_imgs);
* if (check_permission("auth_vote", $image_row['cat_id'])) {
538 <! $rate_form = "";
539 <! if (check_permission("auth_vote", $image_row['cat_id']) && !in_array($image_row['image_id'], $split_list)) {
=======
=======
546 <! "image_tip" => "<div align=\'center\'><img src=\'".ROOT_PATH.THUMB_DIR."/".$image_row['cat_id']."/".$image_row['image_media_file']."\' height=\'100%\'></div>",
=======
=======
583 <! //################################# Thumbnail small Code ########################################################
584 <! function get_thumbnail_small_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 0) {
585 <! global $site_sess, $config;
586 <!
587 <! $max = "0.5"; // Factor !
588 <!
589 <! if (!check_media_type($media_file_name)) {
590 <! $thumb = "<img src=\"".ICON_PATH."/404.gif\" style=\"border:0px;width:$thumb_width px; height:$thumb_height px;\" />";
591 <! }
592 <! else {
593 <! if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
594 <! $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
595 <! $image_info = @getimagesize($file_src);
596 <!
597 <! $thumb_width = $image_info[0]*$max;
598 <! $thumb_height = $image_info[1]*$max;
599 <! $thumb_width = $thumb_width."px";
600 <! $thumb_height = $thumb_height."px";
601 <!
602 <!
603 <! $thumb = "<img src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\" alt=\"".format_text($image_name, 2)."\" />";
604 <!
605 <! }
606 <! else {
607 <! $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
608 <! $image_info = @getimagesize($file_src);
609 <!
610 <! $thumb_width = $image_info[0]*$max;
611 <! $thumb_height = $image_info[1]*$max;
612 <! $thumb_width = $thumb_width."px";
613 <! $thumb_height = $thumb_height."px";
614 <!
615 <!
616 <! $thumb = "<img src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\" alt=\"".$image_name."\" />";
617 <! }
618 <! }
619 <! if ($show_link) {
620 <! if ($open_window) {
621 <! $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))." #z1\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
622 <! }
623 <! else {
624 <! $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))." #z1\">".$thumb."</a>";
625 <! }
626 <! }
627 <!
628 <! return $thumb;
629 <! }
630 <! //#######################################Thumbnail small Code #######################################################
631 <!
=======
=======
658 <! $height_polaroid = $image_info[1] + 2;
659 <! $width_polaroid = $image_info[0] + 38;
660 <! $width_mod_schatten_12 = $image_info[0] - 20;
=======
=======
694 <! "navi" => ($width -150),
=======
=======
697 <! "height_polaroid" => $height_polaroid,
698 <! "width_polaroid" => $width_polaroid,
699 <! "width_mod_schatten_12" => $width_mod_schatten_12,
=======
=======
703 <!
704 <! /*
705 <! MOD MEDIA SITES
706 <! START INSERT
707 <! */
708 <! media_sites_template_vars($media_src);
709 <! /*
710 <! MOD MEDIA SITES
711 <! END INSERT
712 <! */
713 <!
=======
=======
848 * function update_image_rating($image_id, $rating, $user) {
* function update_image_rating($image_id, $rating) {
=======
=======
850 * $sql = "SELECT cat_id, image_votes, image_rating, voters
* $sql = "SELECT cat_id, image_votes, image_rating
=======
=======
857 <! $old_voters = $image_row['voters'];
858 <! $new_voters = $old_voters.",".$user;
=======
=======
862 * SET image_votes = ($old_votes + 1), image_rating = '$new_rating', voters = '$new_voters'
* SET image_votes = ($old_votes + 1), image_rating = '$new_rating'
=======
=======
936 <! function nl2br_skip_html($text){
937 <! // remove any carriage returns (mysql)
938 <! $text = str_replace("\r", '', $text);
939 <! // replace any newlines that aren't preceded by a > with a <br />
940 <! $text = preg_replace('/(?<!>)\n/', "<br />\n", $text);
941 <! return $text;
942 <! }
943 <!
=======
=======
946 * $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
* $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
=======
=======
949 * /* if ($html == 0 || $html == 2) {
* if ($html == 0 || $html == 2) {
950 * $text = safe_htmlspecialchars($text);
* $text = safe_htmlspecialchars($text);
951 * }*/
* }
=======
=======
957 * '&#123;\1&#125;',
* '{\1}',
=======
=======
962 * $text = nl2br_skip_html(trim($text));
* $text = nl2br(trim($text));
=======
=======
966 <!
=======
=======
994 <!
995 <! /*
996 <! MOD MEDIA SITES
997 <! BEGIN INSERT
998 <! */
999 <! $text = media_sites_bbcode($text);
1000 <! /*
1001 <! MOD MEDIA SITES
1002 <! END INSERT
1003 <! */
1004 <!
=======
=======
1382 <! //--- Category Short Description auf xx Zeichen: 08.02.2005 ------------------
1383 <! //--- Es werden nur ganze Wörter angezeigt! ----------------------------------
1384 <! $max_out = 50; // Hier die max. Anzahl der gewünschten Zeichen eingeben
1385 <! $max_in = $max_out - 7;
1386 <! $cat_description = format_text($cat_cache[$category_id]['cat_description'], 1);
1387 <! $cat_description_short = (strlen($cat_description)>$max_out) ? substr($cat_description,0,$max_in). substr(substr($cat_description,$max_in),0,strpos(substr($cat_description,$max_in)," "))." ...." : $cat_description;
1388 <! //--- Ende Category Short Description auf xx Zeichen: ------------------------
1389 <!
=======
=======
1393 * //"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1), // Alte Kategorie Beschreibung
* "cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),
1394 <! "cat_description" => $cat_description_short, // Kurz Kategorie Beschreibung
=======
=======
1472 * $category_list .= "<option rvalue=\"".$category_id."\"";
* $category_list .= "<option value=\"".$category_id."\"";
=======
=======
1477 * $category_list .= "";
* $category_list .= " class=\"dropdownmarker\"";
=======
=======
2096 <! /*
2097 <! MOD MEDIA SITES
2098 <! BEGIN INSERT
2099 <! */
2100 <! include(ROOT_PATH."includes/media_sites.php");
2101 <! /*
2102 <! MOD MEDIA SITES
2103 <! END INSERT
2104 <! */
2105 <!
=======
------------------------------------------------------------------------------------------------------------------------
Ich kann in dem diff aber nix finden was mit der cat_id o.ä. zu tun haben soll oder
was von dem Code stören sollte.
Ich hänge auch mal die beide functions an einmal original einmal meine.
Rembrandt hast du noch ne Idee?
Gruß Jens