• Hi, i have fairly new (2 weeks) installation of WordPress 6.7.1, I installed a WPCode Lite plugin, trying to add PHP Code. It seems that any PHP Code snippet is not launched (But HTML is).

    When I test codes from library – HTML one is working fine (like standard counter), but even a code to disable the comments from library is not working (but it is loaded, displayed on the top of the page).

    Is there something to launch initially to make those codes working, am I missing anything?

    Tried to disable all other plugins, launched WPCode as standalone – still comments are working and displayed, and no other custom PHP is working (even echo “hello”).

    thanks for any suggestions for checks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter infokonto

    (@infokonto)

    To add here – i found that shortcodes are recognized on the page once I activate the plugin, example:

    [wpcode id=”316″] (this is HTML snippet)

    [wpcode id=”318″] (this is php snippet)

    Then, page itself displays:
    346d 15h 8m 4s

    It means that first shortcode is executed, second is recognized but not done…
    Strona testowa – widget – InfoKonto.pl

    Snippet code is ultra simple:
    <?php
    echo “some text”;

    I tried another snippet from library (disable the WP Admin Bar), and once activated, as well not functioning. Like all PHP snippets are not working.

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @infokonto,

    From what you are describing, WPCode might not be able to execute PHP code dynamically on your setup.

    Can you please check with your hosting provider if the eval function is disabled in PHP? https://www.php.net/manual/en/function.eval.php

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can’t launch the PHP code from WPCode’ is closed to new replies.