wpsnoop: fix Ad Injection plugin conflicts, errors & issues

When the plugin Ad Injection conflicts or throws a PHP error we hope wpsnoop can help you to fix the issue quickly.


Discover which shortcodes wp-options PHP functions database tables and files are created by Ad Injection, plus learn which plugins and/or themes could be in conflict with Ad Injection.


Troubleshooting theme and plugin conflicts is easier when you know what Ad Injection leaves behind after uninstalling it from a WordPress installation, there is a list down below for your convenience.

Expert advice is recommended if you are not technically proficient with PHP, MySQL etc. View support options for Ad Injection

Get professional support for Ad Injection here

When you need professional help with WordPress: get help here


What does Ad Injection version 1.2.0.19 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Ad Injection to perform differently in your installation, previous versions before 1.2.0.19 may have created a different set of shortcodes, used different function names or could have created entirely different database tables to store settings and operate. This is not an exhaustive list but shows how version 1.2.0.19 of Ad Injection behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this plugin but instead have concentrated on the potential for obvious errors and conflicts which can occur, if you need help with the plugin in your local installation you can get WordPress help and support for Ad Injection by clicking here.

Our testing covered the free version of this plugin there may or may not be a paid version or premium version available for purchase that unlocks additional features and could behave in a slightly or very different manner.

Which new files does Ad Injection add to WordPress?

This section will populate with a table showing an icon, size and filepath.

Type & Path Size Conflicts
wp-content/plugins/ad-injection/ 568.73kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ad-injection-admin.php 62.00kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ad-injection-widget.php 14.08kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ad-injection.php 48.32kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/adinj-sev.js 2.72kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/adshow.php 13.46kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/advert-1_placeholder.png 5.20kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/licence.txt 15.14kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/readme.txt 51.14kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/rml-micro-logo.png 283.00B No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/screenshot-1.png 45.35kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/screenshot-2.png 44.96kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/screenshot-3.png 71.33kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/screenshot-4.png 109.21kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/screenshot-5.png 29.98kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/test.txt.txt No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ui-tab-adrotation.php 7.62kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ui-tab-debug.php 4.21kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/ui-tab-main.php 42.48kB No known conflicts with other themes or plugins.
wp-content/plugins/ad-injection/uninstall.php 1.26kB No known conflicts with other themes or plugins.

Which new shortcodes does Ad Injection add to WordPress?

Which new database tables are created by the WordPress plugin Ad Injection?

Which new options are added to the wp-options table by Ad Injection?

Option Name   Known Conflicts
widget_adinj The widget_adinj option doesn't have any known conflicts with other themes or plugins.

During use Ad Injection may or may not create more options depending on how the plugin is configured and depending on which other themes and plugins are active in your specific hosting environment.

What new PHP functions does Ad Injection declare when it is active?

Function   Conflicts Common Errors
str_word_count_utf8 1 conflict Fatal error: Cannot redeclare str_word_count_utf8()
adinj 0 conflicts Fatal error: Cannot redeclare adinj()
adinj_ad_code_bottom 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_bottom()
adinj_ad_code_eval 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_eval()
adinj_ad_code_footer 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_footer()
adinj_ad_code_include 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_include()
adinj_ad_code_random 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_random()
adinj_ad_code_top 0 conflicts Fatal error: Cannot redeclare adinj_ad_code_top()
adinj_addsevjs_hook 0 conflicts Fatal error: Cannot redeclare adinj_addsevjs_hook()
adinj_admin_menu_hook 0 conflicts Fatal error: Cannot redeclare adinj_admin_menu_hook()
adinj_ads_completely_disabled_from_page 0 conflicts Fatal error: Cannot redeclare adinj_ads_completely_disabled_from_page()
adinj_ads_filtered_out 0 conflicts Fatal error: Cannot redeclare adinj_ads_filtered_out()
adinj_adverts_disabled_flag 0 conflicts Fatal error: Cannot redeclare adinj_adverts_disabled_flag()
adinj_allowed_in_author 0 conflicts Fatal error: Cannot redeclare adinj_allowed_in_author()
adinj_allowed_in_category 0 conflicts Fatal error: Cannot redeclare adinj_allowed_in_category()
adinj_allowed_in_id 0 conflicts Fatal error: Cannot redeclare adinj_allowed_in_id()
adinj_allowed_in_list 0 conflicts Fatal error: Cannot redeclare adinj_allowed_in_list()
adinj_allowed_in_tag 0 conflicts Fatal error: Cannot redeclare adinj_allowed_in_tag()
adinj_author_data 0 conflicts Fatal error: Cannot redeclare adinj_author_data()
adinj_category_nicename 0 conflicts Fatal error: Cannot redeclare adinj_category_nicename()
adinj_config_allow_referrers 0 conflicts Fatal error: Cannot redeclare adinj_config_allow_referrers()
adinj_config_allowed_referrers_list 0 conflicts Fatal error: Cannot redeclare adinj_config_allowed_referrers_list()
adinj_config_block_after_ad_click 0 conflicts Fatal error: Cannot redeclare adinj_config_block_after_ad_click()
adinj_config_block_hours 0 conflicts Fatal error: Cannot redeclare adinj_config_block_hours()
adinj_config_block_ips 0 conflicts Fatal error: Cannot redeclare adinj_config_block_ips()
adinj_config_block_referrers 0 conflicts Fatal error: Cannot redeclare adinj_config_block_referrers()
adinj_config_blocked_ips_list 0 conflicts Fatal error: Cannot redeclare adinj_config_blocked_ips_list()
adinj_config_blocked_referrers_list 0 conflicts Fatal error: Cannot redeclare adinj_config_blocked_referrers_list()
adinj_config_debug_mode 0 conflicts Fatal error: Cannot redeclare adinj_config_debug_mode()
adinj_content_hook 0 conflicts Fatal error: Cannot redeclare adinj_content_hook()
adinj_db_version 0 conflicts Fatal error: Cannot redeclare adinj_db_version()
adinj_debug_on 0 conflicts Fatal error: Cannot redeclare adinj_debug_on()
adinj_direct_mode 0 conflicts Fatal error: Cannot redeclare adinj_direct_mode()
adinj_excluded_by_tick_box 0 conflicts Fatal error: Cannot redeclare adinj_excluded_by_tick_box()
adinj_footer_hook 0 conflicts Fatal error: Cannot redeclare adinj_footer_hook()
adinj_formatting_options 0 conflicts Fatal error: Cannot redeclare adinj_formatting_options()
adinj_get_ad_code 0 conflicts Fatal error: Cannot redeclare adinj_get_ad_code()
adinj_get_current_page_type_prefix 0 conflicts Fatal error: Cannot redeclare adinj_get_current_page_type_prefix()
adinj_get_paragraph 0 conflicts Fatal error: Cannot redeclare adinj_get_paragraph()
adinj_get_paragraph_from_position 0 conflicts Fatal error: Cannot redeclare adinj_get_paragraph_from_position()
adinj_get_random_ad_paragraph 0 conflicts Fatal error: Cannot redeclare adinj_get_random_ad_paragraph()
adinj_get_random_ad_start_end_paragraph 0 conflicts Fatal error: Cannot redeclare adinj_get_random_ad_start_end_paragraph()
adinj_get_random_paragraphs 0 conflicts Fatal error: Cannot redeclare adinj_get_random_paragraphs()
adinj_insert_fixed_ad 0 conflicts Fatal error: Cannot redeclare adinj_insert_fixed_ad()
adinj_is_old_post 0 conflicts Fatal error: Cannot redeclare adinj_is_old_post()
adinj_live_ads_array 0 conflicts Fatal error: Cannot redeclare adinj_live_ads_array()
adinj_mfunc_mode 0 conflicts Fatal error: Cannot redeclare adinj_mfunc_mode()
adinj_mode_never_show_in 0 conflicts Fatal error: Cannot redeclare adinj_mode_never_show_in()
adinj_mode_only_show_in 0 conflicts Fatal error: Cannot redeclare adinj_mode_only_show_in()
adinj_not_set 0 conflicts Fatal error: Cannot redeclare adinj_not_set()
adinj_num_bottom_ads_to_insert 0 conflicts Fatal error: Cannot redeclare adinj_num_bottom_ads_to_insert()
adinj_num_footer_ads_to_insert 0 conflicts Fatal error: Cannot redeclare adinj_num_footer_ads_to_insert()
adinj_num_rand_ads_to_insert 0 conflicts Fatal error: Cannot redeclare adinj_num_rand_ads_to_insert()
adinj_num_top_ads_to_insert 0 conflicts Fatal error: Cannot redeclare adinj_num_top_ads_to_insert()
adinj_option 0 conflicts Fatal error: Cannot redeclare adinj_option()
adinj_options 0 conflicts Fatal error: Cannot redeclare adinj_options()
adinj_options_link_hook 0 conflicts Fatal error: Cannot redeclare adinj_options_link_hook()
adinj_post_id 0 conflicts Fatal error: Cannot redeclare adinj_post_id()
adinj_print_ad 0 conflicts Fatal error: Cannot redeclare adinj_print_ad()
adinj_print_referrers_hook 0 conflicts Fatal error: Cannot redeclare adinj_print_referrers_hook()
adinj_quote_list 0 conflicts Fatal error: Cannot redeclare adinj_quote_list()
adinj_rule_disabled 0 conflicts Fatal error: Cannot redeclare adinj_rule_disabled()
adinj_setup_hooks_and_filters 0 conflicts Fatal error: Cannot redeclare adinj_setup_hooks_and_filters()
adinj_split_comma_list 0 conflicts Fatal error: Cannot redeclare adinj_split_comma_list()
adinj_stripos 0 conflicts Fatal error: Cannot redeclare adinj_stripos()
adinj_tag_slug 0 conflicts Fatal error: Cannot redeclare adinj_tag_slug()
adinj_ticked 0 conflicts Fatal error: Cannot redeclare adinj_ticked()
adinj_trim_value 0 conflicts Fatal error: Cannot redeclare adinj_trim_value()
adinj_true_if 0 conflicts Fatal error: Cannot redeclare adinj_true_if()
adinj_upgrade_db_if_necessary 0 conflicts Fatal error: Cannot redeclare adinj_upgrade_db_if_necessary()
adinj_widgets_init 0 conflicts Fatal error: Cannot redeclare adinj_widgets_init()
adshow_add_formatting 0 conflicts Fatal error: Cannot redeclare adshow_add_formatting()
adshow_allowed_referrer 0 conflicts Fatal error: Cannot redeclare adshow_allowed_referrer()
adshow_blocked_ip 0 conflicts Fatal error: Cannot redeclare adshow_blocked_ip()
adshow_blocked_referrer 0 conflicts Fatal error: Cannot redeclare adshow_blocked_referrer()
adshow_clicked_ad 0 conflicts Fatal error: Cannot redeclare adshow_clicked_ad()
adshow_display_ad_file_v2 0 conflicts Fatal error: Cannot redeclare adshow_display_ad_file_v2()
adshow_display_ad_full_path_v2 0 conflicts Fatal error: Cannot redeclare adshow_display_ad_full_path_v2()
adshow_eval_php 0 conflicts Fatal error: Cannot redeclare adshow_eval_php()
adshow_functions_exist 0 conflicts Fatal error: Cannot redeclare adshow_functions_exist()
adshow_functions_exist_impl 0 conflicts Fatal error: Cannot redeclare adshow_functions_exist_impl()
adshow_pick_value 0 conflicts Fatal error: Cannot redeclare adshow_pick_value()
adshow_show_adverts 0 conflicts Fatal error: Cannot redeclare adshow_show_adverts()
read_ad_from_file 0 conflicts Fatal error: Cannot redeclare read_ad_from_file()

Using Ad Injection from the command line with WP-CLI

The following commands are provided for convenience and should only be used if you understand how WP-CLI works. These commands refer to a single WordPress instance and may need to be modified if you are working with a Multisite installation.


How to install Ad Injection from the command line with WP-CLI

Navigate to the root of your WordPress installation and type the following command:

wp plugin install ad-injection


How to activate Ad Injection from the command line with WP-CLI

To immediately activate Ad Injection after WP-CLI downloads the latest version you can use the following command:

wp plugin install ad-injection --activate


How to reinstall Ad Injection from the command line with WP-CLI

To force a reinstallation of Ad Injection which overwrites the current plugin without asking for confirmation you can use the following command:

wp plugin install ad-injection --force


How to update Ad Injection to the latest version from the command line with WP-CLI

wp plugin update ad-injection


How to delete Ad Injection from the command line with WP-CLI

wp plugin delete ad-injection

Where can you download earlier versions of Ad Injection?

Whenever possible you should use the latest version of plugins and themes, however if you have recently updated and discovered that you need to install an earlier version you may be able to download other versions of Ad Injection from the WordPress repository by visiting this link.

Please note that installing earlier versions of a theme or plugin is not generally a recommended course of action for most users and could re-introduce security, stability or other issues in Ad Injection

About our testing enviroment

Tests were conducted using Apache 2.4.29, PHP 7.2 on Ubuntu 18.04, MySQL 5.7.33 and WordPress 5.9

It is very possible that different versions of PHP such as PHP 8.0, PHP 7.4, or PHP 7.3 could behave differently with Ad Injection. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.