1
teibaz
some errors in my xoops
  • 2004/11/19 11:16

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13



Notice [PHP]: Undefined offset: 0 in file c:\www\rhcp\modules\newbb\class\forum.php line 359



359: return $_cachedForums[$cat][$perm_string];
360: }



Warning [PHP]: array_keys(): The first argument should be an array in file c:\www\rhcp\modules\newbb\blocks\newbb_block.php line 53

Warning [PHP]: implode(): Bad arguments. in file c:\www\rhcp\modules\newbb\blocks\newbb_block.php line 56



52: }
53: $valid_forums = array_keys($access_forums);
54: if (isset($allowed_forums) && count($allowed_forums) > 0) $valid_forums = array_intersect($allowed_forums, $valid_forums);
55:
56: $forum_criteria = ' AND t.forum_id IN (' . implode(',', $valid_forums) . ')';
57: unset($access_forums);
58: $approve_criteria = ' AND t.approved = 1 AND p.approved = 1';



if i want to add block "recent comments" i get error like this:


Fatal error: Call to a member function on a non-object in c:\www\rhcp\modules\system\blocks\system_blocks.php on line 337


336: $mid = $comments[$i]->getVar('com_modid');
337: $com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';



how can i put this in right?
and what it could be?

2
pessi
Re: some errors in my xoops
  • 2004/11/19 11:45

  • pessi

  • Quite a regular

  • Posts: 204

  • Since: 2004/5/16


hi

I am not an expert but what i can guess is that your folder permission were not correct while installing because there is an error in cache dir. there is one in avtars...and these folders need special permissions as i remember when I installed xoops.

check this

http://docs.xoops.org/modules/xdocman/manual.php?lang=en&doc=xu-002&file=ch03.html


Hope it helps.

cheers,
prasad..

3
teibaz
Re: some errors in my xoops
  • 2004/11/19 12:21

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Quote:

pessi wrote:
hi

I am not an expert but what i can guess is that your folder permission were not correct while installing because there is an error in cache dir. there is one in avtars...and these folders need special permissions as i remember when I installed xoops.


it cant be this, `cause i'm testing now on my windows2003 virtual server (apache 1.3.x; php 4.3.x; MySQL 4.x). So, there isn't CHMOD in windows...

i edited code in some places.. so, what are the possible reasons for these errors... maybe i'll find out myself where i edited not correctly...

4
Mithrandir
Re: some errors in my xoops

re. the forum errors - do you have any categories and forums created? I assume you have newbb 2?

5
teibaz
Re: some errors in my xoops
  • 2004/11/19 13:13

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Quote:

Mithrandir wrote:
re. the forum errors - do you have any categories and forums created? I assume you have newbb 2?


yeah, i use newbb2. There are 3 categories and lots of forums (i updated from newbb with updater)

Login

Who's Online

166 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 166


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