Skip Navigation

[Resolved] Taxonomy update broke link with post type it was associated with

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

Problem: I am unable to select post types in the custom taxonomy editor screen, so I cannot associate the custom taxonomy with any post types. I am also unable to see the "Options" settings, and it looks like the page is incomplete. An error is shown in the logs:

[11-Sep-2018 15:45:53 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /path/to/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:708

Solution: Ask your site's hosting team to install and activate the Multibyte String (mbstring) extension for PHP. This extension is required for Toolset.

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

This support ticket is created 6 years, 3 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 8 replies, has 2 voices.

Last updated by romanB-3 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1102463

Hello,
Taxonomy strings update broke the link with the post type it was associated with.
The post type don't appear anymore in the list of post types.
The post type is the "Venues" custom post type added by the plugin The Events Calendar.
Thank you.

#1103681

Taxonomy strings update broke the link with the post type it was associated with.
- Which strings were updated - the slug of the taxonomy or the slugs of some terms?
- What were the strings before the update?
- What are the strings after the update?

The post type don't appear anymore in the list of post types.
- There are many lists of post types. Which list are you referring to?
- Can you see the "Venues" Link in the main wp-admin menu inside the "Events" menu?

#1104293

Which strings were updated - the slug of the taxonomy or the slugs of some terms?
"Type de lieu" was a taxonomy for "Lieu".
Type de lieu : /wp-admin/admin.php?page=wpcf-edit-tax&wpcf-tax=type-de-lieu
Lieu : /wp-admin/edit.php?post_type=tribe_venue

What were the strings before the update?
What are the strings after the update?
The old strings were in English and new ones in French. For instance on "type de lieu" : "All %s" > "Tous les %s"

There are many lists of post types. Which list are you referring to?
/wp-admin/admin.php?page=wpcf-cpt

Can you see the "Venues" Link in the main wp-admin menu inside the "Events" menu?
Yes, the CPT exists, but I can't link it to the taxonomy.
Thank you.

#1104652

Please go to Toolset > Taxonomies and edit the Type de Lieu taxonomy. Scroll down to the "Étiquettes" section and toggle it open. Take a screenshot or screenshots showing all the strings here. Then scroll down to the "Options" section and toggle it open. Take a screenshot or screenshots showing all the options here. Please add these screenshots to your next reply.

#1104654
typedelieu.JPG

Hello,
I don't see the "Options" section.
Here is all I see :

#1104820
Screen Shot 2018-09-10 at 4.14.11 PM.png

Okay please scroll to the top of the page and click "Screen Options". Check to be sure "Options" is checked here. Then check the page source code in the browser (in Chrome, that's in View > Developer > View Source). It looks like the code ends unexpectedly but I'm not sure. It should end with:

</body>
</html>

If not, this indicates a server-side error is occurring. Turn on server logs and look for any errors. If you are not familiar with server logs, I can show you how to turn them on temporarily. Go in your wp-config.php file and look for:

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);

Then add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Reload this page in wp-admin. If any server-side errors are thrown, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.

#1105575

It should end with:body html
Yes it does.

I can't see any error_log.txt, but the debut.log indicates this :

[11-Sep-2018 15:45:49 UTC] PHP Notice:  Undefined variable: post_type in /var/www/clients/client4/web51/web/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 4159
[11-Sep-2018 15:45:50 UTC] PHP Notice:  Undefined variable: post_type in /var/www/clients/client4/web51/web/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 4159
[11-Sep-2018 15:45:53 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:708
Stack trace:
#0 [internal function]: Types_Admin_Page->sort_by_title_helper(Array, Array)
#1 /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php(671): usort(Array, Array)
#2 /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.edit.taxonomy.php(743): Types_Admin_Page->sort_by_title(Array)
#3 /var/www/clients/client4/web51/web/wp-admin/includes/template.php(1073): Types_Admin_Edit_Taxonomy->box_post_types(NULL, Array)
#4 /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/admin.php(1776): do_meta_boxes(Object(WP_Screen), 'normal', NULL)
#5 /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/admin.php(726): wpcf_admin_screen('toolset in /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php on line 708
[11-Sep-2018 15:46:04 UTC] PHP Notice:  /var/www/clients/client4/web51/web/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Asset__Factory.php est <strong>obsolète</strong> depuis la version 4.6.21 ! Utilisez Deprecated class in favor of using `tribe_asset` registration à la place. in /var/www/clients/client4/web51/web/wp-includes/functions.php on line 3981
[11-Sep-2018 15:46:04 UTC] PHP Notice:  /var/www/clients/client4/web51/web/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Asset__Calendar_Script.php est <strong>obsolète</strong> depuis la version 4.6.21 ! Utilisez Deprecated class in favor of using `tribe_asset` registration à la place. in /var/www/clients/client4/web51/web/wp-includes/functions.php on line 3981
[11-Sep-2018 15:46:04 UTC] PHP Notice:  /var/www/clients/client4/web51/web/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Asset__Abstract_Asset.php est <strong>obsolète</strong> depuis la version 4.6.21 ! Utilisez Deprecated class in favor of using `tribe_asset` registration à la place. in /var/www/clients/client4/web51/web/wp-includes/functions.php on line 3981
#1105591
[11-Sep-2018 15:45:53 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /var/www/clients/client4/web51/web/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:708

It looks like your server does not have the Multibyte String (mbstring) extension active. This PHP extension is required for Toolset: https://toolset.com/toolset-requirements/

Please ask your hosting company to install and activate this PHP extension, then let me know if the problem is not resolved.

#1105611

Thank you very much.