View Full Version : Fatal error: Call to a member function on a non-object
evandaeman
08-22-2005, 05:23 PM
i get an call to error
Fatal error: Call to a member function on a non-object in "my file path/admincp/vbacmps_install.php on line 1498"
why am i getting an error when i try to run the install file???
i made the module folder 777 also changed all the needed changes in the original scripts...
ConqSoft
08-22-2005, 05:27 PM
You downloaded the wrong version. Make sure you download the correct one for your version of vBulletin.
evandaeman
08-22-2005, 05:32 PM
thanks i'll try that
evandaeman
08-22-2005, 05:35 PM
wait.. i downloaded the
vbadvanced_cmps_2_0_rc2_(vb_3_5)_.zip
which is for VB3.5 right????
the other version available is for VB3.0.x
i just bought the vBulletin so that means it's 3.5 right???
which one i should download?
ConqSoft
08-22-2005, 05:39 PM
You need the one for the version of vBulletin that you are running.
The latest stable release of vBulletin is 3.0.8. The latest Release Candidate is 3.5 RC2. You could be running either one. Look at the footer of your forums to see your version.
evandaeman
08-22-2005, 06:07 PM
thanks man.. now i installed it properly...
however when i go to my site/cmps_index.php
i get
Fatal error: Call to undefined function: print_portal_output() in myserverpath/cmps_index.php on line 35
what could this be???
evandaeman
08-22-2005, 09:28 PM
this is wired... i can't seem to get it to work
Brian
08-23-2005, 11:35 AM
You didn't apply the file changes as instructed in the readme file.
evandaeman
08-23-2005, 10:45 PM
i applied all the changes... there are not a whole lot to change
In your /forum/global.php file: (3 Changes)
Find:define('VB_AREA', 'Forum');
Below that Add:if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}
Find:// #############################################################################
// ######################## START TEMPLATES & STYLES ###########################
// #############################################################################
Above that Add:if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_top.php');
}
Find:// #############################################################################
// ######################### END TEMPLATES & STYLES ############################
// #############################################################################
Above that Add:if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_bottom.php');
}
and
In your cmps_index.php file:
Now open your cmps_index.php file in this folder and find:
chdir('/home/yoursite/public_html/forum');
that's all i had to change
upload the files and stuff..
but i got it to install properly... my problem is when i go to my cmps_index.php file then i get the error
Fatal error: Call to undefined function: print_portal_output() in /home/content/e/v/a/html/cmps_index.php on line 35
when i look at this file on line 35 it says
print_portal_output($home);
so it's trying to print the portal output...
what happens here???
Brian
08-24-2005, 12:41 AM
Either the changes were not applied to the gloabl.php file correctly, or you did not upload the files for the CMPS to your /forum/includes directory.
evandaeman
08-24-2005, 01:14 AM
where is the cmps_index.php file suppose to be??? same place where the global.php is right??? i mean in the main directory???
the files i got in the zip file's include directory are in the include directory including the xml file
Brian
08-24-2005, 01:18 AM
where is the cmps_index.php file suppose to be??? same place where the global.php is right??? i mean in the main directory???
The cmps_index.php file can be placed anywhere above the document root on your server.
the files i got in the zip file's include directory are in the include directory including the xml file
Then your global.php file was modified incorrectly.
evandaeman
08-24-2005, 10:39 PM
okay i got it to work... and Brian i changes it according to the file... and thanks to your help... you at least gave me an idea on where to look for the problem...
on global.php
find:
define('VB_AREA', 'Forum');
below add:
if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}
If your cmps_index.php file is in the same directory as global.php you need to add this instead of the above code
if (defined('VBA_PORTAL'))
{
require_once('includes/vba_cmps_include_template.php');
}
you need to delete the "./" infront of "includes"... otherwise, it's look for a file that on a directory before the current one...
that was the problem... i just deleted the ./ and it works just fine now...
thanks brian :)
Brian
08-25-2005, 02:58 PM
No, the "./" tells it to look for the file in the same directory you're currently in. If you had to remove it, you entered your forum path incorrectly.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.