Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've been using this module successfully on a site for some time, just moved the site to a new server and now the module has mysteriously stopped working. Views seems to be trying to parse my php code as HTML, treating the <? as the opening of an html tag.
Is there any PHP config setting on my new server that would cause this? What should I be looking for?
Thanks for any clues.
- Lucy
Comments
Comment #1
lucyp CreditAttribution: lucyp commentedHi, I figured out that the problem was that I had been using <? ?> to enclose my PHP code instead of
The correct way is given in the instructions, and I had just not been doing it correctly. But somehow on my previous server the <? ?> had been working fine, and now on this new server I have to do it the "right" way.
I'm curious to understand what settings on a server could cause this difference in behavior, but mostly I'm just relieved that this module does actually work for me now!