0

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');
?&gt;

or

<!--? if($_product--->hasSpecialPrice()):
 $_price = $_product-&gt;getPrice();
 $_specialPrice = $_product-&gt;getSpecialPrice();
 $_priceDiff = round((100 - ($_specialPrice * 100 / $_price)) * 1);
 $_priceDiff = round($_price - $_specialPrice);
 endif; ?&gt;

phtml files are rendered correctly by php engine and I also checked CHMOD permissions. Anybody have an idea where can I solve this issue?

asked Nov 16, 2016 at 17:23
2
  • check .htacess file, i think something wrong with it Commented Nov 16, 2016 at 17:43
  • Checked - I also tried to replace with original magento 1.9 htaccess - no change :S Commented Nov 16, 2016 at 17:48

1 Answer 1

1

Found solution - I must enable:

short_open_tag = On

On apache php.ini. I thought it was enabled by default.

answered Nov 16, 2016 at 17:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.