Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 953
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Undefined index: can_moderate_forum errorlog entry when visit a SP page

Started by Inti31, September 23, 2011, 04:13:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Inti31

yesterday I did a re-install of my testforum because the server changed.
Everything runs fine  - I only get an entry in the error log when I open a Simple Portal (SP) page - this error also writes down a php page has has no relation to SP (that php page has only ~20 lines)

because that happen only if I visit a page I hope it is allowed to ask - maybe someone could assist me...

http://aida32-inventory.netboom.de/index.php?page=pg_note 8: Undefined index: can_moderate_forum
...Themes/default/languages/SearchFocus.german-utf8.php (view_page sub template - eval?)
line: 85


thank you,

inti31

my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Kryzen

I'm afraid that's an error caused by the search focus dropdown. Can you attach SearchFocus.german-utf8.php?

Inti31

Really? I don't think that file is involved - it has just 16 lines and contains just translation strings...
But here it is - and thx for your help.

cheers inti31
my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Kryzen

Hmmm, can't see anything wrong in that file. Can you provide a list with other mods you have installed, aside from SP and Search Focus Dropdown?

AngelinaBelle

How is that page built? What makes that page different from any other page?
Does it happen when you visit EVERY simpleportal page?

Is this a custom php page?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Inti31

I get for each page (simple bbc and html pages) the same error message as shown (see 1st post)

My pages:


please see att'ed html-file of my mods

cheers inti31
my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Inti31

okay - I found out that the error log is filled by myself - if I click on pages as a guest - nothing is listed. Will test it, as a normal user

Okay - it is me - As a guest or a normal member nothing is listed...

Okay - no need to click on pages as an admin... :)
my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

ccbtimewiz


Inti31

thx for advising me - the error message is the same - now it is that file:
8: Undefined index: can_moderate_forum
Datei: .../Themes/default/PortalPages.template.php
line 85

echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');


Cheers inti31
my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

[SiNaN]

It's related to this mod:

http://simpleportal.net/index.php?topic=8180.0

This should fix it:

PortalPages.template.php

Code (Find) Select
$context['can_moderate_forum']

Code (Replace) Select
allowedTo('moderate_forum')

There are two instances of that code. Make sure you change them both.
And slowly, you come to realize... It's all as it should be...

Inti31

@SiNaN

wonderful - you've solved it - thank you very much.

cheers Inti31
my forum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber