Skip Navigation

[Resolved] Toolset types getting conflict with Content notify plugin.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 20 replies, has 3 voices.

Last updated by Minesh 4 months ago.

Assisted by: Minesh.

Author
Posts
#2704299

jum
subscription option2.png

I am trying to:
We use Content notify plugin that send email when post is published/updated to the subscribed user.

The content notify have subscription option field in the post in which we can select don´t want to send mail this time or this grant. so when we select this it wont send mail . But this field is not working the mail is getting triggered all the time.

We contacted Content notify plugin , They are asking to contact Toolset as they notice it getting conflict with Toolset types plugin.

Reference Previous issue ticket:
https://toolset.com/forums/topic/toolset-types-new-version-conflict-with-content-notify-plugin/

Please guide us on this issue.

Thanks in advance,

#2704359

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Have you tried to follow the workaround described in here to see if it gets the issue fixed?

https://toolset.com/forums/topic/toolset-types-new-version-conflict-with-content-notify-plugin/#post-2676795

Thank you, please let us know.
Mateus

#2705501

jum

Hi Mateus,

The workaround has been done and the issue was mentioned to the content notify support and it was resolved by them immediately on January.

Right now the Toolset types plugin and content notify plugin has updated few times after January and noticed that subscription option is not working with recent release.

The issue is mentioned to Content notify support and after few check they requested to contact Toolset types plugin as well as it have some conflict with custom field before.

Please guide me with an issue.

Thanks in advance

#2705665

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share exact steps in order to see the issue with the staging site you shared.

#2705861

jum

Hi Minesh,

Sure, Here are the steps below.

Post type-> Grants , if you open any grants at the right sidebar you will see Subscription options which have a toogle button options
´Don't send alerts this time ´.Turn on this toogle button and try to publish the post .

As per the concept it should not trigger the mail when the ´Don't send alerts this time option´ is turn on but the mail is getting triggered.

To check the mail is triggered or not you can check in Wp dashboard-> Wp mail logging (you can see the list of mail triggered on ´Time´ with the subject ´Alert: Grant published...´ ).

To see the Content notify plugin settings.

Wp Dashboard-> Subscription-> All subscription (Here you will find the list of subscriber for the grants alert when published/updated).

Please have a look and guide us with this issue.

Thanks in advance,

#2706092

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing all those details.

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

I installed and activated the plugin "Content Notify".
- hidden link

On the following post when I select the option "Don't send alerts this time" and try to update/publish the post:
- hidden link

It gets broken when I click on "Updtae" button, can you please tell me if any setting is missing with configuration of "Content Notify" plugin.

#2707008

jum
test 1.png

Hi Minesh,

Sorry for late reply.

When i try to update the post , it show cannot verify subscription option error. It occur there is some conflict with subscription option checkbox at right side bar(content notify ) .

hidden link

When I disabled this subscription option metabox for that post in content notify settings then i try to update the post it gets updated.

But this post update need to work when subscription option is enabled for the post.

#2707014

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see there is a new version for "Content Notify" plugin and there is a fix applied:

v1.16.4 - 25th June 2024

Fixed: 'Follow' button forms weren't checking the state of the 'Disable Subscription Verification' option.

What if you update the plugin to latest version first and see if that helps to fix the issue? If no, Can you please send me the latest "Content Notify" plugin version?

#2707250

jum

Hi Minesh,

I have updated the plugin version 1.16.4 still we face the issue. The mail is triggered when subscription option is checked in grant post.

How to send the latest version will you download or site?

Please guide me with this issue.

Thanks in advance

#2707572

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please update the plugin to the sandbox site I shared:

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

#2707927

jum

Hi Minesh,

I have uploaded the new version and i have tested these scenario.

1) When i try to update any post in Gym post type the posts are updating fine. But when i try to update the post in personal trainer it shows could not verify subscription options.
( In content notify settings no settings are made for these two but this personal trainer shows error ).

2) This the issue i am facing in my site
When i publish/update the Gym post type the mail is triggered (the result can be seen in wp mail log) - its expected result
When i checked the subscription option meta box to Don´t send the mail in Gym post type and publish/ update the post the mail is getting triggered --> but it should not trigger mail.

Please guide us on this issue.

Thanks in advance

#2708739

jum

Hi Minesh,

Any update?

#2708774

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I dig it bit further.

I've enable the classic editor to edit the post and if you try to update the following gym post after selecting the option "Don't send alerts this time" from the "Subscription Options" metabox on right sidebar and update the post:
- hidden link

I can see request is not finished and it shows the following message:

Could not verify Subscription Options.

When I checked the "Content Notify" plugin files:
- plugins\content-notify\includes\class-cn.php on line #218 I can see the following line of code that triggers the "save_post" hook action and that calls the function "cn_metabox_options_save":

$this->loader->add_action( 'save_post', $plugin_admin, 'cn_metabox_options_save' );

The function "cn_metabox_options_save" code is added to the following file on line number #3082:
- plugins\content-notify\admin\class-cn-admin.php

public function cn_metabox_options_save( $post_id ) {
		$in_excluded_post_types = $this->helper->cn_list_exclude_post_types( get_post_type( $post_id ) );

		// Excluded Post Types
		if ( $in_excluded_post_types ) {
			return;
		}

		// Customizer
		if ( isset( $_POST['wp_customize'] ) && $_POST['wp_customize'] == 'on' ) {
			return;
		}

		// Listivo Theme
		if ( isset( $_POST['model'] ) ) {
			return;
		}

		// Toolset Types - Custom Fields
		if ( isset( $_GET['meta-box-loader'] ) ) {
			return;
		}

		// Toolset Types - Relationship Field
		if ( isset( $_POST['relationship_slug'] ) ) {
			return;
		}

		if ( isset( $_POST['nonce'] ) && wp_verify_nonce( $_POST['nonce'], 'cn_nonce' ) ) {
			$cn_errors = new WP_Error();

			// Don't ever send alerts for this post
			if ( isset( $_POST['_cn_metabox_post_checkbox_dont_send_ever'] ) ) {
				update_post_meta( $post_id,	'_cn_metabox_post_checkbox_dont_send_ever', true );
			}
			else {
				update_post_meta( $post_id,	'_cn_metabox_post_checkbox_dont_send_ever', false );
			}

			if ( $cn_errors ) {
				$user_id = get_current_user_id();
				set_transient( 'cn_save_errors_' . $post_id . '_' . $user_id, $cn_errors, 45 );
			}
		}
		elseif ( isset( $_POST['nonce'] ) && !wp_verify_nonce( $_POST['nonce'], 'cn_nonce' ) ) {
			echo 'Could not verify Subscription Options.';
			exit();
		}
	}

As you can see the following part of elseif code is triggered:

elseif ( isset( $_POST['nonce'] ) && !wp_verify_nonce( $_POST['nonce'], 'cn_nonce' ) ) {
			echo 'Could not verify Subscription Options.';
			exit();
		}

I see they did added some code related to Toolset:

// Toolset Types - Custom Fields
		if ( isset( $_GET['meta-box-loader'] ) ) {
			return;
		}

		// Toolset Types - Relationship Field
		if ( isset( $_POST['relationship_slug'] ) ) {
			return;
		}

But in this case - You will have to raise the ticket at "Content Notify" plugin support and raise the same case which you raise in front of us.

#2708892

jum

Hi Minesh,

Thanks for the support. Can you please try with personal trainer instead of Gym. Because the issue seen in Gym is not seen in personal trainer. (i too don´t see the cannot verify issue in grants)

The Toolset code mentioned is related to the relationship issue we faced when updating custom fields and it was fixed by content notify using this code few months back.

Can you please check with personal trainer post type with subscription option. The post is updating but it somewhere preventing subscription option to trigger the mail.

Thanks for the support.

#2708981

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - when I edit the following personal trainer:
- hidden link

When I select the option "Don't send alerts this time" from the "Subscription Options" metabox on right sidebar and update the post and update the post I can see the same white screen with message "Could not verify Subscription Options.".