genata93 Posted August 2, 2011 Posted August 2, 2011 Hi ! I am getting very weird error on some of my pages. This is it-> Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in .../includes/modules/featured.php on line 111 and this is the line 111 of the code 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES '/images' . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br>' . $products_price); The code works fine when there are no subcategories displayed on the page. But if i click on a category that has subcategories I am getting this error. I would appreciate some help figuring this out. Thank you.
MrPhil Posted August 3, 2011 Posted August 3, 2011 Start by changing DIR_WS_IMAGES '/images' to DIR_WS_IMAGES . '/images'
Recommended Posts
Archived
This topic is now archived and is closed to further replies.