the original error is in the class.php

it was refering to a line that
was somthing like this if i remember right
new User($var);

so you would be looking at the class function for a function called user

find that and post it

    Hi Sidney.

    The file you refer to must be classes.inc.php as this is the only file with class in the name... though I don't see in the original error where it mentions this file.... it does mention the functions.inc.php file in the original error....

    I am a bit unsure as to what your asking me to post... please understand my lack of experience posting to this forum.

    anyway... is it any of this below...or is it in the classes.inc.php file... this below is from the login.php and functions.inc.php files.

    // session id check
    if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
    {
       $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] :
    $HTTP_GET_VARS['sid'];
    }
    else
    {
       $sid = '';
    }
    
    if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ||
    isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )
    {
       if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) )
    && !$userdata['session_logged_in'] )
       {
           //$username = isset($HTTP_POST_VARS['username']) ?
    trim(htmlspecialchars($HTTP_POST_VARS['username'])) : '';
           //$username = substr(str_replace("\\'", "'", $username), 0, 25);
           //$username = str_replace("'", "\\'", $username);
           $email = isset($HTTP_POST_VARS['email']) ?
    trim(htmlspecialchars($HTTP_POST_VARS['email'])) : '';
           $email = substr(str_replace("\\'", "'", $email), 0, 100);
           $email = str_replace("'", "\\'", $email);
           $password = isset($HTTP_POST_VARS['password']) ?
    $HTTP_POST_VARS['password'] : '';
    
       $sql = "SELECT user_id, username, user_password, user_active,
    user_level
               FROM " . USERS_TABLE . "
               WHERE user_email = '" . str_replace("\\'", "''", $email) . "'";
    
       if ( !($result = $db->sql_query($sql)) )
       {
           message_die(GENERAL_ERROR, 'Error in obtaining userdata', '',
    __LINE__, __FILE__, $sql);
    

    ++++++++++++++++++++++++++++++++++++

    <?php
    // Functions include file
    // Set variable so PHPBB functions work
    define('IN_PHPBB', true);
    
    // Includes
    $phpbb_root_path = '/var/www/html/';
    include_once('/var/www/html/extension.inc');
    include_once('/var/www/html/common.php');
    require_once('/var/www/html/includes/classes.inc.php');
    
    //
    // Start session management
    //
    $userdata = session_pagestart($user_ip, PAGE_INDEX);
    init_userprefs($userdata);
    
    $script_name = preg_replace('/^\/?(.*?)\/?$/', '\1',
    trim($board_config['script_path']));
    $script_name = ( $script_name != '' ) ? $script_name . '/profile.'.$phpEx :
    'profile.'.$phpEx;
    $server_name = trim($board_config['server_name']);
    $server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' :
    'http://';
    $server_port = ( $board_config['server_port'] <> 80 ) ? ':' .
    trim($board_config['server_port']) . '/' : '/';
    $server_url = $server_protocol . $server_name . $server_port . $script_name;
    //
    // End session management
    //
    
    // Set $User variable with the User object for the logged in user.
    $User = new User($userdata['user_id']);
    

      menumap_buyer_seller_profitshare.html

      how is the file name stored does it come from the data base
      if so check the entry to see if its correct

        Hi Sidney

        it is a template stored in /templates/account/menumap_buyer_seller_profitshare.html

        it is a small menu that shows up on the top right of the page after user login... but I don't see it in the database and I also cannot find any reference to it in the files... but it was working 2 days ago... so I really am wondering should it be in the database templates table as there is about 51 rows in the templates table which show other templates. and this would be different from the double define issue... would it not ?...

        many many thanks for your kind assistance.

        here is the source of menumap_buyer_seller_profitshare.html
        +++++++++++
        <map name="Map">
        <!--<area shape="rect" coords="24,5,143,19" href="#">-->
        <area shape="rect" coords="24,26,142,38" href="account.php?a=editpersonal">
        <!--<area shape="rect" coords="25,44,141,59" href="#">-->
        <area shape="rect" coords="24,62,140,76" href="account.php?a=quotes">
        <!--<area shape="rect" coords="25,80,139,94" href="#">-->
        <area shape="rect" coords="24,101,140,113" href="account.php?a=manageprofile">
        <area shape="rect" coords="24,120,140,133" href="account.php?a=balance">
        <area shape="rect" coords="24,139,140,149" href="account.php?a=leads">
        <!--<area shape="rect" coords="24,159,140,172" href="#">-->
        <area shape="rect" coords="24,176,140,190" href="account.php?a=viewreferrals">
        <area shape="rect" coords="24,193,140,207" href="account.php?a=referralid">
        </map>
        ++++++++++++++++++++++++++

          i think it will be easier for you to zip all the files and a dump of the database and attach the zip to your next post and i can look at all the files and datatbase entries

          that way i can see every thing and wont be double guessing whats going on

          but basicly the file function is geting a extended file name from somewhere so we need to locate the location of the file function getting the errror and then backtrack from there to find location of area messing up menumap_buyer_seller_profitshare.html
          file name

            Dear Sidney.

            Thank you for your kind help... here are the zip folders in the next posts

            After login on the page with the error the menumap image does not show up and there is no data populated in this area as normal... this menumap is referenced in the classes.inc.php file so I think it might be the classes.inc.php file that has the error.

            I can put webmule on the home page of some popular UK business directories if your interested... let me know and I will email you about it jolac@toast.net I would be glad to do it.

            Thnaks again

            Jolac

              here is the area in classes.inc.php there are 3 menu images depending on the user type and they populate with different data again depending on the user type

                 function refresh_types()
                 {
                     global $output_array, $type_code;
                     $type_code = "";
                     $menu_image = "s3_";
                     foreach ($this->type AS $type_id)
                     {
                         // make template name
                         switch ($type_id)
                         {
                             case ('3'): // Buyers
                             {
                                 $menu_image .= "B";
                                 $type_code .= "_buyer";
                                 break;
                             }
                             case ('4'): // Sellers
                             {
                                 $menu_image .= "S";
                                 $type_code .= "_seller";
                                 break;
                             }
                             case ('5'): // Profit Share
                             {
                                 $menu_image .= "P";
                                 $type_code .= "_profitshare";
                                 break;
                             }
                         }
                     }
                     $template = "account/menumap".$type_code;
                     $menu_image .= ".gif";
                     $output_array['menu'] = $menu_image;
                     $output_array['menumap'] = make_output($template);
                 }
              
                 /*=================================
              

                i think your user group table has to much data

                i printed it out as this table is used to make the array that the fuction you last posted uses

                 0 - 
                1 - 
                2 - 2 3 
                3 - 
                4 - 
                5 - 
                6 - 
                7 - 
                8 - 
                9 - 
                10 - 
                11 - 
                12 - 
                13 - 
                14 - 
                15 - 
                16 - 
                17 - 
                18 - 
                19 - 
                20 - 
                21 - 
                22 - 3 2 
                23 - 
                24 - 
                25 - 3 2 4 5 
                26 - 3 5 4 3 5 3 3 3 3 3 3 3 3 3 3 3 5 
                27 - 3 4 5 5 5 3 3 3 3 3 3 3 3 3 5 3 
                28 - 5 4 4 5 5 3 3 3 4 3 3 3 5 
                29 - 5 4 5 5 4 3 3 3 5 
                30 - 4 4 4 3 
                31 - 3 3 3 
                32 - 5 3 
                33 - 4 
                34 - 3 
                35 - 5 3 
                36 - 4 
                37 - 4 
                38 - 3 3 
                39 - 4 5 3 
                40 - 3 
                41 - 5 
                42 - 4 4 
                43 - 3 3 
                44 - 3 
                45 - 3 
                46 - 3 
                47 - 3 
                48 - 4 4 4 3 3 3 3 4 4 4 4 4 
                49 - 4 4 4 3 3 4 4 4 4 4 4 
                50 - 4 4 3 4 4 4 4 4 4 4 
                51 - 4 4 3 3 4 4 4 4 4 
                52 - 4 4 3 4 4 4 4 3 
                53 - 3 4 4 4 4 
                54 - 3 4 4 4 
                55 - 3 4 
                56 - 3 
                57 - 3 
                58 - 3 
                59 - 3 
                60 - 3 
                61 - 
                62 - 
                63 - 
                64 - 
                65 - 
                66 - 
                67 - 
                68 - 
                69 - 
                 

                now if you see line 27 that reffers to user id 27 the nubers after are the catogories now if you count the number there are 16 and in original error there are 16 _buyer or_cats etc

                i dont think there should be dups of any of these numbers so edit database take away dupentries and see if that cures it

                  be carefull editing database as if you delete one then it will delete all identical ones ( in my phpadmin any way )

                  if you delete one re insert it

                    4 days later

                    Hi

                    This issue is resolved... here's the answer

                    I was testing and deleting users in phpMyAdmin users table but I did not delete the data in the user_groups table

                    so every time I created a new account with an email address that had been used before (and deleted) the user_groups table was receiving data it thought was from the same user (because of the same email address)

                    This user_groups table had an INT of 16 so after 16 new accounts were created with the same email address it created a loop and that was the error....

                    MANY MANY THANKS TO SIDNEY who solved this issue

                    SIDNEY YOUR A CHAMP

                    Thanks again to everybody for your great efforts in trying to help me I really do appreciate it and I will try to help others if I can.

                    best regards

                    Jolac

                      Write a Reply...