Unexpected T_String?
Results 1 to 5 of 5

Thread: Unexpected T_String?

  1. #1

    Angry Unexpected T_String?

    I finally got the phpBB database over to IPB (Invision Power Board) and got IPB set up. Now, whenever I go to my Invision Power Board, I am getting the follow error message:

    Unexpected T_String in conf_global.php on line 30


    Here's my conf_global.php file:

    <?php
    $INFO['admin_group'] = '4';
    $INFO['allow_creator_vote'] = '1';
    $INFO['allow_dup_email'] = '1';
    $INFO['allow_dynamic_img'] = '0';
    $INFO['allow_flash'] = '1';
    $INFO['allow_images'] = '1';
    $INFO['allow_online_list'] = '1';
    $INFO['allow_search'] = '1';
    $INFO['allow_skins'] = '1';
    $INFO['auth_group'] = '1';
    $INFO['autohide_bday'] = '1';
    $INFO['autohide_calendar'] = '1';
    $INFO['avatar_def'] = '64x64';
    $INFO['avatar_dims'] = '64x64';
    $INFO['avatar_ext'] = 'gif|jpeg|jpg|swf|png';
    $INFO['avatar_url'] = '1';
    $INFO['avatars_on'] = '1';
    $INFO['avup_size_max'] = '20';
    $INFO['ban_email'] = '';
    $INFO['ban_ip'] = '';
    $INFO['ban_names'] = '';
    $INFO['base_dir'] = '/home/mlbweb/public_html/forums/';
    $INFO['board_desc'] = 'MLBWebTalk Forums';
    $INFO['board_name'] = 'MLBWebTalk';
    $INFO['board_offline'] = '1';
    $INFO['board_start'] = '1087248641';
    $INFO['board_url'] = 'http://mlbwebtalk.com/forums';
    $INFO['boardname'] = 'MLBWebTalk;
    $INFO['calendar_limit'] = '';
    $INFO['clock_joined'] = 'j-F y';
    $INFO['clock_long'] = 'M j Y, h:i A';
    $INFO['clock_short'] = 'jS F Y - h:i A';
    $INFO['conv_categories'] = '1';
    $INFO['conv_forums'] = '1';
    $INFO['conv_members'] = '1';
    $INFO['conv_pms'] = '1';
    $INFO['conv_polls'] = '1';
    $INFO['conv_posts'] = '1';
    $INFO['conv_ranks'] = '1';
    $INFO['conv_topics'] = '1';
    $INFO['cookie_domain'] = '';
    $INFO['cookie_id'] = '';
    $INFO['cookie_path'] = '';
    $INFO['debug_level'] = '1';
    $INFO['disable_gzip'] = '1';
    $INFO['display_max_posts'] = '15';
    $INFO['display_max_topics'] = '50';
    $INFO['email_footer'] = '';
    $INFO['email_header'] = '--MLBWebTalk';
    $INFO['email_in'] = 'nielsosky13@hotmail.com';
    $INFO['email_out'] = 'nielsosky13@hotmail.com';
    $INFO['emo_per_row'] = '3';
    $INFO['etfilter_punct'] = '0';
    $INFO['etfilter_shout'] = '0';
    $INFO['flood_control'] = '30';
    $INFO['force_login'] = '0';
    $INFO['forum_skin_1'] = '';
    $INFO['forum_skin_8'] = '';
    $INFO['guest_group'] = '2';
    $INFO['guest_name_pre'] = 'Guest_';
    $INFO['guests_ava'] = '1';
    $INFO['guests_img'] = '1';
    $INFO['guests_sig'] = '1';
    $INFO['hb_sql_database'] = 'mlbweb_phpbb1';
    $INFO['hb_sql_host'] = 'localhost';
    $INFO['hb_sql_pass'] = 'perl72';
    $INFO['hb_sql_tbl_prefix'] = 'phpbb_';
    $INFO['hb_sql_user'] = 'mlbweb_nielsosky';
    $INFO['header_redirect'] = 'location';
    $INFO['home_name'] = 'MLBWebTalk Home';
    $INFO['home_url'] = 'http://mlbwebtalk.com';
    $INFO['hot_topic'] = '15';
    $INFO['html_dir'] = '/home/mlbweb/public_html/forums/html/';
    $INFO['html_url'] = 'http://mlbwebtalk.com/forums/html';
    $INFO['img_ext'] = 'gif|jpeg|jpg|png';
    $INFO['index_news_link'] = '1';
    $INFO['installed'] = '1';
    $INFO['load_limit'] = '';
    $INFO['match_browser'] = '0';
    $INFO['max_emos'] = '20';
    $INFO['max_h_flash'] = '200';
    $INFO['max_images'] = '10';
    $INFO['max_interest_length'] = '50000';
    $INFO['max_location_length'] = '50000';
    $INFO['max_messages'] = '50';
    $INFO['max_post_length'] = '1000';
    $INFO['max_sig_length'] = '50000';
    $INFO['max_w_flash'] = '200';
    $INFO['member_group'] = '3';
    $INFO['msg_allow_code'] = '1';
    $INFO['msg_allow_html'] = '0';
    $INFO['new_reg_notify'] = '0';
    $INFO['news_forum_id'] = '1';
    $INFO['no_reg'] = '0';
    $INFO['nocache'] = '1';
    $INFO['number_format'] = 'none';
    $INFO['offline_msg'] = '<b>Welcome!</b><br><br>We are in the process of upgrading our forums, please try again later!
    <br><br>If you are the board administrator, you can log in below and begin setting up your new board';
    $INFO['per_members'] = '17';
    $INFO['per_posts'] = '475';
    $INFO['per_topics'] = '63';
    $INFO['php_ext'] = 'php';
    $INFO['post_titlechange'] = '50000';
    $INFO['pre_moved'] = 'Moved: ';
    $INFO['pre_pinned'] = 'Pinned: ';
    $INFO['pre_polls'] = 'Poll: ';
    $INFO['print_headers'] = '0';
    $INFO['reg_auth_type'] = '0';
    $INFO['safe_mode_skins'] = '0';
    $INFO['session_expiration'] = '3600';
    $INFO['show_active'] = '1';
    $INFO['show_bday_calendar'] = '1';
    $INFO['show_birthdays'] = '1';
    $INFO['show_calendar'] = '1';
    $INFO['show_img_upload'] = '1';
    $INFO['show_totals'] = '1';
    $INFO['show_user_posted'] = '1';
    $INFO['sig_allow_html'] = '0';
    $INFO['sig_allow_ibc'] = '1';
    $INFO['sp_Archive_org'] = 'Archive.org';
    $INFO['sp_google'] = 'GoogleBot';
    $INFO['sp_inktomi'] = 'Hot Bot';
    $INFO['sp_jeeves'] = 'Ask Jeeves';
    $INFO['sp_lycos'] = 'Lycos';
    $INFO['sp_wuseek'] = 'What U Seek';
    $INFO['spider_active'] = '1';
    $INFO['spider_anon'] = '';
    $INFO['spider_group'] = '2';
    $INFO['spider_sense'] = '0';
    $INFO['spider_suit'] = '';
    $INFO['spider_visit'] = '0';
    $INFO['sql_database'] = 'mlbweb_ipb';
    $INFO['sql_debug'] = '0';
    $INFO['sql_driver'] = 'mySQL';
    $INFO['sql_host'] = 'localhost';
    $INFO['sql_pass'] = 'MY PASSWORD HERE';
    $INFO['sql_port'] = '';
    $INFO['sql_tbl_prefix'] = 'ibf_';
    $INFO['sql_user'] = 'mlbweb_nielsosky';
    $INFO['start_year'] = '2004';
    $INFO['time_offset'] = '0';
    $INFO['upload_dir'] = '/home/mlbweb/public_html/forums/uploads';
    $INFO['upload_url'] = 'http://mlbwebtalk.com/forums/uploads';
    $INFO['use_mail_form'] = '1';
    $INFO['vb_configured'] = '1';
    $INFO['year_limit'] = '5';

    ?>
    So, basically, what's wrong here?

  2. #2
    AO Antique pwaring's Avatar
    Join Date
    Aug 2001
    Posts
    1,409
    Unexpected T_STRING usually means you have forgotten to close some quotes somewhere. In your case it is this which causes the problem:

    Code:
    $INFO['boardname'] = 'MLBWebTalk;
    close the string by replacing it with this:

    Code:
    $INFO['boardname'] = 'MLBWebTalk';
    There may be other errors also, PHP will usually stop on the first one and refuse to execute the script any further. It's extremely difficult to find them when you post the whole code, it's usually best if you post the line PHP complains about (in this case line 30) and the two lines above and below it. Posting the whole file makes it incredibly difficult to spot the problem.
    Paul Waring - Web site design and development.

  3. #3
    oops, I didn't even see that. Ok, next time I'll jsut post the line with the error. Thanks!! (stll can't believe I didn't see that )

  4. #4
    AO Antique pwaring's Avatar
    Join Date
    Aug 2001
    Posts
    1,409
    It's best to post one or two lines above and below the reported error as well, because if PHP sees an error on line 30 it might actually stop at line 29 and report the error as being there.
    Paul Waring - Web site design and development.

  5. #5
    ok...now I have another problem. I transfered all the users and posts (17 users and 475 posts), but it says I have 1 registered user, and 11 posts. Is there some way I can fix this?

    EDIT: FIXED

Posting Permissions

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