1
angaran
Problem with 2.07
  • 2004/6/17 15:46

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Hi, I just uploaded the 2.07 re-release ( common.php 1.54) and the home page does not show the main module page. I t shows only "this module does not exist".

Using common.php frrm 2.06 version all works.

What's the problem??

2
pdaddict
Re: Problem with 2.07
  • 2004/6/17 18:50

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


I have exactly the same problem with a selfmade module.
I tried uninstalling the module, but got an error. (in xoops_version.php, on line 24)

xoops_version.php:
22. $module_handler =& xoops_gethandler('module');
23. $module =& $module_handler->getByDirname('x-life');
24. $module_id = $module->mid();

I comment it out, and the error's gone, but I get a blank page (no errors with php debug on)

I uncomment it again:
Fatal error: Call to undefined function: mid() in /path/to/my/module/xoops_version.php on line 24

3
Dave_L
Re: Problem with 2.07
  • 2004/6/17 18:56

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I think that

$module_handler =& xoops_gethandler('module');
$module =& $module_handler->getByDirname('x-life');
$module_id = [color=ff0000]$module_handler->mid()[/color];


should be

$module_handler =& xoops_gethandler('module');
$module =& $module_handler->getByDirname('x-life');
$module_id = [color=ff0000]$module->getVar('mid')[/color];


4
Mithrandir
Re: Problem with 2.07

$module_id $module->mid();

mid is set on the module, not the modulehandler

5
pdaddict
Re: Problem with 2.07
  • 2004/6/17 19:01

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


It worked with 2.0.6 :( and I found that in a topic about using grouppermissions in xoops_version

mmodule_handler instead of module's a typo when I wanted to undo my changes. But with it corrected: Selected module does not exist!

6
skalpa
Re: Problem with 2.07
  • 2004/6/17 19:14

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


mmm... Does any of you use mod_rewrite or something like this on its site ?

7
pdaddict
Re: Problem with 2.07
  • 2004/6/17 19:22

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


Short answer. No.

8
skalpa
Re: Problem with 2.07
  • 2004/6/17 21:34

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


lol
It's because XOOPS tries to detect what module you're trying to run by analyzing the request uri. The method used to extract this info has been changed, and I believe some mod_rewrite hacks might have to be modified to work with it.

However, apart from that I don't know where it can come from (specially if you encounter the prob with only a specific module). I'm checking further, but doesn't seem to be obvious @ all.

skalpa.>

9
angaran
Re: Problem with 2.07
  • 2004/6/18 9:34

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


The module i can't see as home page is the new versione of "news", available at dev.xoops.org. If I try to access it through a link all is ok.


Login

Who's Online

224 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

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

Latest GitHub Commits