Title: Conflict with php function
Last modified: April 8, 2021

---

# Conflict with php function

 *  Resolved [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/conflict-with-php-function/)
 * Hi, I have a php function which replaces gutenberg’s gallery block with a gallery
   component of my theme, which conflicts with your plugin.
    When “Exception – apply
   settings on – all contents (the whole page)” is on I have this problem: on some
   posts, when they are updated I get this error message “Update failed. The response
   is not a valid JSON response.”.
 * The “Exception – apply settings on – all contents” function is useful for me.
   Because if I deactivate it, the exclusion is not applied to excluded posts, with
   my current theme.
    If I set “Exception – apply settings on – post content, comments,
   all widgets” it doesn’t work with my theme (it’s a page builder theme with different
   post layouts).
 * How can I solve?
    Thanks

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

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14295228)
 * Hi,
    Sorry, no idea why it’s not working 🙁 Since you wrote that custom block
   I suggest firing up the debugger and just going over everything line by line 
   to see where it conflicts with our plugin. There’s really no other way to find
   the bug.
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14308573)
 * Hi, the problem with the posts with the galleries I also caused by the php function.
   
   But the problem I have with a link post is only with your plugin. I explain to
   you: if I set up your plugin “Exceptions – apply on setting on: post content,
   comments, all widgets” it works correctly on the backend, but the exclusion is
   not applied to the posts on the frontend.
 * On the other hand, if I set “Exceptions – apply on setting on: All contents (
   the whole page)” I can’t publish a post with a text with a link.
    I have the 
   error “Update failed. The response is not a valid JSON response. ”
 * How can I solve?
 * I use tagDiv composer to create the layouts of my posts, with a Newspaper theme.
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14308584)
 * Could you make your plugin work only on the frontend?
    On the backend it creates
   problems.
 * Even in the past, with a different theme and WPbakery, I had similar problems.
 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14311379)
 * We’ll look into the issue.
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14335353)
 * Hi, do you have any news about it?

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

The topic ‘Conflict with php function’ is closed to new replies.

 * ![](https://ps.w.org/wp-external-links/assets/icon-256x256.png?rev=2103983)
 * [External Links - nofollow, noopener & new window](https://wordpress.org/plugins/wp-external-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-external-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-external-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-external-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-external-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-external-links/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/conflict-with-php-function/#post-14335353)
 * Status: resolved