Skip Navigation

[Resolved] Template to Display Custom Posts

This support ticket is created 4 years, 1 month 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Shane 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#2107579

Editing blocks in the template to display my custom post type "Prodotto" cause, at saving, the error message:
Something went wrong while fetching the dynamic content from the selected source, with message: "La risposta non è una risposta JSON valida.".
Then I get a 502 Bad Gateway on NGINX.

can you kindly help me?

#2107681

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Emanuele,

Thank you for getting in touch. Before we can do further debugging I would like to ensure that you've gone through the basic debugging steps.

This means you will need to temporarily disable all the non-toolset plugins and check again to see if the issue still remains.

If it does then I would like to have admin access to the site to create a copy where I can test further.

Thanks,
Shane

#2107739

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Emanuele,

I took a look at this for you and went ahead and added a test block and saved the template, however i'm not able to notice any issues at all.

The template saved correctly without displaying any errors.

Thanks,
Shane

#2108209

Hi Shane, thanks for your help
I confirm that I was able to save my editing to the template.
But now I have a new issue with the page: hidden link (the page with a view for searching among my custom posts). This page now is blank (at the content part) and if I try to modify the page the site crash with a critical error message.
Can you help me with this?

#2108489

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Emanuele,

The following fatal error is being thrown on the page. I'm assuming this page has this view assigned to it "ricerca prodotti "

It would appear that this view is the source of the issue and as such I would recommend deleting the view and remaking as it could've become corrupted during and interrupted save to the database.

The view can be deleted from the link below.
hidden link

Please try this and let me know if you're now able to access the page .

Thanks,
Shane

#2110165

Hi Shane, thanks for your help.
I deleted the view corrupted and recreated a new one.
The new view works as expected. So I have reactived all plugin. But now, modifying the template for the single custom post "Prodotti", I have received the old message with the Json error, the 502 Bad Gateway and this message:

Il tuo sito [CIRB] ha un problema tecnico
Per prima cosa, vai al tuo sito web (hidden link) e controlla se ci sono problemi visibili. Successivamente, vai nella pagina in cui è stato rilevato l'errore (hidden link) e verifica se c'è qualche problema visibile.

Versione di WordPress 5.7.2
Tema corrente: cirb_hueman-child (versione 1.0)
Plugin corrente: Toolset Blocks (versione 1.5.3)
Versione PHP 7.4.20

Dettagli dell'errore
====================
Un errore di E_ERROR è stato causato nella linea 63 del file /var/www/vhosts/cirb-online.it/httpdocs/wp-content/plugins/toolset-blocks/application/controllers/compatibility.php. Messaggio di errore: Uncaught Error: Class 'OTGS\Toolset\Common\Condition\Plugin\UltimateAddonsGutenberg\IsUltimateAddonsGutenbergActive' not found in /var/www/vhosts/cirb-online.it/httpdocs/wp-content/plugins/toolset-blocks/application/controllers/compatibility.php:63
Stack trace:
#0 /var/www/vhosts/cirb-online.it/httpdocs/wp-content/plugins/toolset-blocks/application/controllers/compatibility.php(32): OTGS\Toolset\Views\Controller\Compatibility->initialize_all_integrations()
#1 /var/www/vhosts/cirb-online.it/httpdocs/wp-content/plugins/toolset-blocks/application/controllers/main.php(76): OTGS\Toolset\Views\Controller\Compatibility->initialize()
#2 /var/www/vhosts/cirb-online.it/httpdocs/wp-includes/class-wp-hook.php(292): WPV_Main->initialize_classes()
#3 /var/www/vhosts/cirb-online.it/httpdocs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#4 /var/www/vhosts/cirb-online.it/httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action()
#5 /var/www/vhosts/cirb-online.it/httpdocs/wp-content/plugins/cred-frontend-editor/

what can I do now?

#2110291

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Emanuele,

Perhaps there is an issue with the server right now as im trying to access even the homepage and i'm being presented with an error 502.

It would appear the entire site is down at the moment.

Thanks,
Shane