SitePoint Enthusiast
call to undefined function
Hello,
statement
include_once $this->apiFile; in the class file "smf.sync.class.inc"
includes the file "smf_api_1.1", I confirmed the same by running :
echo "<pre>";print_r(get_included_files());echo "</pre>";exit;
and it shows the included file (please not the last element of the array):
Array
(
* => /home/ilng/public_html/mtgcss/manager/index
[1] => /home/ilng/public_html/mtgcss/manager/includes/protect.inc
[2] => /home/ilng/public_html/mtgcss/manager/includes/quotes_stripper.inc
[3] => /home/ilng/public_html/mtgcss/manager/includes/config.inc
[4] => /home/ilng/public_html/mtgcss/manager/includes/document.parser.class.inc
[5] => /home/ilng/public_html/mtgcss/manager/includes/extenders/dbapi.mysql.class.inc
[6] => /home/ilng/public_html/mtgcss/manager/includes/extenders/manager.api.class.inc
[7] => /home/ilng/public_html/mtgcss/assets/cache/siteCache.idx
[8] => /home/ilng/public_html/mtgcss/manager/includes/settings.inc
[9] => /home/ilng/public_html/mtgcss/manager/includes/version.inc
[10] => /home/ilng/public_html/mtgcss/manager/includes/accesscontrol.inc
[11] => /home/ilng/public_html/mtgcss/manager/includes/user_settings.inc
[12] => /home/ilng/public_html/mtgcss/manager/includes/lang/english.inc
[13] => /home/ilng/public_html/mtgcss/manager/media/style/MODxLight/style
[14] => /home/ilng/public_html/mtgcss/manager/includes/error.class.inc
[15] => /home/ilng/public_html/mtgcss/manager/processors/execute_module.processor
[16] => /home/ilng/public_html/mtgcss/assets/modules/smforum/smf.base.class.inc
[17] => /home/ilng/public_html/mtgcss/assets/modules/smforum/smf.sync.class.inc
[18] => /home/ilng/public_html/mtgcss/forum//Settings
[19] => /home/ilng/public_html/mtgcss/forum/Settings
[20] => /home/ilng/public_html/mtgcss/assets/modules/smforum/smf_api_1.1
)
and I ran file_exists($this->apiFile ; also to confirm that file exists.
But a call to any of the functions in this included file "smf_api_1.1" gives me error:
Fatal error: Call to undefined function smf_registermember()
This works fine on my local machine, a windows XP SP2 with XAMPP, but the problem occurs on Linux Server (Hosting servers). I tried running it on two different servers from two different Hosting Companies.
Please help, I failed to understand why an included file's function are not recognized?
I installed MODx - SMF bridge, this occurs in this particular module.
Regards
Rajeev
file names are case sensitive at linux, therefore please check the case.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks