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 :: Polls :: Message Navigator
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 12:55 Go to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
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 13:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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 13:27 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
<?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 13:29 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
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 14:12 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
anything?
Re: Error in DB.inc causing problem [message #160041 is a reply to message #160040] Sun, 19 July 2009 15:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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 15:18 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
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 16:25 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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] Mon, 20 July 2009 02:23 Go to previous messageGo to next message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
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 05:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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 06:40 Go to previous message
slowmo is currently offline  slowmo   Singapore
Messages: 22
Registered: July 2009
Karma: 0
Junior Member
i did enable in newsgroup manager.
I will try the posting from the shell and post my results.

thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Jun 26 14:10:29 GMT 2024

Total time taken to generate the page: 0.03729 seconds