Title: PHP error
Last modified: April 24, 2020

---

# PHP error

 *  Resolved [cjames615](https://wordpress.org/support/users/cjames615/)
 * (@cjames615)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/)
 * Hi, I am trying to load an advertisement code in Ad Inserter with php code. When
   I save the php code into a block, I receive a critical error on my website. However,
   if I run the ad code without the php code, my website functions normally. I have
   updated all versions of WordPress, themes, plugins, and php. After chatting with
   Bluehost tech support, I was told the problem is with the Ad Inserter Plugin 
   and to reach out to the developer for a solution. I am using Ad Inserter 2.6.7.
   Please let me know any suggestions you may have.
 * Thanks!

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/#post-12727334)
 * There are no know issues with Ad Inserter.
    If you get error when using your 
   PHP code it means that you have error in your code. The plugin only executes 
   your PHP code.
 * Please enable remote debugging, post page address, PHP code you are using and
   the error message you get:
    [https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/#post-12730537)
 * Are you still having issues?
 *  Thread Starter [cjames615](https://wordpress.org/support/users/cjames615/)
 * (@cjames615)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/#post-12731066)
 * Not any more. For some reason, I had to manually type the code, instead of copying
   and pasting it into the blocks from Notebook++. Seems to work now…weird. Thanks
   for checking!
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/#post-12731082)
 * Great 🙂
 * If you like the plugin I would appreciate if you could rate it:
    [https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post](https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post)
 * Thank you!

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

The topic ‘PHP error’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-error-384/#post-12731082)
 * Status: resolved