Hello Steven,
the source for the conflict is ezTOC.
If the shortcode [toc] is on a page, the ezTOC plugin uses the function “stripShortcodes” in the file includes/class.post.php. This removes all asa2 shortcodes contained in the $tags_to_remove array.
Before:
(
[0] => wp_caption
[1] => …
[7] => asa2
[8] => asa2_img
[9] => asa2_collection
[10] => asa2_textlink
[11] => asa2_smart_collection
[12] => asa2_keywords
[13] => …
[15] => ez-toc
[16] => toc
After:
(
[0] => wp_caption
[1] => …
[7] => asa2
[8] => asa2_img
[9] => asa2_collection
[10] => asa2_textlink
[11] => asa2_smart_collection
[12] => asa2_keywords
[13] => …
[15] => ez-toc
[16] => toc
If the ASA2 shortcodes are added to the array $shortcodes on line 30 in the file includes/inc.plugin-compatibility.php, the error no longer occurs:
$shortcodes = array (
…
‘asa2’,
‘asa2_img’,
‘asa2_collection’,
‘asa2_textlink’,
‘asa2_smart_collection’,
‘asa2_keywords’,
If the ezTOC plugin did not remove these previously existing shortcodes, the problem would not arise. This should definitely be fixed, as it can certainly lead to conflicts with other plug-ins.
Can you please clean this up with an update?
Many thanks in advance.
Mario