Nach Bestellung , Kompletter absturz. Jetzt(Parse error:)

  • Hallo ihr Lieben, ich hoffe das ihr mir helfen könnt. Am Freitag hat ein Kunde bestellen wollen , als dieser zur Kasse gehen wollte, sich aber nicht angemeldet hatte, stürzte das Programm ab. Seit dieser Zeit bekomme ich die Meldung : Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/www/users/hofmanf/shop/templates/cseo-css-v2/source/boxes/reviews.php on line 22 Hier nun die php Daten assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/'); // include needed functions require_once(DIR_FS_INC','xtc_random_select,inc,php'); require_once(DIR_FS_INC','xtc_break_string,inc,php'); //fsk18 lock $fsk_lock=''; if ($_SESSION['customers_status']['customers_fsk18_display']=='0') { $fsk_lock=' and p.products_fsk18!=1'; } $random_select = "SELECT r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name FROM " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_status = '1' AND p.products_id = r.products_id ".$fsk_lock." AND r.reviews_id = rd.reviews_id AND r.reviews_status = '1' AND rd.languages_id = '" . (int)$_SESSION['languages_id'] . "' AND p.products_id = pd.products_id AND pd.language_id = '" . (int)$_SESSION['languages_id'] . "'"; if ($product->isProduct()) { $random_select .= " and p.products_id = '" . $product->data['products_id'] . "'"; } $random_select .= " order by r.reviews_id desc limit " . MAX_RANDOM_SELECT_REVIEWS; $random_product = xtc_random_select($random_select); if ($random_product) { // display random review box $review_query = "select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . $random_product['reviews_id'] . "' and languages_id = '" . $_SESSION['languages_id'] . "'"; $review_query = xtDBquery($review_query); $review = xtc_db_fetch_array($review_query,true); $review = htmlspecialchars($review['reviews_text']); $review = xtc_break_string($review, 15, '-
    '); $bild = DIR_WS_THUMBNAIL_IMAGES.'no_img.jpg'; if($random_product['products_image'] !='') $bild = DIR_WS_THUMBNAIL_IMAGES.$random_product['products_image']; $box_reviews = ' ' . $review . ' ..
    ' . xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '
    '; } if ($box_reviews!='') { $box_smarty->assign('REVIEWS_LINK',xtc_href_link(FILENAME_REVIEWS)); $box_smarty->assign('BOX_CONTENT', $box_reviews); $box_smarty->assign('language', $_SESSION['language']); // set cache ID if (!CacheCheck()) { $box_smarty->caching = 0; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html'); } else { $box_smarty->caching = 1; $box_smarty->cache_lifetime=CACHE_LIFETIME; $box_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $_SESSION['language'].$random_product['reviews_id'].$product->data['products_id'].$_SESSION['language']; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html',$cache_id); } } } ?> Könnt ihr daran sehen woran es liegt? Lieben Gruß L.Hofmann
  • require_once(DIR_FS_INC','xtc_random_select[B],inc,ph p[/B]'); require_once(DIR_FS_INC','xtc_break_string[B],inc,php[/B] '); das sieht nicht gut aus, entferne die abstände und ersetze die , durch . bei .inc also xtc_break_string.inc.php und xtc_random_select.inc.php
  • Nun erstmal danke für den Hinweis, hat aber nichts gebracht. Gleiche Fehlermeldung , in der gleichen Zeile. Nochmal der Hinweis : Das dieser Fehler auftrat , nachdem ein Kunde eine Bestellung aufgeben wollte ohne sich anzumelden. Danke L.Hofmann assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/'); // include needed functions require_once(DIR_FS_INC','xtc_random_select.inc.php'); require_once(DIR_FS_INC','xtc_break_string.inc.php'); //fsk18 lock $fsk_lock=''; if ($_SESSION['customers_status']['customers_fsk18_display']=='0') { $fsk_lock=' and p.products_fsk18!=1'; } $random_select = "SELECT r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name FROM " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_status = '1' AND p.products_id = r.products_id ".$fsk_lock." AND r.reviews_id = rd.reviews_id AND r.reviews_status = '1' AND rd.languages_id = '" . (int)$_SESSION['languages_id'] . "' AND p.products_id = pd.products_id AND pd.language_id = '" . (int)$_SESSION['languages_id'] . "'"; if ($product->isProduct()) { $random_select .= " and p.products_id = '" . $product->data['products_id'] . "'"; } $random_select .= " order by r.reviews_id desc limit " . MAX_RANDOM_SELECT_REVIEWS; $random_product = xtc_random_select($random_select); if ($random_product) { // display random review box $review_query = "select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . $random_product['reviews_id'] . "' and languages_id = '" . $_SESSION['languages_id'] . "'"; $review_query = xtDBquery($review_query); $review = xtc_db_fetch_array($review_query,true); $review = htmlspecialchars($review['reviews_text']); $review = xtc_break_string($review, 15, '-
    '); $bild = DIR_WS_THUMBNAIL_IMAGES.'no_img.jpg'; if($random_product['products_image'] !='') $bild = DIR_WS_THUMBNAIL_IMAGES.$random_product['products_image']; $box_reviews = ' ' . $review . ' ..
    ' . xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '
    '; } if ($box_reviews!='') { $box_smarty->assign('REVIEWS_LINK',xtc_href_link(FILENAME_REVIEWS)); $box_smarty->assign('BOX_CONTENT', $box_reviews); $box_smarty->assign('language', $_SESSION['language']); // set cache ID if (!CacheCheck()) { $box_smarty->caching = 0; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html'); } else { $box_smarty->caching = 1; $box_smarty->cache_lifetime=CACHE_LIFETIME; $box_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $_SESSION['language'].$random_product['reviews_id'].$product->data['products_id'].$_SESSION['language']; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html',$cache_id); } } } ?>
  • Du hast meinen Änderungsvorschlag noch nicht komplett umgesetzt, du hast immernoch ein Abstand drin bei require_once(DIR_FS_INC','xtc_random_select.inc.[B]ph p[/B]'); require_once(DIR_FS_INC . 'xtc_random_select.inc.php'); require_once(DIR_FS_INC . 'xtc_break_string.inc.php'); hier wäre ansonsten die von mir verwendete, ob die zu deiner Version passt kann ich aber nicht sagen : assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/'); // include needed functions require_once(DIR_FS_INC . 'xtc_random_select.inc.php'); require_once(DIR_FS_INC . 'xtc_break_string.inc.php'); require_once(DIR_FS_INC . 'cseo_get_url_friendly_text.inc.php'); //fsk18 lock $fsk_lock=''; if ($_SESSION['customers_status']['customers_fsk18_display']=='0') { $fsk_lock=' and p.products_fsk18!=1'; } $random_select = "SELECT r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name FROM " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_status = '1' AND p.products_id = r.products_id ".$fsk_lock." AND r.reviews_id = rd.reviews_id AND r.reviews_status = '1' AND rd.languages_id = '" . (int)$_SESSION['languages_id'] . "' AND p.products_id = pd.products_id AND pd.language_id = '" . (int)$_SESSION['languages_id'] . "'"; if ($product->isProduct()) { $random_select .= " and p.products_id = '" . $product->data['products_id'] . "'"; } $random_select .= " order by r.reviews_id desc limit " . MAX_RANDOM_SELECT_REVIEWS; $random_product = xtc_random_select($random_select); if ($random_product) { // display random review box $review_query = "select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . $random_product['reviews_id'] . "' and languages_id = '" . $_SESSION['languages_id'] . "'"; $review_query = xtDBquery($review_query); $review = xtc_db_fetch_array($review_query,true); $review = htmlspecialchars($review['reviews_text']); $review = xtc_break_string($review, 15, '-
    '); $bild = DIR_WS_THUMBNAIL_IMAGES.'no_img.jpg'; if($random_product['products_image'] !='') $bild = DIR_WS_THUMBNAIL_IMAGES.$random_product['products_image']; // @t10: supply image dimensions! $size = getimagesize($bild); // @t10: supply only link to reviews page $reviewsLink = xtc_href_link(FILENAME_REVIEWS) . '#r' . $random_product['reviews_id']; $box_reviews = ' '.$random_product['products_name'].' ' . $review . ' ..
    ' . xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '
    '; /* $box_reviews = ' '.$random_product['products_name'].' ' . $review . ' ..
    ' . xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '
    '; */ } if ($box_reviews!='') { $box_smarty->assign('REVIEWS_LINK',xtc_href_link(FILENAME_REVIEWS)); $box_smarty->assign('BOX_CONTENT', $box_reviews); $box_smarty->assign('language', $_SESSION['language']); // set cache ID if (!CacheCheck()) { $box_smarty->caching = 0; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html'); } else { $box_smarty->caching = 1; $box_smarty->cache_lifetime=CACHE_LIFETIME; $box_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $_SESSION['language'].$random_product['reviews_id'].$product->data['products_id'].$_SESSION['language']; $box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_reviews.html',$cache_id); } } } ?>
  • Hey, also ich habe besonders darauf geachtet , das FileZilla das so umsetz wie du es vorgeschlagen hast. Es wurde auch so hochgeladen. Es kommt aber immer noch die meldung :Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/www/users/hofmanf/shop/templates/cseo-css-v2/source/boxes/reviews.php on line 22. Wie gesagt änderungen mache ich mit File Zilla. Ist das vieleicht falsch? Sollte ich es mit einem anderen Programm ändern ? Lieben Gruß L.Hofmann