Skip Navigation

[Resuelto] Toolset Forms User Edit Link Causes Fatal Error

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user is getting the fatal error.
Fatal error: Uncaught Error: Class 'OTGS\Toolset\CRED\Model\Shortcode\Form\Link\WP_User' not found in /Applications/MAMP/htdocs/stable/wp-content/plugins/cred-frontend-editor/application/models/shortcode/form/link/user.php on line 152 ( ! ) Error: Class 'OTGS\Toolset\CRED\Model\Shortcode\Form\Link\WP_User' not found in /Applications/MAMP/htdocs/stable/wp-content/plugins/cred-frontend-editor/application/models/shortcode/form/link/user.php on line 152

Solution:

This issue was actually resolved in the latest version of our Toolset forms plugin so it should no longer occur.

This support ticket is created hace 6 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 6 respuestas, tiene 3 mensajes.

Última actualización por Darryl hace 6 años, 2 meses.

Asistido por: Shane.

Autor
Mensajes
#1110769

On my live site I have:
Forms Version 2.1
Types Version 3.0.8
Views Version 2.6.3
(all other plugins are the latest versions)

I upgraded my staging site to
Forms Version 2.1.1
Types Version 3.1
Views Version 2.6.4

With this shortcode in my content type single template:
[toolset-edit-user-link content_template_slug="user-edit"]Edit Basic Profile[/toolset-edit-user-link]

I get the following message when viewing the post

Fatal error: Uncaught Error: Class 'OTGS\Toolset\CRED\Model\Shortcode\Form\Link\WP_User' not found in /home/ibew5366/staging/1/wp-content/plugins/cred-frontend-editor/application/models/shortcode/form/link/user.php:152 Stack trace: #0 /home/ibew5366/staging/1/wp-content/plugins/cred-frontend-editor/application/models/shortcode/base_view.php(31): OTGS\Toolset\CRED\Model\Shortcode\Form\Link\User->get_value(Array, 'Edit Basic Prof...') #1 /home/ibew5366/staging/1/wp-includes/shortcodes.php(319): CRED_Shortcode_Base_View->render(Array, 'Edit Basic Prof...', 'toolset-edit-us...') #2 [internal function]: do_shortcode_tag(Array) #3 /home/ibew5366/staging/1/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)(toolse...', 'do_shortcode_ta...', '<tr>\n<td>[tools...') #4 /home/ibew5366/staging/1/wp-content/plugins/types-access/includes/Helper.php(1916): do_shortcode('<tr>\n<td>[tools...') #5 /home/ibew5366/staging/1/wp-content/plugins/types-access/includes/Helper.php(1870): Access_Helper::wpcf_access_do_shortcode_conte in /home/ibew5366/staging/1/wp-content/plugins/cred-frontend-editor/application/models/shortcode/form/link/user.php on line 152

#1110782

content of the form:

[creduserform class='cred-user-form cred-keep-original']

[cred_field field='form_messages' value='' class='alert alert-warning']

<div class="form-group">
<label>Username</label><br/>
<small>You cannot change this field</small>
[cred_field field='user_login' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Password</label><br/>
<small>Leave this blank unless you want to change your password</small>
[cred_field field='user_pass' value='' urlparam='' class='form-control' output='bootstrap']
</div>

[cred_show_group if="($(user_pass) ne '' )" mode='fade-slide']
<div class="form-group">
<label>Repeat Password</label><br/>
<small>Type the password you used in the previous field. This is to ensure that you didn't make a typo</small>
[cred_field field='user_pass2' value='' urlparam='' class='form-control' output='bootstrap']
</div>
[/cred_show_group]

<div class="form-group">
<label>Email</label><br/>
<small>This is required in case the website needs to send you a message or help reset your password.</small>
[cred_field field='user_email' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>First Name</label>
[cred_field field='first_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Last Name</label>
[cred_field field='last_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<br clear="both"/>
[cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary pull-right' output='bootstrap']

[/creduserform]

#1111297

Thanks, I replicated it, and escalated to the developers.

I have no solution right now.

#1111427

This will be fixed in the next Forms 2.1.1 release (due today)

#1111621

Thank you!

#1111708

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Darryl,

Have you updated yet ? Was this issue resolved for you ?

Please let me know.

Thanks,
Shane

#1112059

Looks like that did it.
thanks.