• Hi there

    I have been using PHP Code For Posts plugin for a long time with no issue to add custom code, including some to get external RSS content.

    The last week or 2, I had diverse issues on the shared host, one being a false version of PHP (5.2) being used, instead of the one set in the Cpanel (5.4), leading to some issues, like the Cloudflare plugin not getting re-enabled since it only works with 5.3 & above. I had had it working before, with 5.4, but some issues led to disabling it, but could NOT re-enable it again after a few days.

    This was corrected yesterday. I have noted however that custom PHP scripts embedded in text in spite of the above plugin are no longer being executed.

    I even changed to another PHP Code Widget. The issue is not PHP not working in general as WordPress would not work. One of the custom RSS scripts, though, if I load it directly outside WordPress, works.

    Within wordpress, even a simple script like <? echo "Hello"; ?> will not work.

    Since I have not changed anything on the site, i.e. same custom php scripts + plugins, apart from trying out the new PHP plugin, may be some problem (on server, some PHP setting change?) related to the PHP versions reported above are making WordPress PHP plugins allowing using custom code not to work.

    How could this be solved? What does WordPress require, apart from such plugins like PHP Code For Posts & PHP Code Widget to allow using custom PHP code in posts? In case it’s serverside, i need to know what to tell the shared host support fellows to get back.

    Thank you in advance

Viewing 16 replies (of 16 total)
  • I have heard of host applying restrictions on php code was publicly writable. so proper permissions, are required. just good to know as I have been guilty of this.

    as always with plugins, you are told to cycle them , off then on if they stop working.

    Caching has always been a thorn in my side.

    but then one of these solved my problem, so my solution has 3 steps.

Viewing 16 replies (of 16 total)
  • The topic ‘What could prevent PHP scripts from working in WordPress?’ is closed to new replies.