We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Allow PHP? not working

News and General

realleoman's avatar
realleoman
1 posts
4 years ago
realleoman's avatar realleoman

Has anyone experienced before having issues with the Allow PHP? option in the Templates section?

Suddenly, the server stopped recognizing the PHP code and it is now not able to show anything nor using custom PHP code in there.

For some reason, if I disable Allow PHP? template works again.

This is the main site: historico.zocalo.com.mx and this is the troubled URL => http://historico.zocalo.com.mx/seccion/category/tecnologia

Any help would be truly appreciated.

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

Is it possible that some of the PHP code in the template is breaking and thus causing the template parser to fail somewhere? I’d start by removing all PHP out of the template and enabling PHP to see if the template renders with PHP turned on, but no actual PHP included (make sure no PHP is in embedded templates, partials, or anything like that. If that works, then it’s pretty clear it’s something with the custom PHP. At that point I’d start adding back in small chunks until you discover the problem.

       
vw000's avatar
vw000
241 posts
4 years ago
vw000's avatar vw000

As Andy said, this means something in your PHP code is probably crashing the whole template. Try to log in as admin and enable all the debug options to see the errors.

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

@realleoman were you able to resolve this issue?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.