• I’m in a real bad spot atm and need some serious help.

    I was putting php code in posts in wordpress using a plugin: execPHP.

    Everything was working fine all day. I don’t know what changed, but now, no PHP code is converting. I’ve tried two plugins, execPHP and runPHP, both with the same results.

    https://www.pokerjuke.com/?p=928

    The entire post of that was written in the regular html (not WYSIWYG).
    The posts contents are:

    Learn how to correctly use a pushbot chart for late-stage tournament play.
    
    <?php
    global $userdata;
    get_currentuserinfo();
    $userid = $userdata->ID;
    
    echo ('<a href="https://www.pokerjuke.com/buynew.php?subid='.urlencode($userid).'&item=pushbotguide"><span style="color: blue;"><span style="text-decoration: underline;">Pushbot Video Guide</span></span></a>');
    ?>

    The things I fiddled with that could cause this issue:

    I unchecked the “Use the visual editor when writing” box in the admin panel.

    I changed roles of a user. I know you can set user permissions to who can run php code. The code was written by an admin with access.

    That’s about all I did. The only reasonable thing I think that could have caused this is disabling the visual editor. I have checked the box again and tried making new posts but I still get the same problem. Plus, I remember viewing pages after making that change and they were fine.

    I don’t remember editing anything at all in between when pages went from working to broken.

    I’m very worried that my site is going to need a complete rebuild now Can anyone think of anything that might save me from that?

  • The topic ‘Urgent problem running PHP code in posts.’ is closed to new replies.