xoops forums

Evincar

Just popping in
Posted on: 2005/1/3 1:02
Evincar
Evincar (Show more)
Just popping in
Posts: 2
Since: 2005/1/2 2
#1

Uploading news on my new website gets redirected to www.cpan.org

I am using easyphp on my winxp machine. And the XOOPS website runs fine. But whenever i try to submit news, whenever i click preview or submit, i get send to the website www.cpan.org I think it is trying to tell me it's missing some module. But i can't figure out which one. Any help would be great. Thanks

Tombraider

Just popping in
Posted on: 2005/3/6 10:27
Tombraider
Tombraider (Show more)
Just popping in
Posts: 2
Since: 2005/3/6 1
#2

Re: Uploading news on my new website gets redirected to www.cpan.org

Fix:

Edit storyform.inc.php

Line 29:
$sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", xoops_getenv('PHP_SELF'));

Change to:
$sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", xoops_getenv('$PHP_SELF'));

** Note the $ in front of PHP_SELF!!