Passer la navigation

[En attente du retour de l'utilisateur] debug in views

This support ticket is created Il y a 1 weeks. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 6 réponses, a 1 voix.

Dernière mise à jour par Minesh Il y a 2 hours, 7 minutes.

Assisté par: Minesh.

Auteur
Publications
#2823008

hi i have used toolset a long time , i rescently had to remake site as old one was outdated etc etc , since using new set up i have a few issues ,

issue 1 ) if turn on debugging in toolset/ settings /front end and turn on debugging it actually breaks the site pages/posts where toolset is used i get this error There has been a critical error on this website. example lien caché

issue 2 if i go into an event where is use views in my backend example lien caché

and i have wordpress debuggin turned on i get this error

Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, string given in /var/www/vhosts/gundog.world/httpdocs/wp-content/plugins/wp-views/application/controllers/cache/views/invalidator.php:274 Stack trace: #0 /var/www/vhosts/gundog.world/httpdocs/wp-content/plugins/wp-views/application/controllers/cache/views/invalidator.php(274): array_intersect() #1 /var/www/vhosts/gundog.world/httpdocs/wp-content/plugins/wp-views/application/controllers/cache/views/invalidator.php(217): OTGS\Toolset\Views\Controller\Cache\Views\Invalidator->invalidate_cache_per_domain() #2 /var/www/vhosts/gundog.world/httpdocs/wp-includes/class-wp-hook.php(324): OTGS\Toolset\Views\Controller\Cache\Views\Invalidator->should_invalidate_cache() #3 /var/www/vhosts/gundog.world/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #4 /var/www/vhosts/gundog.world/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /var/www/vhosts/gundog.world/httpdocs/wp-includes/load.php(1304): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /var/www/vhosts/gundog.world/httpdocs/wp-content/plugins/wp-views/application/controllers/cache/views/invalidator.php on line 274

issue 3
in toolset setting on old setup i have bootstrap 3 selected . on the new set up i dont know what bootstrap setting i need to use ion toolset settings

many thanks , i can give you a login if you require wp backend

#2823166

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The site you shared is a production site and we do not recommond deep debugging on the production site.

Can you please share staging site first and then try to follow the following steps:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference? if no:

I see you are using PHP 8.3.x - what if you try to downgrade the PHP version to PHP 8.2.x - Do you see it working? If no:

Can you please send me staging site admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#2823441

thanks for the answer ,
i have downgraded to php 8.2 , this made no difference ,
staging site is causing me all kinds of head ache on my server ill get it sorted asap.
could you clarify , if tooset views debug is active , does wp debug HAVE to be enablesd also ?
please set next reply private so i can send you stage login details

many thanks
martin

#2823454

issue 2 is resolved i cleared the views caches and it removed the error thanks

#2824083

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Can you please share staging site access details and also share exact steps I will have to follow in order to see the issue #1.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#2824107
#2824108

i also have made a full backup of site and database ,thanks

#2824321

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Ok - I checked and yes I can confirm that when I activate the view's debug mode the page is crashed.

Just to double check with you, I see you are using number of third-party plugins.

In order to minimize the cause of the issue and to ensure there is no conflict with the theme/plugin you use:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?
- Waht if you downgrade the PHP version to PHP 8.1.x?

If none of the above works, I will require duplicator copy of your site but lets take that step later once you confirm above information.