Skip Navigation

[Resolved] Taxonomies can’t be added to post type

This thread is resolved. Here is a description of the problem and solution.

Problem: I am unable to add a taxonomy to a post type, and I see a PHP error on my site saying there is an undefined function mb_strtolower:

Uncaught Error: Call to undefined function mb_strtolower() 

Solution: Be sure the mbstring extension is activated on your server, it is a requirement for Toolset.

Relevant Documentation:
https://toolset.com/toolset-requirements/

This support ticket is created 5 years, 9 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by cyrilA-2 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1310509

I am trying to: create a taxonomy and add it to a post type

In the Taxonomy setting page I got this message (in the section "Post types to be used with this taxonomy"

The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

I received this email with the detailed error :
Error Details
=============
An error of type E_ERROR was caused in line 689 of the file /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php. Error message: Uncaught Error: Call to undefined function mb_strtolower() in /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:689
Stack trace:
#0 [internal function]: Types_Admin_Page->sort_by_title_helper(Array, Array)
#1 /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php(652): usort(Array, Array)
#2 /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.edit.taxonomy.php(657): Types_Admin_Page->sort_by_title(Array)
#3 /home/lussica/public_html/wp-admin/includes/template.php(1304): Types_Admin_Edit_Taxonomy->box_post_types(NULL, Array)
#4 /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/admin.php(1784): do_meta_boxes(Object(WP_Screen), 'normal', NULL)
#5 /home/lussica/public_html/wp-content/plugins/types/vendor/toolset/types/admin.php(725): wpcf_admin_screen('toolset_page_wp...', '

#1310523

Hi, it looks like your server is missing a required extension based on this part of the error message:

Uncaught Error: Call to undefined function mb_strtolower()...

The multibyte string extension (mbstring) is required for Toolset, as explained in the requirements documentation here: https://toolset.com/toolset-requirements/

You may need to speak to your hosting company to enable the mbstring extension on your server. Will you let me know the results after enabling this extension?

#1310535

My issue is resolved now. Thank you!

I just had to activate the module in PHP using my cpanel access.

Thanks