(ask) error in member profile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ndut
    Senior Member
    • Sep 2007
    • 117
    • 5.0.X

    [Forum] (ask) error in member profile

    after upgrade to 4.1.0 PL2 i have error when click member profile :

    Fatal error: Call to a member function assertQuery() on a non-object in /xxxx/vb/profilecustomize.php on line 113


    in profilecustomize.php @ line 113 :
    $theme_data = vB_dB_Assertor::getInstance()->assertQuery('customprofile',

    full statement in php is :
    public static function getThemes()
    {
    if (!self::$themes)
    {
    $theme_data = vB_dB_Assertor::getInstance()->assertQuery('customprofile',
    array('type' => 's', 'userid' => '0'), 'title');
    self::$themes = array();
    while($theme_data->valid())
    {
    $theme = $theme_data->current();
    self::$themes[$theme['customprofileid']] = $theme;
    $theme_data->next();
    }
    }
    return self::$themes;
    }
    anybody know how to fix this error?

    thank you
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24351
    • 5.7.X

    #2
    To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

    Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

    [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

    Next, disable all plugins.

    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);

    Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it.

    Do you have the same problem?
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • ndut
      Senior Member
      • Sep 2007
      • 117
      • 5.0.X

      #3
      i will back up first, and try it later after backup..
      thank you

      Comment

      • ndut
        Senior Member
        • Sep 2007
        • 117
        • 5.0.X

        #4
        Trevor, i still have that error.
        Already did what you tell me.

        In diagnostic, suspect file errors,
        profilecustomize.php File does not contain expected contents

        what should i do, now?

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          Reupload all the original files until you no longer get that result.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

          • ndut
            Senior Member
            • Sep 2007
            • 117
            • 5.0.X

            #6
            problem fixed... thank you

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...