Saltar navegación

[Resuelto] permission problem when editing in wordpress and also in the public part

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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 9 respuestas, tiene 1 mensaje.

Última actualización por davidS-72 1 year, 6 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2784506

Problems:
I have two problems that seems to be related:
1) when an "editor" try to edit any CPT created with toolset the wordpress crashes.
2) The public page enlace oculto now when you clic to any title to go to the "single" it shows 404 error. For example enlace oculto

We haven't done any change to the site and all this has been working for long time.

Permisions problems?

PLease is urgent because we're an official government site and perople is complaining. I'll give you acces but be carefull please because is the PRODUCTION SITE.

To help: wordpress send me this error message:
Un error del tipus E_ERROR s'ha produït a la línia 484 del fitxer
/home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php.
El missatge d'error: Uncaught Error: Object of class
WP_Block_Editor_Context could not be converted to string in
/home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php:484
Stack trace:
#0 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php(444):
OTGS\Toolset\Access\Controllers\PermissionsPostTypes->set_post_type_permissions()
#1 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/models/capabilities.php(644):
OTGS\Toolset\Access\Controllers\PermissionsPostTypes->get_post_type_caps()
#2 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/filters/backend_filters.php(537):
OTGS\Toolset\Access\Models\Capabilities->get_capabilities_by_user_permissions()
#3 /home/elpanoramic/webapps/tjussana/wp-includes/class-wp-hook.php(324):
OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter()
#4 /home/elpanoramic/webapps/tj

TRANSLATED catalan text to english:
"An error of type E_ERROR occurred on line 484 of the file
/home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php.
The error message: Uncaught Error: Object of class
WP_Block_Editor_Context could not be converted to string in
/home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php:484
Stack trace:
#0 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/permissions_post_types.php(444):
OTGS\Toolset\Access\Controllers\PermissionsPostTypes->set_post_type_permissions()
#1 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/models/capabilities.php(644):
OTGS\Toolset\Access\Controllers\PermissionsPostTypes->get_post_type_caps()
#2 /home/elpanoramic/webapps/tjussana/wp-content/plugins/types-access/application/controllers/filters/backend_filters.php(537):
OTGS\Toolset\Access\Models\Capabilities->get_capabilities_by_user_permissions()
#3 /home/elpanoramic/webapps/tjussana/wp-includes/class-wp-hook.php(324):
OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter()
#4 /home/elpanoramic/webapps/tj"

best regards,
David

#2784520

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I can see the issue and I've escalated in front of our Devs.

*** Please make a FULL BACKUP of your database and website.***
The only workaround for now is to Downgrade the WordPress to previous stable version 6.6.2.

I suggest you should first run a test on staging site and if you see everything works as expected then you should try to downgrade WordPress on your production site.

#2784524

Hi Minesh, do you think downgrade wordpress to 6.6.2 will solve the problem?

best regards,
David

#2784525

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

On my local test installation when I downgrade the WordPress to previous stable version 6.6.2 it works.

*** Please make a FULL BACKUP of your database and website.***
I suggest you should first run a test on staging site and if you see everything works as expected then you should try to downgrade WordPress on your production site.

#2784527

OK. What is your procedure to downgrade wordpress? I'll do the same way.
thanks,
David

#2784534

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

To downgrade the WordPress version, You can use plugins like WP Downgrade:
- https://wordpress.org/plugins/wp-downgrade/

#2784537

OK I'll try meanwhile the solution arrives.
thanks Minesh.
David

#2784551

Hi Minesh,
I've downgraded to previous WP stable version 6.6.2 and:
1) editing CPT created with toolset by Editor users WORKS FINE with 6.6.2
2) NOT SOLVED 404 error for public pages like example enlace oculto

best regards,
David

#2784552

UPDATE: point 2) error 404 solved with 6.6.2.

Meanwhile the final solution arrives, this is a good solution.

thanks Minesh!
David

#2784934

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I would like to inform you that:

- we just release hotfix version for Toolset Blocks 1.6.18.
- We also release hotfix version for Toolset Access 2.9.2.

You can download it from your account's download page:
- https://toolset.com/account/downloads/

*** Please make a FULL BACKUP of your database and website.***
Can you please update All Toolset plugins to it's latest official version and I hope this will resolve your issues.

#2786012

Hi Minesh,
It worked. Thanks for your time.

David