homeflair Posted August 9, 2012 Share Posted August 9, 2012 Hi, I recently received this error on a php page on my site "unexpected T_CONSTANT_ENCAPSED_STRING" I have looked at the line it states and I understand there may be a "." missing somewhere, but I'm not sure where. Here is the php line: echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id), $image, array('title' => $product->product_name)); Does anyone have any ideas? (This line is from a Joomla extension called Virtuemart). Thanks. Link to comment https://forums.phpfreaks.com/topic/266851-unexpected-t_constant_encapsed_string/ Share on other sites More sharing options...
PeoMachine Posted August 9, 2012 Share Posted August 9, 2012 Are you sure thats the right file? I didnt see anything wrong. Link to comment https://forums.phpfreaks.com/topic/266851-unexpected-t_constant_encapsed_string/#findComment-1368060 Share on other sites More sharing options...
Christian F. Posted August 9, 2012 Share Posted August 9, 2012 Check the lines before that line, and I think you'll find the real culprit. Also, I recommend using an editor with syntax highlighting. Makes finding issues like these a breeze. Link to comment https://forums.phpfreaks.com/topic/266851-unexpected-t_constant_encapsed_string/#findComment-1368101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.