Skip Navigation

[Resolved] Particular CPT giving errors.

This support ticket is created 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by marcoG-5 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1120398

Hello!

logins: support / DXBBi1hk1!QZvvf4VEJV)N3! (login first to see the site)

View in question: hidden link

Page to see it break: hidden link

The other CPTs are working fine and outputting the data, but the providers type causes a fatal error

Not sure if it's a theme issue or types, but all the other views/CPTs work.

Fatal error: Uncaught Error: Call to undefined function custom_rel_nofollow() in /home2/technir1/public_html/demo/andreadavies/wp-content/themes/Divi-child/lib/provider.php:239 Stack trace: #0 /home2/technir1/public_html/demo/andreadavies/wp-includes/class-wp-hook.php(286): provider_the_content('<div class="row...') #1 /home2/technir1/public_html/demo/andreadavies/wp-includes/plugin.php(203): WP_Hook->apply_filters('<div class="row...', Array) #2 /home2/technir1/public_html/demo/andreadavies/wp-content/plugins/wp-views/application/models/shortcode/post/body.php(261): apply_filters('the_content', '') #3 /home2/technir1/public_html/demo/andreadavies/wp-content/plugins/wp-views/application/models/shortcode/base_view.php(30): WPV_Shortcode_Post_Body->get_value(Array, '') #4 /home2/technir1/public_html/demo/andreadavies/wp-includes/shortcodes.php(319): WPV_Shortcode_Base_View->render(Array, '', 'wpv-post-body') #5 [internal function]: do_shortcode_tag(Array) #6 /home2/technir1/public_html/demo/andreadavies/wp-includes/shortcod in /home2/technir1/public_html/demo/andreadavies/wp-content/themes/Divi-child/lib/provider.php on line 239

#1120694

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Marco

The error message comes from the child theme.

Could you first please switch to the Divi parent theme and see if you still see the error?

Also, the provider post type, it is not registered with Types, what is responsible for creating it?

#1121011

Hi,

The CPTs are created manually (existed before types). I can't deactivate the child theme as it will remove the CPTs that have been created.

The others all work fine, it's just the provider CPT.

Cheers,
Marco

#1121028

My issue is resolved now. Thank you!