Forum Replies Created

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

    (@tomstrom)

    Remember that I also tried using your sample PHP code. When the code works, the site goes down. When there’s a mistake in the code that prevents it from being executed, the site stays up.

    That’s why I was considering that I may have a broken theme.

    Thread Starter tomstrom

    (@tomstrom)

    I think I got the code working, and confirmed the same results with your sample code. When the code works my page won’t load. I get this error in both the preview window of Ad Inserter and on the actual web page (when I attempt to put the code in a shortcode window):
    “There has been a critical error on this website.”
    Regarding putting it into functions.php, when I use “add_shortcode( ‘your_shortcode_name’, function() {” (and give it an actual name), I get the same error where the web page won’t load.

    I’m not a coder, but it’s almost like it’s not finding “aicp_can_see_ads” and breaking whenever php is working. That is, regardless of whether I use the sample code or my own code.

    Since this is working for everyone else, I’m beginning to wonder if it’s a problem with my Theme (NewsAnchor by aThemes). But I don’t know how to figure that out, either 😉

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