Dragonmom Posted July 26, 2003 Posted July 26, 2003 i wanted to edit the reviews_write.php file to make a larger window- it was showing as 20 px wide by 40 high. When I saved the file to my server, I recieved this message on default.php; Fatal error: Call to undefined function: tep_not_null() in /home/dragon/public_html/dragoncave/includes/functions/html_output.php on line 22 I looked at a fresh copy of the file and there is no change in it- What have I done, and how can I fix it? psst... wanna buy a wand?
Guest Posted July 26, 2003 Posted July 26, 2003 The function is in general.php via application_top.php - make sure that application_top.php is included in the process - it is usually called at the top of the relevant file - in product_reviews _write.php it should be at the top of the page, though I would expect a session error first if its not :? Hope this helps you track down the problem
Dragonmom Posted July 26, 2003 Author Posted July 26, 2003 Oh, Johnson, I was HOPING you were online! :lol: okay, I'm going to see what I can find. psst... wanna buy a wand?
Dragonmom Posted July 26, 2003 Author Posted July 26, 2003 application_top is called for in reviews write... While you're here, how can I remove the stars ratings? I'd love to get rid of them. psst... wanna buy a wand?
Dragonmom Posted July 26, 2003 Author Posted July 26, 2003 Okay, by the ignoramus' method of restoring the reviews write, functions general, I got my site back- but whenI go anywhere away from default.php, I get this mesage: Warning: Cannot modify header information - headers already sent by (output started at /home/dragon/public_html/dragoncave/includes/functions/html_output.php:297) in /home/dragon/public_html/dragoncave/includes/functions/general.php on line 23 Now, usually that means there is some empty lines at the end of the file, but there isn't in this case? Do I look in application_top.php psst... wanna buy a wand?
Guest Posted July 26, 2003 Posted July 26, 2003 There are three files I think that have this or similar: catalog/reviews.php catalog/product_reviews_info.php catalog/includes/boxes/reviews.php The following is from the latter - change: $info_box_contents[] = array('text' => '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>'); to: $info_box_contents[] = array('text' => '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a>'); As you can see, I just removed everything after the </a> tag (except closing brackets etc)
Guest Posted July 26, 2003 Posted July 26, 2003 Now, usually that means there is some empty lines at the end of the file, but there isn't in this case? Do I look in application_top.php Its in html_output.php
Dragonmom Posted July 26, 2003 Author Posted July 26, 2003 thanks, Johnson- it turned out to be an empty line at the end of functions_general. Once again, the lesson is back-up, backup! It's the only thing that saves a dummy like me! Thanks for the code help, too. As always, thank you for your patience and helpfulness. :) psst... wanna buy a wand?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.