Results 1 to 9 of 9

Thread: Fatal Error - Call to function on a non-object...

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    5

    Default Fatal Error - Call to function on a non-object...

    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:

    Code:
    								$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

  2. #2
    Junior Member
    Join Date
    Jun 2007
    Posts
    5

    Default Re: Fatal Error - Call to function on a non-object...

    Anyone? I really need help with this and need to solve this.


    MP

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    8

    Default Re: Fatal Error - Call to function on a non-object...


  4. #4
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    Default Re: Fatal Error - Call to function on a non-object...

    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.

  5. #5

    Default Re: Fatal Error - Call to function on a non-object...

    Thanks for the fix.

  6. #6
    Junior Member
    Join Date
    Jun 2007
    Posts
    5

    Default Re: Fatal Error - Call to function on a non-object...

    Quote Originally Posted by Brian View Post
    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

  7. #7
    Junior Member
    Join Date
    Nov 2007
    Posts
    2

    Default Re: Fatal Error - Call to function on a non-object...

    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

  8. #8
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    Default Re: Fatal Error - Call to function on a non-object...

    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.

  9. #9
    Junior Member
    Join Date
    Nov 2007
    Posts
    2

    Default Re: Fatal Error - Call to function on a non-object...

    I'm Vbulletin Forums Version 3.6.8 Pack 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help with: Fatal error: Call to undefined function:
    By snivvle in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 07-22-2007, 11:25 PM
  2. Fatal error: Call to a member function on a non-object in
    By jcr in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 10-22-2005, 12:01 PM
  3. Fatal error: Call to a member function on a non-object
    By Dreamgun in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 10-02-2005, 11:20 PM
  4. Fatal Error call to a member function
    By falcon56 in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 09-15-2005, 11:08 AM
  5. Fatal error: Call to a member function on a non-object
    By evandaeman in forum Troubleshooting & Problems
    Replies: 13
    Last Post: 08-25-2005, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •