News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

@rjen

That error was fixed in 164 ... https://www.tinyportal.net/index.php?topic=36398.0
what version are you using?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

lurkalot

Quote from: @rjen on December 28, 2019, 10:40:02 AM
That error was fixed in 164 ... https://www.tinyportal.net/index.php?topic=36398.0
what version are you using?

I remember that one, you found it and fixed it just before we released TP 1.6.4

I've just edited article as a Global Moderator, and Moderator and can't get it to throw a error.

wylekk

Mod downloaded from your site, version 1.6.4. Error (Undefined index: locked - Line 1638) on both the working forum and the test forum.

@rjen

Quote from: catyr on December 28, 2019, 12:10:17 PM
Mod downloaded from your site, version 1.6.4. Error (Undefined index: locked - Line 1638) on both the working forum and the test forum.

Can you attach your Tportal.php file here? I am looking for the code around line 1038 in that file...

A link to one on those sites would also be useful
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

wylekk

Error code

elseif(allowedTo('tp_editownarticle') && !allowedTo('tp_articles') && $context['TPortal']['article']['authorID'] == $context['user']['id'] && $context['TPortal']['hide_editarticle_link'] == '0' && $context['TPortal']['article']['locked'] == '0')

If you prohibit the editing of an article by a moderator, there is no error.

Here is a working site h__s://wylek.ru
Here is a test site h__p://www.sub.wylek.ru

@rjen

That is not the file I need to see..
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

wylekk

File this - TPsubs.template.php

@rjen

I really need to see the file I specified : Tportal.php
Even though the message states another file that's where the issue starts...

Please attach the file itself here...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

wylekk


@rjen

Seriously? I asked for the file Tportal.php...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

wylekk


@rjen

Quote from: wylekk on December 29, 2019, 09:05:07 AM
Wrong file attached :-\

thanks for that one. I checked you file and indeed the fix I mentioned is already in there, so there must be another issue.
I will try to reproduce it first, will let you know my findings...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Quote from: wylekk on December 28, 2019, 10:32:33 AM
Hi!
When editing an article by moderators, this error always appears on version 1.6.4  SMF2.1 RC2

Type of error: Undefined
8: Undefined index: locked
https://site.ru/index.php?https://site.ru/
/home/admin/web/site.ru/public_html/Themes/default/TPsubs.template.php (Line 1639)


Ok, I tried to reproduce it using a user account that has the permission to manage articles, and then update a random article (from a different user). I get no errors.

Tried it on the frontpage, on a category page and on an article page, but all work fine.

Can you describe in detail which steps you take to get the error? 
Can you post the complete URL of the page you are accessing when getting the error?

You say a 'moderator' changes an article. How exactly is the user configured? SMF Moderators do not get extra permissions in Tinyportal, so I assume you have a user group with extra permissions. What exact TinyPortal permissions does that user group have?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Ok, found it, replace Tportal.php with the file attached: that should fix it...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

wylekk

Great! Now there are no errors  :)

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

-Rock Lee-

I published it on the author's site but since I'm here I leave it here the attachment of the Spanish Latin translation of TP 1.6.4 8).


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

lurkalot


Sir Osis of Liver

#2559
How to place google ads in block?  Have the ad code in lower panel, it's blank.  Test div displays, ads do not.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: