FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Error in DB.inc causing problem (Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/*******/fudforum/include/theme/default/db.inc on line 14)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Error in DB.inc causing problem [message #160036] Sun, 19 July 2009 08:55 Go to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/myuserwebsite/fudforum/include/theme/default/db.inc on line 14

whener i run nntp.php i get this error. I have run it manually as well as by cron. same problem.

I am using SQLite
Re: Error in DB.inc causing problem [message #160037 is a reply to message #160036] Sun, 19 July 2009 09:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
What versions of FUDforum and PHP are you running? Can you please also post lines 13-15 of db.inc here?
Re: Error in DB.inc causing problem [message #160038 is a reply to message #160036] Sun, 19 July 2009 09:27 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
<?php
/**
* copyright            : (C) 2001-2009 Advanced Internet Designs Inc.
* email                : forum(at)prohost(dot)org
* $Id: db.inc,v 1.36 2009/05/16 17:43:02 frank Exp $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
**/
# define('forum_debug', 1);

class db { public static $db, $ar, $res, $buf; }

if (!defined('fud_sql_lnk')) {


Line 14 is between class db and if lines.

I downloaded the latest stable release today. Fresh new install. The release date was 21st May 2009. 2.8.1

Output of php -v
PHP 4.4.9 (cli) (built: Sep 17 2008 12:02:18)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies


thank you very much
Re: Error in DB.inc causing problem [message #160039 is a reply to message #160036] Sun, 19 July 2009 09:29 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
sorry that was php version of cli. here is the putput of phpinfo.

PHP Version 5.2.9. Running as CGI/FastCGI mode. I am on dreamhost. if that helps.
Re: Error in DB.inc causing problem [message #160040 is a reply to message #160036] Sun, 19 July 2009 10:12 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
anything?
Re: Error in DB.inc causing problem [message #160041 is a reply to message #160040] Sun, 19 July 2009 11:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Quote:
PHP 4.4.9 (cli) (built: Sep 17 2008 12:02:18)


SQLite support was introduced in PHP 5.0.0. So, pick a different DB or upgrade your command line PHP executable.
Re: Error in DB.inc causing problem [message #160042 is a reply to message #160036] Sun, 19 July 2009 11:18 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
there is jonly mysql and mysql is slow on my share host. Thanks for the help. Appreciate that you were not just helpful but quite quick as well.

I will try to check if i can get the CLI upgraded.

thanks a lot again.

P.S. How do i switch the DB now? Install again?
Re: Error in DB.inc causing problem [message #160043 is a reply to message #160042] Sun, 19 July 2009 12:25 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Quote:
How do i switch the DB now? Install again?


Do a forum datadump, reinstall and import the dump via the ACP.
Re: Error in DB.inc causing problem [message #160046 is a reply to message #160036] Sun, 19 July 2009 22:23 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks. I got it to work with PHP5 CLI. You were right on target with that. So now i dont need to migrate my DB.

But I notice the NNTP sync still doesnt work right. It does not post the message to the newsgroup from the forum. It can nntp-->forum though. no issues there. The reverse doesnt happen.

I used giganews to test

Not sure if i am missing something or this is a bug.
Re: Error in DB.inc causing problem [message #160048 is a reply to message #160046] Mon, 20 July 2009 01:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Did you enable "Synchronize Forum Posts to Newsgroup" in the Newsgroup Manager?

Can you post NNTP messages to giganews (without FUDforum) from the server/IP-address where you host your forum?
Re: Error in DB.inc causing problem [message #160056 is a reply to message #160036] Tue, 21 July 2009 02:40 Go to previous message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
i did enable in newsgroup manager.
I will try the posting from the shell and post my results.

thanks.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Plugins becoming disabled when changing any general settings
Next Topic: Tree view breaks?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Dec 15 20:22:48 EST 2017

Total time taken to generate the page: 0.00582 seconds