PHP parsing does not work (here's the solution)

  • Problem
  • Updated 4 years ago
Hi.

I made a contribution some months ago to Stacey that would let you have php in partials that would parse. It worked for me and kolber, at Github, decided to merge it with master.

Today I updated my site (www.nacholabs.com.ar) to 2.2.2, and all my php broke. I poked around, and turns out that although my code was merged into app/asset-types/html.inc.php, my modification to app/parsers/template-parser.inc.php was NOT merged, and so php parsing does NOT work, or at least did not work for me.

This is the 1st contribution, which was merged: https://github.com/nacholabs/stacey/c...
This is the 2nd one: https://github.com/nacholabs/stacey/c...

I modified the file myself in my 2.2.2 installation, and now it works properly. I suggest you update app/parsers/template-parser.inc.php to accomplish full php parsing.

Best regards!
Photo of NachoN

Nacho

  • 1 Post
  • 0 Likes
  • contributive

Posted 4 years ago

  • 4
Photo of sevenupcan

sevenupcan

  • 20 Posts
  • 0 Likes
Thanks, this worked a charm!