Skip Navigation

[Resolved] Forbidden error when saving post 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)

This topic contains 13 replies, has 2 voices.

Last updated by nicolaS-3 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2518613

Hi,
recently when editing and saving SOME Toolset (post) forms I get the following message:
Forbidden - You don't have permission to access this resource.

I noticed that after hitting SAVE the post address changes from

hidden link...mysite.../wp-admin/post.php?post=1234&action=edit

to:

hidden link...mysite.../wp-admin/post.php

while for other forms that I CAN save the address doesn't change.

I have asked my hosting provider and they said it's not their issue, so I am wondering if it's a Toolset issue, please let me know.
Kind regards
Nicola
PS- not sure if it matters: site was recently moved to PHP 8

#2519349

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is really strange behavior - I would like to know the following:
- You are loggedin with what user role and you are truing to save/update the form
- Do you know that you have enough permissions granted to save the form?

Can you please share problem URL and admin access details and tell me the steps that I should follow that should help me to reproduce the issue.

*** 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.

#2519715

Minesh
Supporter

Languages: English (English )

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

Could you please share few example links of forms where I can see the issue.

#2519721

see previous private msg

#2519723

Minesh
Supporter

Languages: English (English )

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

First of all, I found that you are using the outdated Toolset Types plugin. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Do you see any difference once you update ALL Toolset plugins to latest version? If your problem still persists:
In order to minimize the cause of the issue and make sure there is no conflict between the third-party plugins or theme you are using:

*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

#2519777

Hi Minesh,
now all Toolset plugins are updated (I thought they were already, there was no update warning ...). I also disabled all plugins and theme but the issue is always there. Is there any log file to check for errors ?
thanks

#2520003

Minesh
Supporter

Languages: English (English )

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

Here is the doc that should help you to know how you can enable the debug log:
- https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#general-toolset-debugging

In addition to that can you please check the server log as well. Its certainly do not looks related to Toolset but from the server. Please check the following articles and see if you able to fix the issue:
- hidden link.
- hidden link

#2520095

Hello Minesh,
I found out that the issue is in these lines in a form:
[cred_field field='geo' force_type='taxonomy' output='bootstrap' display='select' single_select='true' select_text='--- SELECT ---']
If I delete the display='select' single_select='true' select_text='--- SELECT ---'] part then I can save the form.
Is this info of any help for you ??
Regards
Nicola

#2520109

Minesh
Supporter

Languages: English (English )

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

That is really strange.

Can you please make sure you do not have duplicate slug with taxonomy slug "geo". Please check if you have any other post or entity added to your system with the same slug "geo".

Here I've created the sandbox site for you, you can auto-login to it using the following link:
- hidden link

I added post type "Students" and taxonomy "Student Grades" and then created the following form and added the taxonomy:
=> hidden link

[cred_field field='student-grade' force_type='taxonomy' output='bootstrap' display='select' single_select='true']

I do not able to reproduce the issue. Can you please try to add the taxonomy with slug "geo" like you have and check if you able to reproduce the issue.

#2520113

Hi
I did what you asked and it works (and it WAS working for me too before the host migration). This tells me that is likely a server issue, but I need to give my provider more precise indications about which specific file could be involved: what file includes the select code ? what file includes the form code ? which db table ? and then check permissions status for those files. Would reinstalling plugins help ? thanks

#2520117

Minesh
Supporter

Languages: English (English )

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

You should try to reinstall the forms plugin and check there is no harm in that.

You should check with your hosting provider and check if proper permissions are granted for the toolset forms plugin files - I agree with you that It certainly seems server issue.

#2520149

Minesh,
I upgraded the plugin yesterday as per your suggestion and checked that all permissions are ok ( 755 for folders and 644 for files) . Actually it's the .... display='select' .... that triggers the Forbidden message. Could you please ask the developers if have a clue ? in the meantime I will ask the hosting provider.
thanks

#2520697

Minesh
Supporter

Languages: English (English )

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

There is no such error I get with sandbox site and if you want then you can send me duplicator copy of your site and I'll try to install on my local server and will check if I'm able to reproduce the issue.

But certainly it looks like the server issue I suggest you should check carefully with your hosting authority and if Toolset is involved we are happy to look at the issue without any doubt.

#2522385

Hello Minesh,
I still have the issue but it's definetly not a Toolset problem. I have copied my whole site to localhost and it works perfectly. I am dealing with my hosting provider. Thank you. Kind regards