HTML Theme Building (Block/Area Display Issue)
Permalink 1 user found helpful
Hi Everyone, I was wondering to ask concrete5 ninjas about my issue.
Using Conrete5.7
My local server running debian 7, apache2, php5(PHP Version 5.4.35-0+deb7u2), mysql. Using the same template it displays correctly. content and editable blocks/area still working.
my area code snippets
Now, uploading the same template files to the live server running ubuntu 14.04, apache2, php5(PHP Version 5.5.9-1ubuntu4.5), mysql
the contents did not display correctly, but displayed part of the code on all supposedly editable blocks.
Both servers have fresh install of concrete5.7. Installed with no errors. So preliminary requirements were met before installing.
I have exausted my efforts to find anyone with my same issue but failed. So I am asking you guys who can point me to the right direction.
Is this could be a php version issue? the version is above the minimum required version of php for concrete5.7. installed it with no problems.
Thank you in advance guys.
Using Conrete5.7
My local server running debian 7, apache2, php5(PHP Version 5.4.35-0+deb7u2), mysql. Using the same template it displays correctly. content and editable blocks/area still working.
my area code snippets
<? $a = new Area('menu1'); $a->display($c); ?>
Now, uploading the same template files to the live server running ubuntu 14.04, apache2, php5(PHP Version 5.5.9-1ubuntu4.5), mysql
the contents did not display correctly, but displayed part of the code on all supposedly editable blocks.
display($c);?>
Both servers have fresh install of concrete5.7. Installed with no errors. So preliminary requirements were met before installing.
I have exausted my efforts to find anyone with my same issue but failed. So I am asking you guys who can point me to the right direction.
Is this could be a php version issue? the version is above the minimum required version of php for concrete5.7. installed it with no problems.
Thank you in advance guys.
The problem is you are using PHP short tags locally and your server isn't configured to support short tags. Your opening PHP tags <? are being ignored and everything following it is treated like text.
To save you future headaches, using this style of short tag is not recommended by the PHP language recommendations and the PHP Framework Interop Group.
"PHP also allows for short open tags <? and ?> (which are discouraged because they are only available if enabled with short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option."
http://php.net/manual/en/language.basic-syntax.phptags.php...
"Files MUST use only <?php and <?= tags."
http://www.php-fig.org/psr/psr-1/...