• Hello, after i installed it, it defaced my website, and once i deactivated it my website is actually working fine.. I really do not understand what is going on. I am using it with AICP, all was working well. 24 hours ago

    https://traveljobhealth.com/

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

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

    (@spacetime)

    Hello,

    was this the first installtion of Ad Inserter or you had installed it before?
    Were you using blocks with PHP code?

    Thread Starter Michael Ekundayo

    (@thatmme)

    This is not first installed. I have been using for more than 10 day now. I am using it with Adsense invalid click protector. which has some PHP code.
    Like this

    <?php
     if ( aicp_can_see_ads() ) {
       //show ads
    echo '<div class="aicp">
    //adsense CODE
    </div>';
     }
    ?>


    I also understand i had to put the php code within AdSense code and indicate that on the ad inserter. of which I did.

    i just don’t how it becomes a problem since yesterday.

    Plugin Author Spacetime

    (@spacetime)

    Since it was working before and the plugin diddn’t change, it must be something with your PHP code.

    Your code assumes AICP plugin is installed and activated. Otherwise you will get a fatal error as the function aicp_can_see_ads () does not exist.

    Make sure the PHP code is valid – the easiest way is with the preview window:
    https://adinserter.pro/documentation/code-preview

    You can also disable (pause) all blocks and then enable one by one to see which block (code) causes issues:
    https://adinserter.pro/documentation/code-editing#disable-insertion

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ad Inserter Defaces my website after being installed’ is closed to new replies.