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

Home » FUDforum » How To » Importing Newsgroups
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Importing Newsgroups [message #35474] Mon, 15 January 2007 12:31 Go to next message
korki is currently offline  korki   Romania
Messages: 2
Registered: January 2007
Karma: 0
Junior Member
Hello,
I installed successfully the fudforum 2.7.6 with php 4.4.4
The directory /news where is located nntp.php script is chmoded 777.
Register_argv_argc is ON on the php core and /usr/local/lib/php is where the php executable located
If I run the nntp.php script from my browser.I do not have access to a shell script.
I receive the error: "Missing Forum ID Parameter"
If I comment the lines below

**/if ($_SERVER['argc'] < 2) {
exit("Misssing Forum ID Parameter\n");
}
if (!($fid = (int)$_SERVER['argv'][1])) {
exit("Missing Forum ID Paramater\n");
}
/**

I receive:
Warning: main(/GLOBALS.php) [function.main]: failed to open stream: No such file or directory in /home/soft/public_html/news/nntp.php on line 30
Warning: main(/GLOBALS.php) [function.main]: failed to open stream: No such file or directory in /home/soft/public_html/news/nntp.php on line 30
Fatal error: main() [function.require]: Failed opening required '/GLOBALS.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soft/public_html/news/nntp.php on line 30
I also executed this scrip from my browser

#!/usr/local/lib/php -q
<?
var_dump($HTTP_SERVER_VARS['argv']);
?>

and I receive: array(0) { }

I sought you helped Micha37 but it was in 2002 and I don't find the lines below for changing also:
"change:
chdir(dirname($HTTP_SERVER_VARS['argv'][0]));
TO:
chdir(__FULL_DIRECTORY_PATH_TO_SCRIPTS_DIR__);
change:
$nntp_adm->get($HTTP_SERVER_VARS['argv'][1]);
TO:
$nntp_adm->get(__RULE_id__);"
$nntp_adm->get($HTTP_SERVER_VARS['argv'][1]);
TO:
$nntp_adm->get(__RULE_id__);"

What else should I try ?
Thank you

[Updated on: Mon, 15 January 2007 12:50]

Report message to a moderator

Re: Importing Newsgroups [message #35483 is a reply to message #35474] Tue, 16 January 2007 00:16 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Make sure that $_SERVER is not empty. If it is make sure that variables_order INI setting include "S" in it.

FUDforum Core Developer
Re: Importing Newsgroups [message #35487 is a reply to message #35483] Tue, 16 January 2007 06:43 Go to previous message
korki is currently offline  korki   Romania
Messages: 2
Registered: January 2007
Karma: 0
Junior Member
Thank you. I resolved this problem.

[Updated on: Tue, 16 January 2007 20:43]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: backup without database
Next Topic: Category View?
Goto Forum:
  

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

Current Time: Sat Nov 23 22:30:42 GMT 2024

Total time taken to generate the page: 0.02279 seconds