Results 1 to 2 of 2
Thread: call to undefined function
Feb 23, 2009, 08:04 #1
- Join Date
- Jan 2009
- 0 Post(s)
- 0 Thread(s)
call to undefined function
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):
* => /home/ilng/public_html/mtgcss/manager/index
 => /home/ilng/public_html/mtgcss/manager/includes/protect.inc
 => /home/ilng/public_html/mtgcss/manager/includes/quotes_stripper.inc
 => /home/ilng/public_html/mtgcss/manager/includes/config.inc
 => /home/ilng/public_html/mtgcss/manager/includes/document.parser.class.inc
 => /home/ilng/public_html/mtgcss/manager/includes/extenders/dbapi.mysql.class.inc
 => /home/ilng/public_html/mtgcss/manager/includes/extenders/manager.api.class.inc
 => /home/ilng/public_html/mtgcss/assets/cache/siteCache.idx
 => /home/ilng/public_html/mtgcss/manager/includes/settings.inc
 => /home/ilng/public_html/mtgcss/manager/includes/version.inc
 => /home/ilng/public_html/mtgcss/manager/includes/accesscontrol.inc
 => /home/ilng/public_html/mtgcss/manager/includes/user_settings.inc
 => /home/ilng/public_html/mtgcss/manager/includes/lang/english.inc
 => /home/ilng/public_html/mtgcss/manager/media/style/MODxLight/style
 => /home/ilng/public_html/mtgcss/manager/includes/error.class.inc
 => /home/ilng/public_html/mtgcss/manager/processors/execute_module.processor
 => /home/ilng/public_html/mtgcss/assets/modules/smforum/smf.base.class.inc
 => /home/ilng/public_html/mtgcss/assets/modules/smforum/smf.sync.class.inc
 => /home/ilng/public_html/mtgcss/forum//Settings
 => /home/ilng/public_html/mtgcss/forum/Settings
 => /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.
Feb 24, 2009, 11:15 #2
file names are case sensitive at linux, therefore please check the case.