Skip Navigation

[Resolved] Post created from parent post page in back-end doesn't validate correctly

This support ticket is created 2 years, 4 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
- 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 11 replies, has 2 voices.

Last updated by matthiasI 2 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2455627
numeric_field.jpg

I am trying to:
Create a post from its parent page in back-office.
This post has a numeric field so it should not allow letter.
But if I create this post with a letter inside the numeric field, there is no error showing and the post is created with the numeric field empty.
If I modify it then it will show the error.

Link to a page where the issue can be seen:

I expected to see:
an error message and no post creation

Instead, I got:
a post created with an empty field.

#2456037

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check if you have any js error on the browser's console - if yes, can you please share it.

Can you please share problem URL and admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2456111

Minesh
Supporter

Languages: English (English )

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

I tried to add a new post within the post-relationship box and when I try to publish it either with non-numeric characters to the numeric field it does works as expected and it shows the error message.

Please check the following video:
- hidden link

#2456123

Please do the following to see the bug :
1. Select a date in the field Date début
2. Select a date in the field Date fin
3. Enter a non numeric value in the field Numéro période, for example "n3"
4. Click on the button "Appliquer"

#2456191

Minesh
Supporter

Languages: English (English )

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

I found that you are using the legacy post relationship and you did not migrated to the new post relationship:
=> hidden link

Please check the following article:
- https://toolset.com/2018/05/when-if-to-migrate-relationships-in-old-toolset-sites/

*** Please make a FULL BACKUP of your database and website.***
If you decide to migrate to new post relationship, please make sure to take FULL backup of your database and website so in any worst case you will have backup with you to restore it.

Would you mind to migrate to new post relationship?

#2456229

Did you see the problem I was referring to ?
I would prefer not to migrate to new post relationship.
Is it possible to solve the bug ?

#2456231

Minesh
Supporter

Languages: English (English )

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

No, there is no way to solve the existing issue as its using the legacy post relationship.

We always recommend to use latest feature as the new post relationship have better URL and storage structure that will help you to boost performance.

#2456255

The website is quite complex with a lot of data manipulation.
Migrating to new post relationship would take a lot of time. I'm okay with the actual performance so no need to boost it.

I just want to fix this bug and I don't have the budget for doing the whole migration. It's sad you can't fix it on your side.

#2456257

Maybe you can tell me which file is responsible for the bug ?

#2456275

Minesh
Supporter

Languages: English (English )

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

Unfortunately, I do not have any solution for this issue. It could not be a bug but you can say usability issue when you are using the legacy post relationship.

It seems the issue only happens when you have added the posts with either empty(blank) number field value.

#2456971

Hi Minesh,
I finally added some javascript to fix the bug.
Thanks for your help and have a nice day

#2456973

My issue is resolved now. Thank you!