PDA


View Full Version : Fatal Error - Call to function on a non-object...


MPDesignZ
09-09-2007, 03:31 PM
After trying to set up a new page I get this error:

Fatal error: Call to a member function on a non-object in /home/content/M/e/t/MetalPrincess6/html/includes/vba_cmps_include_top.php on line 336

I upgraded my vBulletin to 3.6.8 today because I read that could be a problem on here. I installed vBadvanced CMPS v3.0 RC2 to the site and the portal works fine. I just cannot get the page I made to show up without getting this error. I have uninstalled & reinstalled this CMPS 4 times already.

The code for that line in teh script is:

$home[$modid]['content'] = $bbcode_parser->do_parse(
$pages['template'],
$cmps_options['custompage']['allow_html'],
$cmps_options['custompage']['allow_smilies'],
1,
$cmps_options['custompage']['allow_image_code'],
1
);


Please help as this is the reason I installed this in the first place for my site so I could have extra pages.

TIA!
MP

MPDesignZ
09-10-2007, 09:27 AM
Anyone? I really need help with this and need to solve this.


MP

saedler
09-10-2007, 10:12 AM
I've got the same problem.

http://www.vbadvanced.com/forum/showthread.php?t=24194

Brian
09-10-2007, 12:25 PM
Please download the package from here again, replace your forum/includes/vba_cmps_include_top.php file with the one from there, and that should take care of the problem.

burntire
09-10-2007, 08:33 PM
Thanks for the fix.

MPDesignZ
09-11-2007, 03:02 PM
Please download the package from here again, replace your forum/includes/vba_cmps_include_top.php file with the one from there, and that should take care of the problem.

Awesome! Thanks will do

MP

merlin19
11-18-2007, 07:26 AM
I'm Vbulletin 3.6.8 Pack 2 vbadvanced_cmps_3_0_rc2 Forum install My Problem..
Warning: main(./includes/vba_cmps_include_template.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\vvv.com\httpdocs\index.php on line 43

Fatal error: main() [function.require]: Failed opening required './includes/vba_cmps_include_template.php' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\vvvv.com\httpdocs\index.php on line 43

hep My Forum errorr :(:(

Your detay in install? I'm themes..

Your install Readme

root directory
(usually public_html or htdocs) cmps_index.php (you will probably rename this file to index.php once everything is set up)
forum/admincp vbacmps_install.php
vba_cmps_admin.php
forum/clientscript vba_cmps_admin.js
forum/cpstyles vba_cp_logo.gif
forum/includes vba_adminfunctions_cmps.php
vba_cmps_error.php
vba_cmps_global.php
vba_cmps_include_bottom.php
vba_cmps_output.php
vba_cmps_include_template.php
vba_cmps_include_top.php
vba_cmps_plugin_newpost.php
forum/includes/xml cpnav_vbacmps.xml
hooks_vbacmps.xml
forum/images/misc noavatar.gif
vba_cp.gif
vba_cp_collapsed.gif
forum/modules Upload this folder and all of it's contents into your vBulletin {forum} folder.


ok no problem..

I'm modules klasor 777 ok..

http://yoursite.com/forum/admincp/vbacmps_install.php

ok.. no problem install

cmps_index.php edit index.php

My server httpdosc to index.php ok no problem..

/forum/global.php file. Find the code below, and remove it.

is your Readme..

// identify where we are
define('VB_AREA', 'Forum');

define('CWD', (($getcwd = getcwd()) ? $getcwd : '.'));

My global.php edit..

// identify where we are
define('VB_AREA', 'Forum');
if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}

ok no problem..

is Your Readme..

Next, open your forum/includes/functions.php file. Search the file for 'VBA_PORTAL'. You should find some code that is similar to the code below, but may be slightly different depending on when the code was added. This code should be removed as well.

/includes/functions.php ok edit..

// this defines what adds the indent to forums in the forumjump menu
define('FORUM_PREPEND', '    ');
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('NOPMPOPUP') AND THIS_SCRIPT != 'adv_index')
{
define('SKIP_OUTPUT', true);

global $home;

print_portal_output($home, $vartext);
}

ok edit in save to klasor..

My site error:(

Warning: main(./includes/vba_cmps_include_template.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\vvvvvvvv.com\httpdocs\index.php on line 43

Fatal error: main() [function.require]: Failed opening required './includes/vba_cmps_include_template.php' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\vvvvvvvvvvvvv.com\httpdocs\index.php on line 43
define('CWD', (($getcwd = getcwd()) ? $getcwd : '.'));

??? your images install detay ??

sory I'm in Turkish is English no:(

Brian
11-18-2007, 07:59 AM
The warning message you are receiving means that the forum/includes/vba_cmps_include_template.php file was not uploaded.
That's not version 3.0 RC2 you're running if the readme file has instructions for modifying vBulletin code. Code modifications have not been necessary for quite some time, so you may want to verify that you have uploaded the correct version to your web site.

merlin19
11-18-2007, 05:29 PM
I'm Vbulletin Forums Version 3.6.8 Pack 2