Skip Navigation

[Résolu] Generic Field [cred_show_group] causing Fatal Error

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
CRED Generic field causing Fatal error:

Fatal error: require_once(): Failed opening required 'field/class.radio.php' (include_path='.:/opt/alt/php70/usr/share/pear') in /home/mysite/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 83

Solution:
This issue is fixed with next CRED release 1.9.2.1.

You can find hotfix at:
https://toolset.com/forums/topic/fatal-error-require_once-failed-opening-required-fieldclass-radio-php-inc/

Relevant Documentation:

This support ticket is created Il y a 7 années et 1 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
- 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)

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

Dernière mise à jour par julieP Il y a 7 années et 1 mois.

Assisté par: Minesh.

Auteur
Publications
#582011

I've been using a Conditional Group on many post forms successfully but since the latest Views update (to 2.5) this fatal error message appears when the form is accessed on the frontend:-

Warning: require_once(field/class.radio.php): failed to open stream: No such file or directory in /home/mysite/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 83

Fatal error: require_once(): Failed opening required 'field/class.radio.php' (include_path='.:/opt/alt/php70/usr/share/pear') in /home/mysite/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/form_rendering.php on line 83

The code on the form looks like this:-

[cred_show_group if="($(custom) eq  'Yes' )"  mode='slide']
<div class="form-group">
  <label>Please provide details</label>
[cred_field field='custom-details' post='my-post' value='' urlparam='' output='bootstrap']
</div>
[/cred_show_group]

If I remove the cred_show_group shortcode, the fatal error message doesn't appear.

Please advise. Thanks.

#582210

Minesh
Supporter

Les langues: Anglais (English )

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

Hello. Thank you for contacting the Toolset support.

I just tested with my test install and I could not able to reproduce the issue.

Could you please make sure that ALL Toolset plugins are updated to it's latest official release version. You can download latest Toolset plugins from your account's download page:
=> https://toolset.com/account/downloads/

If Toolset plugins already updated - then I need access details to check whats going wrong on your install.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#582269

Hi Minesh

Yes, all my plugins are up to date.

Before I provide access, can you confirm whether this is the issue I'm having is the same as the one on this ticket (the error seems to be the same):-

https://toolset.com/forums/topic/fatal-error-require_once-failed-opening-required-fieldclass-radio-php-inc/

and therefore whether the patch provided on that ticket would solve the issue I'm having?

Thanks

#582271

Minesh
Supporter

Les langues: Anglais (English )

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

Ahh - Yes - it looks like same and I was not able to reproduce may be due to was on develop branch.

The good news is that - our Devs offered hotfix in order to resolve this issue. Could you please try the hotfix and try to resolve your issue.
=> https://toolset.com/errata/exception-fatal-error-failed-to-open-fieldclass-radio-php-shown-on-page-with-cred-form-shortcode/

#582301

Hi Minesh

Thank you - yes, that's worked for me. Appreciate the swift resolution.

Bye for now