I have the same Fatal Error.
I run, for this site, Evolution 1.0, PHP5.2.5, MySQL 4.1.22.
I want to run SMF 1.1.10, it is installed, and I have set up and run SMF Connector 1.0
The installation offers a choice or both or none of Module and Plugin (but doesn’t say which variations are appropriate), but no matter what one chooses, it always abends with:
Setup will now attempt to setup the database:
Creating connection to the database: OK!
Selecting database `boyde_ccd`: OK!
Module:
SMF Connector: Upgraded
Plugin:
SMFConnect: Upgraded
Fatal error: Call to a member function getFullTableName() on a non-object in /home/boyde/public_html/ccd/manager/processors/cache_sync.class.processor.php on line 107
Line 107 is:
$sql = 'SELECT * FROM '.$modx->getFullTableName('system_settings');
The error reported is odd: as previously reported, the piece of script being called includes "global $modx", and I’ve checked to see if there is anything wrong with my system_settings table, but it looks fine. My database table-names do include a table-prefix, and I can’t see anything in the code that deals with prefixes, so this might be a clue.
In any event, the class being called, is called by the almost-last step of instprocessor.php:
// always empty cache after install
include_once "../manager/processors/cache_sync.class.processor.php";
$sync = new synccache();
$sync->setCachepath("../assets/cache/");
$sync->setReport(false);
$sync->emptyCache(); // first empty the cache
So I’ve cheerfully ignored it, closed down the browser, re-opened it and logged back in. Cache cleared, no?
The issue niggles though, because it doesn’t happen to a friend who has an identical set-up to me - on the face of it. (Apart from Database table prefixes: he doesn’t have any).
It niggles even more because I also get the:
Fatal error: Call to undefined function smf_loginbyid() in /home/boyde/public_html/ccd/assets/modules/smforum/smf.admin.class.inc.php on line 36
error when clicking on the Administration Center button, and the:
Fatal error: Call to undefined function smf_registermember() in /home/boyde/public_html/ccd/assets/modules/smforum/smf.sync.class.inc.php on line 114
error when clicking on Synchronize Users button, both in the SMF Connector Module.
Both these errors have been reported before, but no satisfactory response or solution seems to have been found.
I’ve checked the first instance: there is a function called smf_LoginById() in the smf.admin.class.inc.php file (NB Capitals). The Module code doesn’t make this call, and the Plugin code makes it correctly. Is the error message telling the truth? Is the call non-capitalised? I don’t know where the call is coming from yet. Do Caps matter? I always thought they did.
The second instance is similar - the class file has a function smf_registerMember with a capital M. The module code doesn’t use, and the Plugin code uses it correctly.
In the first case Line 36 in the admin class file is near the top of the documentation.
Line 36 in the plugin file is in fact a blank line in the middle of a MD5 hashing routine.
In the second case Line 114 is also in the documentation of the sync class file, and Line 114 in the Plugin is a table name declaration.
So the line numbers don’t match the likely calling program or the included class, but all you real programmers out there will doubtless know all about this. Pity I don’t.
The only clue I have is that prefixes might be at the root of this, because of the failure of the cache-clearing in initial set-up.
All I want to do is have a forum that looks like it is inside my MODx site, and if you are logged in to the site, you can hop straight into the forum.
I’m stuck.
Nic Boyde