1
nickg
News Module & www.modules.com
  • 2003/12/16 21:49

  • nickg

  • Just popping in

  • Posts: 6

  • Since: 2003/12/16


Hello,

I'm just starting out with XOOPS on a hosted account. I have installed the news module but when I try to add a news article the browser looks for modules/new/submit.php which the browser resolves as:
http://www.modules.com/news/submit.php
which is not my site.
I guess it is a problem with how I have set up XOOPS on my account but am pretty clueless as how to resolve the problem!

Any help would be appreciated.
Thanks
Nick

Linux Hosted Account Details
Xoops 2.0.5
Kernel version 2.4.20-24.9
Apache version 1.3.29 (Unix)
PHP version 4.3.4
MySQL version 4.0.15-standard

2
JackJ
Re: News Module & www.modules.com
  • 2003/12/16 22:24

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Can you go to general settings and switch on debug and post the results here?


Is everything else ok pathwise?

I take it you submitting news as a normal user in the main page? Is submitting through Admin producing errors too?

Are any other modules working?

submit.php as a user is called from

modules/news/xoops_version.php

and the lines should look like this:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";


I would also check your paths are ok in your mainfile.php in your root folder.


3
nickg
Re: News Module & www.modules.com
  • 2003/12/18 19:55

  • nickg

  • Just popping in

  • Posts: 6

  • Since: 2003/12/16


Thanks for getting back to me.

Debug results are:
Notice [PHP]: Undefined variable: topicalign in file modules/news/admin/storyform.inc.php line 65
Notice [PHP]: Undefined index: hometext in file include/xoopscodes.php line 72
Notice [PHP]: Undefined index: bodytext in file include/xoopscodes.php line 72

The problem happens both when attempting post from User and from Admin menus.

I have installed both the Partners and Gallery Modules and they seem to be working ok.

The modules/news/xoops_version.php matches yours so I guess that is not the problem.

I have had a look at mainfile.php but must confess I am not sure what I am looking for

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/home/giddy/public_html');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://giddy.me.uk/');


I did notice that on my site when loading the URL has a double forward slash after the domain name - could this have an effect? (though it doesn't affect the two working modules)
http://giddy.me.uk//modules/news/


4
JackJ
Re: News Module & www.modules.com
  • 2003/12/18 20:16

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


take out the training slash in this:

define('XOOPS_URL', 'http://giddy.me.uk/');

should be

define('XOOPS_URL', 'http://giddy.me.uk');

you will need to increase the CHMOD permisions in mainfile.php to overwrite it.

I reproduced your problem on my site by adding the training slash



5
nickg
Re: News Module & www.modules.com
  • 2003/12/18 20:45

  • nickg

  • Just popping in

  • Posts: 6

  • Since: 2003/12/16


Excellent it works!

Now to think of something to say in the news(but that is my problem!)

Thanks for your help

Login

Who's Online

380 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 380


more...

Donat-O-Meter

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

Latest GitHub Commits