Previous Thread
Next Thread
Print Thread
Hop To
#27602 10/19/2001 7:54 PM
Anonymous
Unregistered
Anonymous
Unregistered
Thought I would give the php3 version a try but getting nowhere fast whats this error all about ?

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\Turbosport\BBS\config.inc.php on line 54

Help please

Regards
Clint

#27603 10/19/2001 8:00 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
UBBThreads requires a non-beta of PHP4 to work properly. PHP3 does not support enough of the necessary functions to operate the software.

-------------------
Rick Baker
UBBThreads developer

#27604 10/19/2001 8:01 PM
Anonymous
Unregistered
Anonymous
Unregistered
Cheers Rick changing that now <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Regards
Clint

#27605 10/19/2001 8:03 PM
Anonymous
Unregistered
Anonymous
Unregistered
Ah sorry rick y mistake I have downloaded the latest its 4 thats installed (just found it with a 3 link)

Regards
Clint

#27606 10/19/2001 8:05 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, then it is probably a problem with changes to the config.inc.php file. Take a look at around line 54 of this file. Could be something as simple as a missing ; or quote.

-------------------
Rick Baker
UBBThreads developer

#27607 10/19/2001 8:07 PM
Anonymous
Unregistered
Anonymous
Unregistered
Im getting this now <img border="0" title="" alt="[Frown]" src="images/icons/frown.gif" />

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\Turbosport\BBS\config.inc.php on line 54

Warning: Undefined variable: config in c:\Turbosport\BBS\ubbt.inc.php on line 24

Warning: Failed opening 'c:/Turbosport/BBS/.inc.php' for inclusion (include_path='') in c:\Turbosport\BBS\ubbt.inc.php on line 24

Warning: Use of undefined constant availablestyles - assumed 'availablestyles' in c:\Turbosport\BBS\theme.inc.php on line 30

Warning: Use of undefined constant tracking - assumed 'tracking' in c:\Turbosport\BBS\ubbt.inc.php on line 43

Warning: Undefined variable: config in c:\Turbosport\BBS\ubbt.inc.php on line 43

Warning: Undefined variable: w3t_language in c:\Turbosport\BBS\ubbt.inc.php on line 48

Warning: Use of undefined constant language - assumed 'language' in c:\Turbosport\BBS\ubbt.inc.php on line 49

Warning: Undefined variable: config in c:\Turbosport\BBS\ubbt.inc.php on line 49

Warning: Failed opening 'c:/Turbosport/BBS/languages//generic.php' for inclusion (include_path='') in c:\Turbosport\BBS\ubbt.inc.php on line 51

Fatal error: Cannot instantiate non-existent class: sql in c:\Turbosport\BBS\ubbt.inc.php on line 53

Regards
Clint

#27608 10/19/2001 8:09 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Looks like you still have a config error somewhere in there. Can you paste everything from between about lines 40-60 of your config.inc.php file here? If there are any syntax errors in it, you will get the errors you are receiving.

-------------------
Rick Baker
UBBThreads developer

#27609 10/19/2001 8:11 PM
Anonymous
Unregistered
Anonymous
Unregistered
Rick I have just re downloaded the package and put a different copy of the file in there, I think its getting worse hehe

trying to run create table give this:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Regards
Clint

#27610 10/19/2001 8:12 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Looks like you have it in your cgi-bin now <img border="0" title="" alt="[Big Grin]" src="images/icons/grin.gif" /> You don't want it there. You want to put it in a standard directory. One thing about PHP is it's not executed like PERL, it's just parsed like HTML pages.

-------------------
Rick Baker
UBBThreads developer

#27611 10/19/2001 8:16 PM
Anonymous
Unregistered
Anonymous
Unregistered
well I have speant ages on this and folowed the new instructions limited as they are, all i can say is i am glad i decided not to try and upgrade my perl version.

I am getting this now !
Warning: Use of undefined constant stripcodes - assumed 'stripcodes' in c:\Turbosport\BBS\config.inc.php on line 150

Warning: Use of undefined constant anonnames - assumed 'anonnames' in c:\Turbosport\BBS\config.inc.php on line 167

Warning: Use of undefined constant allowfiles - assumed 'allowfiles' in c:\Turbosport\BBS\config.inc.php on line 225

Warning: Use of undefined constant availablestyles - assumed 'availablestyles' in c:\Turbosport\BBS\theme.inc.php on line 30

Warning: Use of undefined constant tracking - assumed 'tracking' in c:\Turbosport\BBS\ubbt.inc.php on line 43

Warning: Undefined variable: w3t_language in c:\Turbosport\BBS\ubbt.inc.php on line 48

Warning: Use of undefined constant language - assumed 'language' in c:\Turbosport\BBS\ubbt.inc.php on line 49

Warning: Use of undefined constant THIS_FILE - assumed 'THIS_FILE' in c:\Turbosport\BBS\languages\english\generic.php on line 2

Warning: Use of undefined constant NEW_POST_ICON - assumed 'NEW_POST_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 8

Warning: Use of undefined constant PREV_ICON - assumed 'PREV_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 9

Warning: Use of undefined constant INDEX_ICON - assumed 'INDEX_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 10

Warning: Use of undefined constant NEXT_ICON - assumed 'NEXT_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 11

Warning: Use of undefined constant EXP_ICON - assumed 'EXP_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 12

Warning: Use of undefined constant COL_ICON - assumed 'COL_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 13

Warning: Use of undefined constant FLAT_ICON - assumed 'FLAT_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 14

Warning: Use of undefined constant THREAD_ICON - assumed 'THREAD_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 15

Warning: Use of undefined constant EDIT_ICON - assumed 'EDIT_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 16

Warning: Use of undefined constant REPLY_ICON - assumed 'REPLY_ICON' in c:\Turbosport\BBS\languages\english\generic.php on line 17

Warning: Use of undefined constant FORUM_RETURN - assumed 'FORUM_RETURN' in c:\Turbosport\BBS\languages\english\generic.php on line 18

Warning: Use of undefined constant TEXT_BY - assumed 'TEXT_BY' in c:\Turbosport\BBS\languages\english\generic.php on line 23

and it goes on and on

I just cant create my tables !

Regards
Clint

#27612 10/19/2001 8:19 PM
Anonymous
Unregistered
Anonymous
Unregistered
heres my config file see anything wrong ?

<?
/*
# UBBThreads, Version 5
# Official Release Date for UBBThreads Version5: December 12, 2000.

# First version of UBBThreads created July 30, 1996 (by Rick Baker).
# This entire program is copyright Infopop Corporation, 2001.
# For more info on the UBBThreads and other Infopop
# Products/Services, visit: http://www.infopop.com

# Program Author: Rick Baker.

# You may not distribute this program in any manner, modified or otherwise,
# without the express, written written consent from Infopop Corporation.

# Note: if you modify ANY code within UBBThreads, we at Infopop Corporation
# cannot offer you support-- thus modify at your own peril <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
# ---------------------------------------------------------------------------
*/

// ------------------
// Database Variables

// What type of database are you running
// current options
// mysql, (postgres, sybase are available but untested)
$config['dbtype'] = "mysql";

// Server hosting the database
$config['dbserver']= "localhost";

// Username that has permissions to the database
$config['dbuser'] = "nobody";

// Password for the database
$config['dbpass'] = "password";

// Name of the database
$config['dbname'] = "UBBThreads";

// If you are using mysql do you want to use persistent connections?
// Note that on some hosted servers you may not be allowed to do this
// so contact your host before setting this to "on"
// Options: 1 - Use persistent: 0 - Don't use persistent
$config['persistent'] = 1;

// ----------------------
// Path and Url variables

// Url to the main UBBThreads php install
$config['phpurl'] = "http://213.210.30.158";

// Relative Url containing the images
$config['images'] = "/images";

// Path to your images directory, needed for calculating image sizes
$config['imagepath'] = "c:/turbosport/bbs/images";

// Url to your stylesheets directory
$config['styledir'] = "/stylesheets";

// Path to your UBBThreads php install
$config['path'] = "c:/turbosport/bbs/";

// Path to your stylesheets directory
$config['stylepath'] = "c:/turbosport/bbs/stylesheets/";

// Path to save session information
// This is only used if $config['tracking'] = "sessions"
// Needs to be a world writeable directory outside of your html tree
$config['sessionpath'] = "c:/turbosport/bbs/sessions";

// Domain that ubbthreads is running under.
$config['referer'] = "http://213.210.30.158";

// --------------------------
// Site specific / Navigation

// Do you want to do full new post tracking? Show the number of new posts on
// a board/thread and show which posts are new in a thread? This option can
// contribute to high load on forums with hundreds of users online at once due
// to the number of queries that are necessary.
$config['newcounter'] = 1;

// What groups do you want new users to belong to? THIS SHOULD ONLY
// BE CHANGED IN THE ONLINE EDITOR, UNLESS YOU REALLY KNOW WHAT YOU ARE
// DOING
$config['newusergroup'] = "-3-";

// Title of site
$config['title'] = "UBBThreads PHP Demo / Support";

// Your Home page URL
$config['homeurl'] = "http://www.infopop.com";

// Title of Homepage link
$config['urltitle']= "Infopop.com";

// Email address
$config['emailaddy']= "you@domain.com ";

// EMail Title
$config['emailtitle']= "Contact Us";


// -----------------
// Special Functions

// Do you want to use sessions or cookies to track your users
// values = "cookies" or "sessions";
$config['tracking'] = "cookies";

// This one variable is used to open or close your forums. Set this to
// 1 if you want to work on your forums. If this is set to 1 then your
// forums will only be accessible by the admin users. Make sure you are
// logged in as an admin before you close the forums.
$config['isclosed'] = 0;

// Show the user list in the navigation menu?
// 0 = No : 1 = Yes
$config['userlist'] = 1;

// Allow users to turn markup / html (if enabled) on or off when they post
// 0 = No : 1 = Yes
$config['markupoption'] = 0;

// Do you want users to be able to mail posts to others
// 0 = No ; 1 = Yes
$config['mailpost'] = 1;

// What type of main page do you want to use.
// 0 = all categories and forums - mainpage = ubbthreads.php
// 1 = categories only - mainpage = categories.php
$config['catsonly'] = 0;

// Allow all users to place polls in posts? If this is off, then only
// admin and moderators may use the polls feature
$config['allowpolls'] = 1;

// Do you want everyone to vote, or just registered users?
// 1 = everyone : 0 = registered
$config['whovote'] = 1;

// How long after a post has been made, can it be edited by the poster?
// This variable is in hours, so you can also use .5 for values of less
// than an hour for example
$config['edittime']= "6";

// Strip everything between < and > signs in email replies and subscriptions
$config[stripcodes] = 0;

// Check the user's age before creating an account to be compliant with the
// COPPA law found at http://www.ftc.gov/opa/1999/9910/childfinal.htm
// Values = 1 or 0
$config['checkage']= 0;

// Allow special characters in usernames
// Values = 1 or 0
$config['specialc']= 0;

// Allow moderators to edit/delete regular users
// Values = 1 or 0
$config['modedit'] = 1;

// Allow users that are not logged in to choose an unregistered name
// for their post instead of the default Anonymous
$config[anonnames] = 1;

// Default language. Options can be found in the languages directory
$config['language']= "english";

// Censored replacement word. If you have anything in your filters/badwords
// file then any words matched when adding a new post will be replaced with
// this word. Set this to "" if you do not want to censor words.
$config['censored']= "[censored]";

// Max length of subjects
$config['subjectlength']= "50";

// Max length of signatures
$config['Sig_length']= "100";

// When persistent cookies will expire (Number of seconds from current time)
$config['cookieexp']= "1036800";

// If displayed times need to be adjusted, in hours (2,1,0,-1,-2)
$config['adjusttime']= "0";

// Show the ip address of the posters
// 0 - Show to nobody
// 1 - Show to everyone
// 2 - Show to moderators and admins
// 3 - Show to admins only
$config['showip'] = 1;

// SHow the number of times a thread has been viewed
$config['showviews']= 1;

// Show the total number of registered users on the main page
$config['showreg'] = 1;

// Allow subscriptions to boards. If you allow this then you have to
// have subscriptions.php in the cron directory setup to run nightly
$config['subscriptions']= 1;

// Allow private messages. User's will still receive the welcome message
// and private messages will still be used for admin purposes, but general
// users will not be able to send private messages.
$config['private'] = 1;

// Allow the [image] markup tag.
$config['allowimages']= 1;

// Allow File Attachemnts. If you provide a path to a directory below
// then File Attachments will be allowed. If you leave it blank, then they
// will not. Make sure this directory is writeable by everyone
$config['files'] = "/home/httpd/html/infopop.com/files";

// We also need the url to the files directory
$config['fileurl'] = "http://www.domain.com/files";

// Do you want to only allow certain file types, or exclude certain file
// types? Only uncomment one of the following. Seperate your filetypes with
// a , // $config[excludefiles] = ".php,.asp,.js,.vbs,.sht,.htm";
$config[allowfiles] = "";
// Maximum filesize allowed
$config['filesize'] = "100000";

// Allow users to specify their password at the time of creating the userid
$config['userpass'] = 0;

// Allow multiple usernames form the same email address
// On- allow multiple usernames from same email. off - disallow
$config['multiuser'] = 0;

// Default to having a preview post screen?
$config['preview'] = 1;

// Dateslip. If this is on, when replies are made to a thread, this thread
// will be moved up to the top of the post list when sorting by descending
// date. If this is off, then threads will stay in their original spot.
$config['dateslip'] = 1;

// These are the extra fields for users to fill out in their profiles.
// If you leave these blank they will not be users. If you give them a
// title then they will show up on the user's profile page.
$config['extra1'] = "ICQ";
$config['extra2'] = "";
$config['extra3'] = "";
$config['extra4'] = "";
$config['extra5'] = "";

// Use the ICQ status indicator. Depending on the size of your user database
// you might be required to turn this off. Please read the ICQ license
// agreemtn at http://www.icq.com/legal/indicator.html
$config['ICQ_Status'] = 1;

?>

Regards
Clint

#27613 10/19/2001 8:21 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Luckily these are just warnings, not errors. If you tweak your php.ini warning/error reporting you can eliminate these.

-------------------
Rick Baker
UBBThreads developer

#27614 10/19/2001 8:25 PM
Anonymous
Unregistered
Anonymous
Unregistered
ohhhhh I could kiss you some times <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Turned warnings off and presto !

Regards
Clint

#27615 10/19/2001 8:27 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
That's great! Your being happy is thanks enough, no kiss necessary <img border="0" title="" alt="[Eek!]" src="images/icons/shocked.gif" />

-------------------
Rick Baker
UBBThreads developer

#27616 10/20/2001 10:40 AM
Anonymous
Unregistered
Anonymous
Unregistered
Hi Clint,

You noted earlier that you had followed the "new instructions"....are you referring to the installation doc that's on the website? If so, do you have any suggestions about what would've helped you avoid your issue in the first place?

I'd love to improve those instructions if I can!

Rosemary

_____________
Rosemary O'Neill
Co-Founder, Exec VP
Infopop Corporation

#27617 10/20/2001 10:59 AM
Anonymous
Unregistered
Anonymous
Unregistered
Rose Ill compile what I did in a document for you <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Regards
Clint

#27618 10/20/2001 11:35 AM
Anonymous
Unregistered
Anonymous
Unregistered
Thanks very much! I'll work with Rick to make the info available to everyone.

#27619 10/20/2001 12:02 PM
Anonymous
Unregistered
Anonymous
Unregistered
http://users.turbosport.co.uk/cossieclint/phpinstall/phpinstall.htm

there you go full instructions to install php on win2k all my problems were caused by not entering the correct mail host that my domain was allowed to relay through and selecting the default option of showing all warning and errors !

<img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Regards
Clint

#27620 10/21/2001 11:40 AM
Anonymous
Unregistered
Anonymous
Unregistered
Very cool...thanks Clint!

When I get into the office tomorrow, I'll pull that over.

#27621 11/05/2001 1:49 PM
Anonymous
Unregistered
Anonymous
Unregistered
Just to follow up....we've added your instructions as another resource on the UBBThreads documentation page:

http://www.infopop.com/support/ubbthreads/docs.html

Thank you very much for putting these together; I'm sure they'll help a lot of other people.

<img border="0" title="" alt="[Cool]" src="images/icons/cool.gif" />

#27622 11/11/2001 7:26 PM
Anonymous
Unregistered
Anonymous
Unregistered
Nice to see time was put to good use <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Regards
Clint


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)