Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2012, 05:03 PM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Data Manager error in vb 4.2.0

- I have a universal login: website->vbull
- Just upgraded to vb 4.2.0
- When I try to create a new user (new reg), I get this error when trying to initialize the data manager:
Fatal error: Please check the $bitfields array in the vB_DataManager_User class definition - $vbulletin->bf_misc_useroptions is not a valid bitfield.
in includes/class_dm.php on line 220


- BUT! When the exact same function is called to SAVE an existing user's record, it works.

I have used tools.php to fix the bitfields, I have run the upgrade script completely. Still happening. Any ideas?
Reply With Quote
  #2  
Old 09-03-2012, 06:47 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you edited that php file in any way in the also try replacing it with a fresh unedited one
Reply With Quote
  #3  
Old 09-03-2012, 07:09 PM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, didn't edit it. And I will upload..although I don't know why one function would call it and it would work, and the other would call it and it wouldn't work.

The function it's trying to call is:
datamanager_init('User', $vbulletin, ERRTYPE_CP);
Reply With Quote
  #4  
Old 09-03-2012, 07:37 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hope this helps you work out the problem from line 187 to 220
PHP Code:
Constructor checks that the registry object has been passed correctly.
    *
    * @
param    vB_Registry    Instance of the vBulletin data registry object expected to have the database object as one of its $this->db member.
    * @
param    integer        One of the ERRTYPE_x constants
    
*/
    function 
vB_DataManager(&$registry$errtype ERRTYPE_STANDARD)
    {
        if (!
is_subclass_of($this'vB_DataManager'))
        {
            
trigger_error("Direct Instantiation of vB_DataManager class prohibited."E_USER_ERROR);
        }

        if (
is_object($registry))
        {
            
$this->registry =& $registry;

            if (
is_object($registry->db))
            {
                
$this->dbobject =& $registry->db;
            }
            else
            {
                
trigger_error('Database object is not an object'E_USER_ERROR);
            }
        }
        else
        {
            
trigger_error('Registry object is not an object'E_USER_ERROR);
        }

        
$this->set_error_handler($errtype);

        if (
is_array($this->bitfields))
        {
            foreach (
$this->bitfields AS $key => $val)
            {
                if (isset(
$this->registry->$val))
                {
                    
$this->bitfields["$key"] =& $this->registry->$val;
                }
                else
                {
                    
trigger_error("Please check the <em>\$bitfields</em> array in the <strong>" get_class($this) . "</strong> class definition - <em>\$vbulletin->$val</em> is not a valid bitfield.<br />"E_USER_ERROR); 
Reply With Quote
  #5  
Old 09-03-2012, 08:06 PM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! It looks like it does have to do with bitfields that are either set or not set, triggering this error.

I got away with commenting out line #224 in class_dm.php and it works. That's a kluge, but at least it will let me move forward and complete registrations until I figure out a real fix.
Reply With Quote
  #6  
Old 09-03-2012, 08:59 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

happy to help
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04376 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete