I have setting up a linux machine based on ubuntu server and deployed an existing magento shop for locale testing purposes. Now I cleared cache /var/cache, change DB and url path settings and when I try to open the main shop site, I see several PHP or Layout instructions as plain text in frontend theme:
For Example (shown as text in quellcode viewed in frontend):
<!--?
$this--->removeLinkBlock('top-link-cart');
?>
or
<!--? if($_product--->hasSpecialPrice()):
$_price = $_product->getPrice();
$_specialPrice = $_product->getSpecialPrice();
$_priceDiff = round((100 - ($_specialPrice * 100 / $_price)) * 1);
$_priceDiff = round($_price - $_specialPrice);
endif; ?>
phtml files are rendered correctly by php engine and I also checked CHMOD permissions. Anybody have an idea where can I solve this issue?
-
check .htacess file, i think something wrong with itSuresh Chikani– Suresh Chikani2016年11月16日 17:43:20 +00:00Commented Nov 16, 2016 at 17:43
-
Checked - I also tried to replace with original magento 1.9 htaccess - no change :SMike– Mike2016年11月16日 17:48:48 +00:00Commented Nov 16, 2016 at 17:48
1 Answer 1
Found solution - I must enable:
short_open_tag = On
On apache php.ini. I thought it was enabled by default.