Support » Fixing WordPress » Call to undefined function

  • I have a php module included through my wordpress functions.php file
    and it is stored in my theme directory however i do not have access to wordpress core functions or other functions stored in functions.php in my themes root directory.

    A basic overview of my site structure is

    functions.php
    /functions/locator/webzone.php << Included in functions php

    and webzone includes

    include_once('config.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/more_functions/db_functions.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/more_functions/Forms.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/db/db_class.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/library/gmap/Gmap_class.php');

    and so on…

    Question
    Why am i not able to access wordpress functions and theme functions if all these files are included from the themes functions.php

  • The topic ‘Call to undefined function’ is closed to new replies.