• Resolved mav666

    (@mav666)


    Hello!

    When I create HTML code block with PHP code inside I get on front end of my site the following message:

    “CJT PHP Code Error detected for the following block:

    Name: NewsInPost HTML
    ID: #48

    PHP Error Details are listed below:”

    And below…
    Everything is OK. I see results of HTML with PHP code correctly.

    Part of the code block:

    <div class="media">
    <p class="sharebutton">Some text...</p>
    <?php echo do_shortcode('[ssba]'); ?>
    </div>

    And…
    PHP code can be replaced by another plugin shortcode. I have two similar sites.
    In one site HTML with shortcode working properly and on the second site I see only shortcode ([ssba]).

    I try to implement Simple Share Button plugin.
    PHP code: <?php echo do_shortcode(‘[ssba]’); ?>
    Shortcode: [ssba]

    Any ideas?

    https://www.ads-software.com/plugins/css-javascript-toolbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hi mav666,

    Thank you for your support message.
    I apologise for the delay in getting back to you. We have been super busy with various projects and haven’t had a chance to look into this. Please leave it with us and we will investigate the case and get back to as soon as we can.

    Kind Regards,
    Damian

    Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hello!

    I’ve checked out the issue you’ve and I found that the Simple Share Button button Plugin is not E_ALL complain. There is an PHP Notice occurred while
    calling the Shortcode. The error on there is not a blocked type error and can be passed. Its just annoyed you as its displaying some error text along with the result.

    I’ve did some enhancement for that part to avoid output any error information unless WordPress WP_DEBUG constant is set to TRUE.

    You can always get the development version through here: https://github.com/css-javascript-toolbox/css-javascript-toolbox-plugin. The development version currently has this fix however there is no official release yet. You can install it manually if you like.

    One thing I’m not sure about is that you said you’ve two sites and one of them print out [ssba]! I believe this is not related to CJT Plugin and you might have another issue with that site that prevent the Shortcde from working properly.

    Please let me know your thoughts.

    Please don’t hestiate to contact us if you’ve any further questions.

    Regards,
    AHMeD

    Thread Starter mav666

    (@mav666)

    Thank you for response!

    On my first site (with error) I put PHP code from Simple Share Button plugin in theme code template. Now is ok. Everything working. CJT and Simple Share Button plugins.

    On second site I still have [ssba] in CJT code and is ok too…
    Site is under construction, but you can see bottom of example post/page:
    Post: https://eforex4u.pl/sygnaly-forex-czy-warto-z-nich-korzystac
    Page: https://eforex4u.pl/darmowy-kurs-forex/co-to-jest-forex

    I do not know why, but working ??

    Regards,
    Mav

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CJT PHP Code Error detected…’ is closed to new replies.