Skip Navigation

[Resolved] Hello, I’m trying to connect custom post type with custom taxonomy.

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

Problem:
Not able to connect custom post type with custom taxonomy.

Solution:
1. Enable WP debugging: https://toolset.com/documentation/user-guides/debugging-toolset/

2. Then look for actual errors, for example like this:

Fatal error: Uncaught Error: Call to undefined function mb_strtolower()

mbstring PHP module is missing on your server, it should be installed and enabled. You need to contact your hosting support to enable this module for you, this module is required for Toolset to work. More details are in this post where an old customer had the same error and resolved it by contacting hosting or server admin: https://toolset.com/forums/topic/call-to-undefined-function-mb_strtolower/#post-374232

This support ticket is created 7 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 10 replies, has 2 voices.

Last updated by Dimitri Gogelia 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#578970
Screen Shot 2017-10-16 at 13.00.49.png

I am trying to: Create custom post type and custom taxonomy

I expected to see: connection between custom post type and taxonomy

Instead, I got: Boxes "Labels" and "Post Type to be used with this Taxonomy" doesn't appear and I can't dropdown them.

#578984

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Dimitri,

Thank you for contacting Toolset support.

1. Please Create a New Taxonomy and Save it, then Edit the taxonomy and check if all the options are now available.

2. MySQL 5.5.5 version in your site, is lower than the required for Toolset. Please upgrade MySQL version and see if this resolves the issue: https://toolset.com/toolset-requirements/

3. Please try to check it by deactivating all third-party plugins (except Toolset) and switching back to the Default Theme (e.g. Twenty Sixteen theme) to see for any possible conflicts with any of the plugins or themes?

4. If the issue still exists, please delete Toolset plugins for example “Types” from WordPress dashboard (make sure there is no Toolset related folder, for example “Types” exists in your FTP, if you see any Toolset folders for example “Types” in FTP then please delete it) and re-install it again from Commercial Tab in WordPress Dashboard.

OR You can download and install from your account. Don’t worry all of your Toolset data will be kept as it is: https://toolset.com/account/downloads/

Thank you

#578991

Hi Noman,

As you mentioned, I did next:

1. Tried to create new taxonomy, but unfortunately result is same.

2. I use MariaDB. Is it OK? Here is terminal output: mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2.

3. Same result.

4. Same result.

P.S. I'd used commercial version.

#579015

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Dimitri,

1. Please Enable WordPress debugging in your site and look for any errors on the Toolset plugins dashbaord page or error log file (any screenshot incase of errors will help us as well): https://toolset.com/documentation/user-guides/debugging-toolset/

2. Can you please try to downgrade PHP version on the server to a lower version for sometime like PHP 7.0.xx or 5.6 or 5.7 or any similar (currently its 7.1.9). I am not sure how much it will help but in few cases I have seen this helped in resolving such problems.

3. Please also check browser console is there any error?

Thank you

#579027

Hello Noman,

Unfortunately I can't downgrade PHP version.

I'll try debug mode.

Thank you for your help!

#579099

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

ok sure please debug and let us know. If we could try php downgrading on a test or staging server, that would also be helpful, as if its a php compatibility issue I can report to our developers accordingly and the other debugging ways might not be needed if this results in true.

Thank you

#579629
Screen Shot 2017-10-17 at 20.20.46.png

Hello Noman,

Unfortunately, I still have issue with taxonomy creation function. I swiped on debug mode in WordPress and have this output. Hope it help you to understand problem:

Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:744 Stack trace: #0 [internal function]: Types_Admin_Page->sort_by_title_helper(Array, Array) #1 /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php(707): usort(Array, Array) #2 /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.edit.taxonomy.php(719): Types_Admin_Page->sort_by_title(Array) #3 /home/delphiknight/basa.ge/public/wp-admin/includes/template.php(1050): Types_Admin_Edit_Taxonomy->box_post_types(NULL, Array) #4 /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/admin.php(1776): do_meta_boxes(Object(WP_Screen), 'normal', NULL) #5 /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/admin.php(727): wpcf_admin_screen('toolset_page_ in /home/delphiknight/basa.ge/public/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php on line 744

#579641

And one more: I'm using nginx, not Apache. When I'm creating One-Click Application WordPress instance on DigitalOcean, it works with Apache and your plugin works fine. But on my nginx doesn't.

#579794

Hello,

Is there any solution to fix this issue?
Please, help!

#579830

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Dimitri,

Thanks for the debug steps, I see the actual error now:

 Fatal error: Uncaught Error: Call to undefined function mb_strtolower() 

mbstring PHP module is missing on your server, it should be installed and enabled. You need to contact your hosting support to enable this module for you, this module is required for Toolset to work. More details are in this post where an old customer had the same error and resolved it by contacting hosting or server admin: https://toolset.com/forums/topic/call-to-undefined-function-mb_strtolower/#post-374232

Please let me know if it works after this module is enabled on the server side. Thank you

#579836

Tank you very much! Case is closed, Plugin works properly!