Skip Navigation

[Résolu] Latest Toolset Types plugin update breaks view.

This support ticket is created Il y a 5 années et 10 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Marqué : 

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 5 années et 10 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1186277
Screen Shot 2019-01-18 at 9.45.16 am.png
Screen Shot 2019-01-18 at 9.45.06 am.png

I am trying to: update Toolset Types and Views

Link to a page where the issue can be seen: lien caché

I expected to see: Near the bottom, above the product section. The rounded squares are what is meant to be showing.

Instead, I got: The title and icon get broken and it is displaying the URL instead. Picture provided. Also provided is the Loop Editor view

#1186532

Hello,

I have checked the URL you mentioned above, it seems working fine, is this problem resolved?

If it is a custom file field created by Types plugin, you can output the file URL directly using output="raw" attribute, for example:
[types field="my-file" ouput="raw"][/types]

see our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#file
‘raw’=Display raw data stored in DB. No other formatting attributes (e.g. custom separator) will be respected.

#1186538

Hi Luo,

The issue isn't resolved, I have restored from a backup in the meantime so the website continues to work until I find a fix for the issue.

Can you tell me why this has only become an issue with the new update, what might have changed to stop the current configuration from working as it was?

Thanks

#1186541

A similar issue is occurring on another of our sites, trying to update Toolset causes a fatal error. See Error Logs below:

[Fri Jan 18 03:36:15.207928 2019] [:error] [pid 13461] [client 82.208.100.5:19946] PHP Fatal error: Cannot redeclare class Toolset_Shortcode_Generator in /nas/content/live/anatomytrains1/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.shortcode.generator.class.php on line 33
[Fri Jan 18 03:36:19.059228 2019] [:error] [pid 13463] [client 180.150.86.186:55708] PHP Fatal error: Cannot redeclare class Toolset_Shortcode_Generator in /nas/content/live/anatomytrains1/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.shortcode.generator.class.php on line 33, referer: lien caché
[Fri Jan 18 03:36:34.705215 2019] [:error] [pid 13465] [client 54.36.148.133:20138] PHP Fatal error: Cannot redeclare class Toolset_Shortcode_Generator in /nas/content/live/anatomytrains1/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.shortcode.generator.class.php on line 33

Les nouveaux fils créés par Luo Yang et associés à celui-ci sont repris ci-dessous :

https://toolset.com/fr/forums/topic/php-fatal-error-cannot-redeclare-class-toolset_shortcode_generator/

#1186546

For the original question of this thread, as I mentioned above:
https://toolset.com/forums/topic/latest-toolset-types-plugin-update-breaks-view/#post-1186532

If it is a custom file field created by Types plugin, you can output the file URL directly using output="raw" attribute, for example:

<a href= '[types field="my-file" ouput="raw"][/types]'> some text here </a>

Shortcode [types field="my-file"][/types] will output the file link using HTML A tag,
but shortcode [types field="my-file" ouput="raw"][/types] will output the file link directly, in your case, you are using HTML codes to setup the link, so you will need to use attribute ouput="raw".

#1186548

For the new question: PHP Fatal error: Cannot redeclare class Toolset_Shortcode_Generator
Please check the new thread here:
https://toolset.com/forums/topic/php-fatal-error-cannot-redeclare-class-toolset_shortcode_generator/