21
ICHI_UK
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/13 11:49

  • ICHI_UK

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/11/1


Tonights job.. thanks for the advice.

May need some help with the code compare

22
peterr
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 2:56

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


The error message is coming from this define in /modules/newbb/language/english/main.php

define("_MD_INVALID_SUBMIT","Invalid submission. You could have exceeded session time. Please re-submit or make a backup of your post and login to resubmit if necessary.");


The version of that file is

Quote:

// $Id: main.php,v 1.6 2005/05/19 12:21:45 phppp Exp $


but I cannot tell exactly what version of newbb it is. Definitely it is one of the versions by 'phppp', because that name appears in many files.

It is either 1.16 or 1.16a, I cannot tell, here is the /modules/newbb/xoops_version.php file (with the email address changed)

// $Id: xoops_version.php,v 1.8 2005/06/03 01:35:02 phppp Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  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; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

$modversion['name'] = _MI_NEWBB_NAME;
$modversion['version'] = 1.16;
$modversion['description'] = _MI_NEWBB_DESC;
$modversion['credits'] = "NewBB 2 developed by Marko Schmuck (predator) and D.J. (phppp)";
$modversion['author'] = "D.J. (phppp)";
$modversion['help'] = "";
$modversion['license'] = "GNU General Public License (GPL) see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/xoopsbb_slogo.png";
$modversion['dirname'] = "newbb";

$modversion['author_realname'] = "XOOPS CHINA Dev Group";
$modversion['author_website_url'] = "https://xoops.org.cn";
$modversion['author_website_name'] = "XOOPS CHINA";
$modversion['author_email'] = "xxxx@example.com";
$modversion['status_version'] = "1.16a";
$modversion['status'] = "20060105";

$modversion['warning'] = "The further development of NewBB 2";



It appears the error message is invoked by /modules/newbb/post.php, lines 124 to 131

if(!$token_valid || !$time_valid){
    
$_POST['contents_preview'] = 1;
    
$_POST['contents_submit'] = null;
    
$_POST['contents_upload'] = null;
    if(!
$token_valid) echo "<div class="errorMsg">"._MD_INVALID_SUBMIT."</div>";
    if(!
$time_valid) echo "<div class="errorMsg">".sprintf(_MD_POSTING_LIMITED,$xoopsModuleConfig['post_timelimit'])."</div>";
    echo 
"<br clear="both" />";
}


You would need to find out where the vars $token_valid and $time_valid are set. It appears they are both set in the same file (/modules/newbb/post.php), but I do not understand _how_ they are set.

HTH

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

23
peterr
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 4:23

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Ok, downloaded CBB 1.16 , then compared the source code, here are the results:

Quote:

Rules-Based Comparison of "F:\XOOPS_downloads\Modules\cbb\1.16\cbb1.16\newbb" to "F:\Backup\modules\newbb"
693 files in 44 folders

664 files match exactly
-----------------------
(why list 663 files that match ??)
xoops_version.php

29 folders and files only on right
----------------------------------
admin\admin_forums.php
admin\admin_priv_forums.php
blocks\newbb_new.php
class\class.forumposts.php
images\del_topic.gif
images\external.png
images\folder.gif
images\folder_big.gif
images\folder_locked_big.gif
images\folder_new_big.gif
images\folder_sticky.gif
images\hot_folder.gif
images\hot_red_folder.gif
images\lock.gif
images\lock_topic.gif
images\move_topic.gif
images\pixel.gif
images\post.gif
images\red_folder.gif
images\sticky.gif
images\unlock_topic.gif
images\unsticky.gif
templates\blocks\newbb_block_active.html
templates\blocks\newbb_block_new.html
templates\blocks\newbb_block_prv.html
templates\blocks\newbb_block_top.html
autologin.txt
config.php
functions.php


the extra image files don't concern me, but what are the extra php files ? Are they still hanging around from the auto-login hack ?

Also, someone suggested going into admin and doing an update on the 'newbb' module. Considering that I have been informed of the following settings in admin:

System Admin> Modules newbb version 1.15

and the source code from the site does match cbb/newbb 1.16 (except for a few files ?? ), then I would agree that doing the update in admin would be advisable.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

24
ICHI_UK
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 9:50

  • ICHI_UK

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/11/1


Ok Peter thanks... Updated module and still showing as 1.15 in system admin>modules

token valid and token time am lost with...

Seems like we maybe getting somewhere....i hope, big thanks!!

25
peterr
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 10:35

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Your /cache directory has an adminmenu.php in it, which has '1.15' in it, so delete this file /cache/adminmenu.php, clear browser cache, and do the newbb update again.

Please tell us if there are any error messages from the update.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

26
peterr
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 11:11

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


It appears the actual error message is coming from the var $token_valid having a false value.

Lines 81 to 87 of /newbb/post.php as follows

$token_valid false;
if(
class_exists("XoopsSecurity")){
    
$token_valid $GLOBALS['xoopsSecurity']->check();
}else{ 
// backward compatible
    
if( !empty($_SESSION['submit_token']) && !empty($_POST['post_valid']) && $_POST['post_valid']==$_SESSION['submit_token'] ) $token_valid true;
    
$_SESSION['submit_token'] = null;
}


and there is a fair bit about sessions in the file (/class/xoopssecurity.php) that is used to determine what is returned from ..

$token_valid $GLOBALS['xoopsSecurity']->check();


I think a few other people mentioned sessions ?

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

27
Anonymous
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 12:04

  • Anonymous

  • Posts: 0

  • Since:


Why not just upgrade your forum to the latest version, which is at phppp's site?

Make a complete backup of your files and database first of course, as usual.

28
ICHI_UK
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 12:09

  • ICHI_UK

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/11/1


Juliette, simply becuase I am a novice and also because I am absolutely rubbish when it comes to databases

29
ICHI_UK
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 12:14

  • ICHI_UK

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/11/1


Quote:

peterr wrote:
Your /cache directory has an adminmenu.php in it, which has '1.15' in it, so delete this file /cache/adminmenu.php, clear browser cache, and do the newbb update again.

Please tell us if there are any error messages from the update.

P


Ok done that... the only thing that did happen was "This is the first tme you have logged into the Admin panel"

After update module newbb still showing as 1.15.

30
peterr
Re: XOOPS DEVELOPER/EXPERT HELP NEEDED URGENTLY
  • 2006/3/18 12:17

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Quote:

-Juliette- wrote:
Why not just upgrade your forum to the latest version, which is at phppp's site?


Unless the current problem can be sorted out with the current config, it really is a waste of time to upgrade newbb, because the problem seems to be, not actually _sourced_ from newbb, although the 'result' (the error message) is happening in newbb.

The particular problem is not common to XOOPS 2.0.13.2 + cbb 1.16, therefore it is most likely something else causing the problem. The owner of the site had absolutely no problems with this prior to installing the 'auto login hack' (which is mentioned in these posts), therefore our suspicions are something not 'backed out' from that.

P
NO to the Microsoft Office format as an ISO standard.
Sign the petition

Login

Who's Online

125 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 125


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits