• I’m getting this error, not sure if it was from a recent plugin update. I couldn’t find anything specific to this tribe function in the other forums:

    Fatal error: Uncaught Error: Call to undefined function tribe_get_custom_field() in /home/volleyba/public_html/wp-content/themes/volleyball-bc/taxonomy-clinic-groups.php:68 Stack trace: #0 /home/volleyba/public_html/wp-includes/template-loader.php(74): include() #1 /home/volleyba/public_html/wp-blog-header.php(19): require_once(‘/home/volleyba/…’) #2 /home/volleyba/public_html/index.php(17): require(‘/home/volleyba/…’) #3 {main} thrown in /home/volleyba/public_html/wp-content/themes/volleyball-bc/taxonomy-clinic-groups.php on line 68

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Your currently active volleyball-bc theme seems to be the error.

    To confirm, try switching to the unedited default Theme (Twenty Seventeen, etc.) for a moment via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding "-old" to the end of the folder name. Alternately, you can remove other themes except the default theme (Twenty Seventeen, etc.). That will force your site to use it.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    This error caught me too. It’s an issue with the “The Events Calendar PRO” plugin. tribe_get_custom_field() is a deprecated function and was recently removed. The function call needs to be updated. See

    https://theeventscalendar.com/function/tribe_get_custom_fields/

    A likely spot to look for this in a custom Events template file, usually in a child theme.

    • This reply was modified 6 years, 5 months ago by codesmithsf.

    This error caught me too, here is the code that fixed the problem for me:

    $room_number = tribe_get_custom_field('Room Number'); // Old way, now broken
    $room_number = tribe_get_custom_fields()['Room Number']; // new way, works

    • This reply was modified 6 years, 4 months ago by chris.
    • This reply was modified 6 years, 4 months ago by chris.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined function tribe_get_custom_field()’ is closed to new replies.