Undefined function error with eo_get_event_color

WordPress Event Management, Calendars & Registration Forums General Question Undefined function error with eo_get_event_color

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 9 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11376

    I’m trying to add an inline style on the event archive page that applies the event’s category color as a background-color, but keep getting this error:

    Fatal error: Call to undefined function ctype_xdigit() in event-organiser-event-functions.php on line 996

    The code I’m using in the loop is:

    <time class="event-date" style="background-color: <?php echo  eo_get_event_color(); ?>;">

    Thanks for any help.

    Jon Packman
    #11377

    The function is a native php function for validating hexidecimal characters( see http://us2.php.net/ctype_digit).

    It is enabled by default since php 4.2.0 (see http://us2.php.net/manual/en/ctype.installation.php) – but it may be that your hosts have disabled it by default.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.