|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
I am moving my forums to a Windows 2003 server. I did a new install and then imported the database using SQL tools. When I go to my new forum I get:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\forums\includes\config.inc.php on line 75
That line reads:
$config['SESSION_PATH'] = "e:/\forums\session\";
what should it read, if thatis inaccurate?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Try changing $config['SESSION_PATH'] = "e:/\forums\session\";
To $config['SESSION_PATH'] = "e:/forums/session/";
PHP doesn't like \
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
php will handle it.. just do this. i have a doze install.. 'SESSION_PATH' => 'J:\\wamp\\www\\muhaha\\sessions' bada bing.. workie.. of course 'muhaha' is really 'forums' in your case
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I'm scared that you have your stuff filed in a directory called "muhaha" lol
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
lol.. well, i'm 'unbalanced' you know.. and back to the prob at hand.. i think your version of config file is older.. the config = xxx is diff than the way we do it now.. with array key/value pairs.. so don't take my copy/paste literally.. just use double backslashes -- ok, i'm done for the nite --
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
Oh sorry just to clarify the line had read:
$config['SESSION_PATH'] = "e:\forums\/sessions";
I have tried both variations you recommended and neither work for me. BTW there are files appearing in the sessions directory, so apparently it is finding it somehow ...
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
What version of UBB.T are you running? Gross curiosity... And could you copy your config file here (without your user/pass to mysql); I'm curious about something...
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
While I'm at it, the top version # entry was blank. I filled it in with the proper version number. 7.2.1.
When I ran the install, it kept jamming on the 'create tables' part even though the test of create / drop ran properly. Since I was planning on using the data I'd imported (into a separate area so it didn't overwrite) I didn't really care - but maybe it was going to try to do something after that step.
I tried reinstalling twice and each time it jammed (went to a white page) on that create tables step.
Ironically the reason I can't just copy the files from the old server is that tonight I was doing my big migration from the old server (which was windows 2000 and crashing constantly) to the new server, and the old server crashed halfway through me ftping over the actual forum files, and my hosting company hasn't brought it back online for me yet. So I'm trying to kludge this.
Last edited by BellaOnline; 08/27/2007 4:56 AM.
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
<?php
$VERSION = "7.2.1";
$config['DATABASE_SERVER']= "localhost"; $config['DATABASE_USER'] = "xxxxxx"; $config['DATABASE_PASSWORD'] = "xxxxxx"; $config['DATABASE_NAME'] = "xxxxxx"; $config['TABLE_PREFIX'] = "xxxxxx"; $config['MAIN_ADMIN_ID'] = "2"; $config['MARKUP_FONTS'] = array ( 0 => 'Arial', 1 => 'Arial Black', 2 => 'Book Antiqua', 3 => 'Century Gothic', 4 => 'Comic Sans MS', 5 => 'Courier New', 6 => 'Fixedsys', 7 => 'Georgia', 8 => 'Impact', 9 => 'Lucida Console', 10 => 'Microsoft Sans Serif', 11 => 'System', 12 => 'Times New Roman', 13 => 'Verdana', ); $config['TIME_FORMATS'] = array ( 0 => "d/m/y | h:i A", 1 => "y/m/d | h:i A", 2 => "d/m/Y | H:i", 3 => "D M d Y | h:i A", 4 => "m/d/y | h:i A", 5 => "Y-m-d | H:i:s", ); $config['TIME_FORMAT'] = "m/d/y | h:i A"; $config['MARKUP_FONT_SIZES'] = array ( 0 => "8pt", 1 => "11pt", 2 => "14pt", 3 => "17pt", 4 => "20pt", 5 => "23pt", 6 => "26pt", );
$config['BUILD_ISLANDS'] = array(); $config['NO_COLLAPSE_ISLANDS'] = array(); $config['MAX_SEARCH_RANGE_TYPE'] = "years"; $config['MAX_SEARCH_RANGE_VALUE'] = 1; $config['POSTING_THROTTLE'] = 0; $config['MAX_SEARCH_RESULTS'] = 200; $config['MIN_SEARCH_LENGTH'] = 3; $config['SEARCH_THROTTLE'] = 60; $config['PM_LIMIT'] = 200; $config['PM_PARTICIPANTS'] = 5; $config['ENABLE_ACTIVE_TEXT'] = 0; $config['AVATAR_MAX_WIDTH'] = "80"; $config['AVATAR_MAX_HEIGHT'] = "80"; $config['TOPIC_DISPLAY_STYLE'] = "flat"; $config['SHOW_AVATARS'] = "1"; $config['POSTS_PER_PAGE'] = "10"; $config['COMMUNITY_INTRO'] = ""; $config['COMMUNITY_INTRO_TITLE'] = ""; $config['BODY_ONLOAD'] = ""; $config['TABLE_WIDTH'] = "100%"; $config['TOPICS_PER_PAGE'] = "10"; $config['TEXT_AREA_COLUMNS'] = "65"; $config['TEXT_AREA_ROWS'] = "10"; $config['FULL_URL'] = "http://forums.bellaonline.com"; $config['BASE_URL'] = ""; $config['FULL_PATH'] = "e:\forums\"; $config['SESSION_PATH'] = "e:\forums\sessions"; $config['REFERERS'] = "http://forums.bellaonline.com"; $config['COOKIE_PATH'] = "/"; $config['COOKIE_PREFIX'] = ""; $config['LANGUAGE'] = "english"; $config['ONLINE_TIME'] = "10"; $config['NEWS_ITEMS'] = "5"; $config['TOP_POSTERS'] = "5"; $config['DEFAULT_STYLE'] = "1"; $config['REQUIRE_UNIQUE_EMAIL'] = "1"; $config['DEFAULT_USER_GROUPS'] = array("3"); $config['COMMUNITY_TITLE'] = "Your new forums"; $config['HOMEPAGE_URL'] = "http://www.example.com"; $config['INLINE_IMAGE'] = '2000'; $config['HOMEPAGE_TITLE']= "Title for link"; $config['SITE_EMAIL']= ""; $config['SITE_EMAIL_TITLE']= "Contact Us"; $config['PRIVACY_STATEMENT'] = "none"; $config['MAX_AVATAR_SIZE'] = '100000'; $config['BOARD_IS_CLOSED'] = 0; $config['MEMBER_DIRECTORY'] = 1; $config['MARKUP_HTML_TOGGLE'] = 0; $config['MAIL_POST'] = 1; $config['ANON_CAN_VOTE'] = 0; $config['ANON_VIEW_PROFILES'] = 1; $config['MAX_EDIT_TIME']= "360"; $config['DO_AGE_CHECK']= 0; $config['MINIMUM_AGE'] = 13; $config['SPECIAL_CHARACTERS']= 1; $config['LANGUAGE']= "english"; $config['SUBJECT_LENGTH']= "50"; $config['SIGNATURE_LENGTH']= "100"; $config['COOKIE_LIFETIME']= "30758400"; $config['SERVER_TIME_OFFSET']= "0"; $config['SHOW_POSTER_IP'] = 3; $config['ALLOW_IMAGE_MARKUP']= 1; $config['ATTACHMENTS_PATH'] = ""; $config['ATTACHMENTS_URL'] = ""; $config['ATTACHMENT_TYPES'] = ".gif,.jpg,.txt,.zip,.png"; $config['ATTACHMENT_SIZE'] = "100000"; $config['LIST_MODERATORS'] = 1; $config['DATE_SLIP'] = 1; $config['CUSTOM_TTILE_MAX'] = 100; $config['CUSTOM_FIELD_1'] = ""; $config['CUSTOM_FIELD_2'] = ""; $config['CUSTOM_FIELD_3'] = ""; $config['CUSTOM_FIELD_4'] = ""; $config['CUSTOM_FIELD_5'] = ""; $config['MIN_PDN_LENGTH'] = 3; $config['MAX_PDN_LENGTH'] = 16; $config['DISABLE_LEFT'] = 0; $config['DISABLE_RIGHT'] = 0; $config['LEFT_COLUMN'] = 0; $config['LEFT_COLUMN_BOXES'] = array( ); $config['RIGHT_COLUMN_BOXES'] = array( ); $config['RIGHT_COLUMN'] = 0; $config['SEARCH_FRIENDLY_URLS'] = '0'; $config['FULL_TEXT'] = "POST_DEFAULT_BODY"; $config['HOT_REPLIES'] = '25'; $config['HOT_VIEWS'] = '150'; $config['DISPLAY_NAME_CHANGE'] ='0'; $config['CONTACT_LINK_TYPE'] = 'email'; $config['USER_RATINGS'] = '0'; $config['TOPIC_RATINGS'] = '0'; $config['LOG_SQL_ERRORS'] = '0'; $config['EMAIL_VERIFICATION'] = '0'; $config['PERSISTENT_DB_CONNECTION'] = '0'; $config['ZLIB_COMPRESSION'] = '0'; $config['DO_CENSOR'] = '0'; $config['DISABLE_REFERER_CHECK'] = '0'; $config['REPLACE_WORD'] = '[censored]'; $config['ALLOW_DEBUGGING'] = '1'; $config['PUBLIC_CALENDAR_EVENTS'] = '1'; $config['IMAGE_MARKUP_IN_SIGS'] = '1'; $config['AGE_WITH_BIRTHDAYS'] = '0'; $config['ENABLE_QUICK_REPLY'] = '1'; $config['SUSPEND_REGISTRATIONS'] = '0'; $config['ALLOW_UNDER_13'] = '0'; $config['NEW_USER_MODERATION'] = '0'; $config['ALLOW_REMOTE_AVATARS'] = '0'; $config['ALLOW_STOCK_AVATARS'] = '1'; $config['ALLOW_UPLOADED_AVATARS'] = '0'; $config['TOPIC_DISPLAY_OPTIONS'] = 'both'; $config['SQL_LOG_PATH'] = ''; $config['CUSTOM_TITLE_MAX'] = '100'; $config['NEW_COUNT'] = '1'; $config['NEW_REPLIES'] = '1'; $config['MAX_DELETE_TIME'] = '60'; $config['MAX_THUMB_W_H'] = 125; $config['MAX_MEDIUM_W_H'] = 450; $config['MAX_FULL_W_H'] = 1200; $config['MAX_GALLERY_UPLOAD'] = 1048576; $config['THUMB_QUALITY'] = 60; $config['MEDIUM_QUALITY'] = 70; $config['FULL_QUALITY'] = 80; $config['POST_LAYOUT'] = 'side'; $config['ENABLE_MOODS'] = 1; $config['BIRTHDAY_NOTICE'] = 1;
?>
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
OK they finally got my old server up, I was able to FTP over the files and just dump them all into my forum directory. The forum came up and is running smoothly now. So I'm not sure why the "default straight install" was failing ...
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Odd, your config file looks really wonky; was going to patch one up for you but saw your second post lol...
|
|
|
|
Joined: Jun 2006
Posts: 693
Addict
|
Addict
Joined: Jun 2006
Posts: 693 |
I don't know - I haven't done a straight install in years probably. I'm always running the updates.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Ruben),
1,248
guests, and
268
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|