Home › Toolset Professional Support › [Resolved] CRED form slug renaming themselves and overwriting existing forms
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)
Tagged: Content-submission forms, CRED API, Toolset Forms
Related documentation:
This topic contains 15 replies, has 3 voices.
Last updated by robertM-17 6 years, 12 months ago.
Assisted by: Minesh.
I am trying to:
use CRED for making forms
Link to a page where the issue can be seen:
This is a previous ticket.
https://toolset.com/forums/topic/cred-form-redirects-failing-and-also-renaming-themselves/
It seems that while the redirect was a problem I introduced, the rewriting CRED slug problem is still there. The screenshots on that ticket shows the problem.
In summary
1) Create CRED form, with title (CRED normally / used to give the form slug name which was the same as the form name)
NOW..
2) CRED names form 'sample page' (1-2-3 etc) . Brings problems for identifying the form etc. Having to redo access controls etc
I was working around it BUT it now Overwrites previous 'sample page' slug, so am not able to access previous forms via the CRED forms buttons, since the 'sample page' slug is overwritten..
I tried this on a subsite with Twenty Seventeen theme and only Toolset plugins activated and it's the same
I expected to see:
CRED slugs like before, based on the CRED title, not 'sample page'
Instead, I got:
CRED slugs named sample page and overwriting previous 'sample page'. And no way to change CRED from slug title.
screenshots on previous ticket
Very strange. Assuming you have no custom code in place, my guess is that somehow a CRED form or some CRED form settings have become corrupted in the database, and that's affecting all the new forms being created. I'm not able to replicate this issue, so I'll need to work on a clone of your site to try to diagnose further. I can install the Duplicator plugin to create that clone, if you approve. Please provide login credentials in the private reply fields here, and I will begin testing.
Hi Christian
Can't guarantee I don't sadly, as my process has been more about discovery than a structured design-plan-build-trac workflow. However,
I tested it on a Toolset only- 2017 theme subsite (of multisite) but don't know if Network set-up might also affect such a site as far as plugins/ custom code is concerned.
Granted, it would with any problems in the shared database that the multisite lives on..
I look forward to your feedback
Thanks for support once more.
Robert
don't know if .htacess makes any difference. This is what it looks like.
RewriteEngine On
RewriteBase /network-app/
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
I'm having trouble replicating the issue. It seems to be working correctly for new forms. I created a new CRED post form and inserted it on the Sample Page:
[cred_form form="toolset-test-new-cred-slug-1"]
The form appears as expected. Then I went to the CRED post form dashboard and used the "Clone" link underneath the form name to copy the new form, and applied the name "Toolset test new cred slug 2." Then I was able to insert that form as well:
[cred_form form="toolset-test-new-cred-slug-2"]
Is there another step I'm missing?
hi Christian
Thanks for taking a look.
It happens when the form is edited.
As you might see if you looked again, the form you created, that I have since edited (just the title), now has a 'sample page' in the slug. The correct edited title appears in the 'add cred form' button popup however.
As before, feel free to fiiddle with plugins if need be on the 'tester site'
Thanks
Robert
Okay thanks for the info. I trashed the "Sample Page" page and emptied the trash, and created a new CRED form:
wp-admin/post.php?post=56&action=edit
Then I edited the form contents and saved. Now my new, edited CRED form slug is showing up correctly when I insert it into this post:
wp-admin/post.php?post=28&action=edit
[cred_form form="ts-test-after-trash"]
I think something must have become corrupted in the database regarding the old Sample Page, and that corruption affected CRED in an unexpected way. Can you confirm it's working correctly now by creating new CRED forms and editing them, then inserting them into a post?
Christian
Thanks for update.
Yes, you are right, I've tried a few times on the tester subsite and it seems like that's not renaming slugs. On the main site it is still, so...
I'm trying your method and 1) exported all forms 2) deleted all forms but you say:
" I trashed the "Sample Page" page and emptied the trash, "
Err, how does one actually empty trash?? With others posts Trash becomes a category, but am not getting such a thing on CRED forms..
I could probably use WP Sweep or other optimiser but feel I am missing something too obvious. I can't actually see anywhere that these trashed forms are. Sounds dumb, I know! Done some searches before pressing Sub...
Sorry..
I've also noticed (a while ago but am wondering if it's related)
The wizard does not get past the settings page. Neither tester site (none but toolset plugins, 2017 theme) or on the main site.
I'll send ftp details if it helps.
Thanks again.
...Also, may be a clue
clicking EDIT below an existing the form title in 'Post Forms' brings up the New Form Wizard, but on the Settings Page.
Is this standard behaviour? Since I have had to abandon the wizard on settings page as there were no options there or no 'next' button available.
Hi robertM-17,
Christian is on vacation . This is Minesh here and I'll take care of this ticket and try to help you further. Hope this is OK.
Well - I logged in using the access details you already shred with Christian and I do not see the form available for which you shared the screenshot.
Do you still have any issues - If yes, could you please share details with me with brief explanations, I'm happy to help you further.
Hi Minesh
Thanks for your reply.
And for taking a look.
1) I think there is a problem with the wizard. I always have to exit it at the Settings stage as there are no options there.
The screenshot is from the main site and I've found that that seemed to be happening when i exited the wizard but did not complete the form. I think edit does not reopen the wizard if I complete the form, so can ignore that part of the problem.
However, the problem with the wizard is still there. I have to exit at the settings stage as there are no options available.
Also,
2) the other question of how to empty trash. I presume Christian did this to try to clear any trace of possible or suspected corrupted forms. I can delete forms but, unlike wp post etc, where 'trash' / 'bin' appears as category for recovery of emptying, I could not see how to empty trash with Cred Post Forms. Does that matter?
3) (which was the orginal 1) Following Christian's intervention with deleting forms /emptying trash to clear any possible corrupted ones - I am still testing the behaviour, of form slugs renaming themselves to 'sample-page-x' on the main site.
It still seems to be happening sometimes so have to work out the circumstances. First I wanted to get to 'empty trash' as Chrisian had with the 'tester subsite.
Thanks again
1) I think there is a problem with the wizard. I always have to exit it at the Settings stage as there are no options there.
The screenshot is from the main site and I've found that that seemed to be happening when i exited the wizard but did not complete the form. I think edit does not reopen the wizard if I complete the form, so can ignore that part of the problem.
However, the problem with the wizard is still there. I have to exit at the settings stage as there are no options available.
=====>
Well - I just try to create post form and I can see that its working fine but yes, once you click on "Next" button you need to wait for 5 seconds and its displaying the settings step fine.
You can see the settings step with the following test form I've created:
=> hidden link
2) the other question of how to empty trash. I presume Christian did this to try to clear any trace of possible or suspected corrupted forms. I can delete forms but, unlike wp post etc, where 'trash' / 'bin' appears as category for recovery of emptying, I could not see how to empty trash with Cred Post Forms. Does that matter?
=====>
Once form is deleted - its deleted forever, so no trash needed. Christian deleted the "sample page" and post type "page" has trash option and he deleted "sample page" from trash as well.
3) (which was the orginal 1) Following Christian's intervention with deleting forms /emptying trash to clear any possible corrupted ones - I am still testing the behaviour, of form slugs renaming themselves to 'sample-page-x' on the main site.
=====>
Ok - let me know is there is anything wrong.
Hi Minesh
Thanks for taking a look at the reply.
===FORM WIZARD
I can see that you got past the setting pages, I still cannot.
When I go to yours, I can see it's on build mode. I press 'back' and tho there is nothing on that screen, but the NEXT button is available.
When I try to create mine, I cannot get past the Setting as no NEXT button ever becomes available.
I've tried Chrome, Firefox and Safari with the same result. Is there something wrong with my environment?
I waited minutes. In fact as I've typed this I had a new post form stuck on settings page, waiting to see if came back. It still hasn't.
I notice - between naming and settings - it seems as if it's going to form edit page for a moment, then comes back to the wizard and stays there. So i've been exiting the wizard as i can go no further.
====SLUG RENAMING
Also - on the other re-naming slugs issue. It still does it. (sorry hope this is not two issues, i think they are related anyway)
I've also Noticed that I've edited one of the forms I did after Christian thing, which seemd to be working fine for a moment. But now I've noticed:
CREATE FORM - gets slug name based on title.
ok to paste shortcode, all fine.
EDIT THE SAME FORM - form slug is renamed.
What I've noticed more recently is the name is that of the blog post I created (with a cred form), not tested with just staight blog post - but the slug is renamed after a page. At first is was 'sample-page...' not it's
[cred_form form="new-page-not-sample-4"]
"New Page Not Sample Page" is the title of a page I posted, while testing cred forms. So when I edit a CRED form it renames the slug of the form to this.
As a workaround, I've been using Admin Columns plugin to get to the slug and having to keep renaming it after editing. Good this is most of the work on it the form ID, which doesn't change, only the slug changes. So thankfully the workaround (manually renaming the slug) , while annoying is the best way to ensure the form still works elsewhere on the site.
====EMPTY TRASH
Thanks for clarification on delete trash. I been using WP Sweep just in case.
Much Thanks again for support,
Hope we can find a resolution but it's all 'very strange' as Christian first said.
Hi Team ts
I just had to review what I should see on the post screen as it's been such a long time i forgot. I don't get what i see in this web screenshot. My settings page is blank. Is there some dependency I need to check on my system?
- as it' blank in all my browsers
re: screenshots - What I am supposed to get v What I actually get.
Thanks some more
Well - best thing I would suggest is to check with another server or create a clean install on another server and install Toolset plugins and try to create CRED form as I do not see any issue even on your server. Even I shared few example of CRED forms which I created I'm wondering why its not working for you.
So, best way to change computer and server and check if that works well with completely new setup.