Skip Navigation

[Resolved] Content Template is replaced with CRED Form

This thread is resolved. Here is a description of the problem and solution.

Problem: I am seeing CRED Forms appear on the front-end of my site where I should not see them. Content Templates are being replaced by CRED Forms.

Solution: Update to the latest versions of Toolset plugins to get the fix for this issue.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 15 replies, has 2 voices.

Last updated by Christian Cox 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#617082

after more trouble shooting I think I have it,
You guys made this soooooo much more difficult, adding at least 3 more steps to this process, IF you are going to change things may I suggest simplifying things. You did the exact same thing to maps, you added more steps and created huge issues and your documentation over all just plain sucks. It is soooo frustrating. some of us are business owners not website designers and developers we don't have time to continuously relearn how to create or NOW fix content using your plugin.

I now have 4 more images of how the ONE edit form for networking has broke the images on the bottom of the edit the post form's page. seriously these things have absolutely NOTHING to do with the editing form that is above it. now they are broken. you completely compounded this entire issue all because someone decided to make your process more complicated. Just UGH

here is the link to the edit post form page - take a look at the entire page notice an issue?

hidden link

it really just isn't okay. it really isn't

refer to https://toolset.com/forums/topic/cannot-add-the-cred-edit-link-to-anything/#post-617071

#617218

I see what you're describing, when the CRED edit form Content Template is applied to this page, the posts shown in the Sidebar Ads View and the posts shown in the Referrer Grid View also include edit forms. I ran some tests locally and I can reproduce this issue reliably in a similar scenario. The following shortcode used in a View's loop output will be replaced with a CRED form when a CRED form Content Template is applied to the current post via a URL parameter:

[wpv-post-body view_template="None"]

I apologize for the inconvenience this is causing. As a temporary fix, I can apply conditionals around the Content Templates inside the Sidebar Ads and Referrer Grid Views, which will prevent the additional CRED forms from being displayed, but will hide the post content of each result in the sidebar and referrer grid. Here is the code I will use in the Sidebar View:

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' )"]<center>[wpv-post-body view_template="None"]</center><br>[/wpv-conditional]

Here is the code I will use in the Referrer Grid View:

[wpv-item index=1]
      <tr>
			<td>
              [wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]
			</td>
		[wpv-item index=other]
			<td>
              [wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]
			</td>
		[wpv-item index=5]
			<td>
              [wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]
			</td>
		</tr>

Please let me know if you would like me to go ahead and make that temporary adjustment. I have passed this diagnosis along to my 2nd tier support team. I will let them know what's going on, and I will update you when I have some additional information to share.

#617219

Christian,
THANK YOU.
Okay - I have to admit I you overwhelmed me and I am not sure exactly what you are doing but you by all means can do what you need to, to fix it.

Here is my next question and concern. I literally have 15 more forms I want to create like this, I am assuming they will all do the same thing.

It looks to me, unless I am misunderstanding, like the content you are adding will prevent this from happening to additional forms I need to create. Is that correct?

If I am incorrect, let me know. I can try to reverse engineer what you do otherwise I just need to confirm where you go.

Thank you so very much for looking for a solution, not just tossing documentation at me.

Thank you
Lori

#617228

by all means can do what you need to, to fix it.
Done for now, the temporary fix is in place. The sidebar and referrer views look fairly empty now, while we standby for some feedback from the team.

It looks to me, unless I am misunderstanding, like the content you are adding will prevent this from happening to additional forms I need to create. Is that correct?
It depends on where the additional forms are shown on the site. In the current example, the CRED edit form is shown on a page that contains two other Views (sidebar and referrer grid). The fix is actually placed in those 2 other Views, not in the CRED form. So I can't say for sure the fix will work for the additional forms. If those additional forms are shown on pages that include different Views, the fix will not work there. I can go in and add similar conditionals to those other Views, though, it will take me a few minutes tops. Let me know if that's the case, and where I can see the problems appearing on your site once you add the new forms.

#617231

Christian,
Thank you again, I left this open only cuz I am not sure if I need you more or not.

I am assuming no, because the rest of the forms will also be on posts that have the same content.
I still have to finish them, due to this issue and not knowing if I had to alter thing or not I held off on the rest.

Thank you again so very much I appreciate it.
Lori

#617232

Christian,
I apologize, I just reviewed the page with the networking event edit form and it is still doing the same thing on my end.

thanks
Lori

#617886

Can you tell me where to find that form on the front-end (what URL)? I will take a look as soon as I can.

#617913

This is the page where I have the working post list: hidden link
if you click on edit post in the far right box you go to : hidden link this is what I am looking at.

here is the link to the view for this particular issue.

Thank you again
Lori

#618070

Okay I edited both Views:
hidden link
hidden link

I modified the conditionals to work with this Content Template ID as well:

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' ) AND ( '[wpv-search-term param='content-template-id']' ne '62945' )"]

If you find this issue popping up on other pages, find the Content Template ID in the page URL and insert it in this template:

 AND ( '[wpv-search-term param='content-template-id']' ne '12345' )

Replace 12345 with the ID of the Content Template from the URL, then paste the template code just before the last double quote mark:

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' ) AND ( '[wpv-search-term param='content-template-id']' ne '62945' ) AND ( '[wpv-search-term param='content-template-id']' ne '12345' )  "]

I'll be glad to do that for you if you tell me which pages have the problem.

#618107
Screen Shot 2018-02-20 at 7.02.02 PM.png

Hi Christian,

Thank you so much, Okay i lost the images, see the image below, and all the thank you for your referral images are gone. BUT this is way better than having all the other forms. If it is still being evaluated by others I can hold off on any further fixed till then. I just wanted you to know that the images have left.
Thank you so very much

#618280

Yes the missing images are, unfortunately, a side effect of the temporary solution. I will keep you posted as we work towards a more long-term resolution.

#618284

Perfect, thank you so very much!!

#627075

Hi, we have published an erratum post about this issue, including a patch file. Please apply the patch as described there, and then you can try to remove the conditionals added as a temporary solution. Let me know if the problem is not resolved. The permanent fix will be included in the next stable release of Views.

#627814

I appreciate that this is fixed. Unfortunately I don't know where to find the patch, nor do I know how to remove the conditionals added for the temporary fix. What I do know is that the site is broken in the chrome browser at this moment, which is probably another issue.

#628050

Unfortunately I don't know where to find the patch
Please find the erratum post and patch file here: https://toolset.com/errata/content-templates-in-cred-edit-link-target-replaced/

nor do I know how to remove the conditionals added for the temporary fix
I added conditionals to the View in this post:
https://toolset.com/forums/topic/here-is-the-link-to-the-edit-post-form-page-take-a-look-at-the-entire-page-notice-an-issue/#post-617218

The conditionals look like this:

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]

Remove the wpv-conditional tags around the "center" tags and you are left with the original code:

<center>[wpv-post-body view_template="None"]</center>

Edit both of these Views the same way to remove the wpv-conditional tags:
hidden link
hidden link

Then in this post I gave you instructions to make similar changes in other Views:
https://toolset.com/forums/topic/here-is-the-link-to-the-edit-post-form-page-take-a-look-at-the-entire-page-notice-an-issue/#post-618070
If you made changes in other Views, you should edit those Views now and remove the wpv-conditional tags.