WordPress.org

Forums

Types
[resolved] Call to undefined function wpcf_adm (6 posts)

  1. warren-adjust
    Member
    Posted 2 years ago #

    When trying to edit a custom fields group, I am presented with the following fatal error:

    Call to undefined function wpcf_admin_fields_get_group() in /public_html/wp-content/plugins/types/includes/fields-form.php on line 178

    I have tried removing and re-installing the plugin to no avail.

    http://wordpress.org/extend/plugins/types/

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    That's very strange, because the function exists in file embedded/includes/fields.php:

    function wpcf_admin_fields_get_groups() {
        $groups = get_posts('numberposts=-1&post_type=wp-types-group&post_status=null');
        if (!empty($groups)) {
            foreach ($groups as $k => $group) {
                $groups[$k] = wpcf_admin_fields_adjust_group($group);
            }
        }
        return $groups;
    }

    Looks like something is still missing in your plugin installation.

  3. warren-adjust
    Member
    Posted 2 years ago #

    Hi and thank you very much for your quick reply.

    The function you listed is wpcf_admin_fields_get_groups(). I'm getting an error about wpcf_admin_fields_get_group()? I don't know if that's just a typo?

  4. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, that function is just a few lines down that same file:

    function wpcf_admin_fields_get_group($group_id) {
        return wpcf_admin_fields_adjust_group(get_post($group_id));
    }

    You should see it in embedded/includes/fields.php.

  5. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    I'll mark it as resolved. Let me know if you need any more help.

  6. warren-adjust
    Member
    Posted 2 years ago #

    Hi,

    Thanks for your help so far, and sorry for my rather late reply! I have managed to partly resolve the error. I was just given this site so did not write it myself. It seems that embedded/includes/fields.php isn't being loaded, but instead another file located at /public_html/wp-content/themes/rug/embedded-types/includes/fields.php is being loaded instead, and this file was missing the function. I've added that in and am now receiving:

    Fatal error: Call to undefined function wpcf_admin_can_be_repetitive() in /home/realuni/public_html/wp-content/plugins/types/includes/fields-form.php on line 956

    Again, any light you can shed on this is very much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.