TinyPortal

Development => Support => Topic started by: sturmkatze on October 03, 2008, 02:25:32 PM

Title: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 03, 2008, 02:25:32 PM
This is new, actually might be since I installed 1.1.6, I don't know. It has just been brought to my attention :tickedoff: (don't ya love that...) Anyway:

Link to my site: http://www.reenactor.net
SMF version: 1.1.6
TP version: 1.052
Theme name and version: Meadows
Mods installed:

    * Redirection Boards      2.01
    * SMF 1.1.2 Update Package    1.1.2
    * Ad Managment    2.3
    * SMF 1.0.11 / 1.1.3 Update    1.1
    * SMF 1.0.14 / 1.1.6 Update     1.0
    * SMF Staff Page    1.5.1
    * MySpace Field    2.4
    * Buy Me A Beer    1.1
    * Favicon    1.0
    * Repeating Calendar Events v1.2.6
    * Spam Me Not Mod    1.02
    * TinyPortal    1.052
    * Member Awards    1.0.2
    * Lots_o_Smileys    1.0
    * Global Headers Footers
    * FontandSizeDropdown_1.2
    * Moderator Activity Report for SMF1.1.2    1.2
    * Member Color Link    2.0.0
    * Amazon ISBN & ASIN Mod    1.1
    * Registered Images ENG    2
    * Global Announcements    1.0
    * Auto Embed Video Clips    1.2
    * Avatar on Member List    1.0
    * SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0
    * Users Online Today Mod    1.4.0
    * SMF Gallery Pro    1.3.21
    * SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0

Related Error messages: Whne they go to edit articles, they can, but when you save it, BAM! You get: An Error Has Occurred!
Sorry, you aren't allowed to fetch news.
And this is when editing ARTICLES, not doing stuff w/ the news?!
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 03, 2008, 02:34:31 PM
And you're permissions for the articles/categories are what?
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 03, 2008, 03:02:13 PM
In catagories? I see where it says "Access" and that's all enabled. If that's not it, where am I missing? If you still have the log-in, perhaps you can tell me... I don't see anywhere else and I DID look through and check the permissions for members and membergroups.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 03, 2008, 03:02:45 PM
Oh yeah, I have to run, late for work... gotta run to Ohio today.... back this eve.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: G6Cad on October 03, 2008, 03:49:00 PM
If i remember correctly that is a bug that will be fixed for TP B2.
Im not 100% sure though
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 04, 2008, 02:28:09 AM
noooooooooooooooooooooooooooooooooooo :o it was working?!?  :idiot2: I KNEW I shouldn't have dome that 1.1.6 thing. :tickedoff: When will TP B2 be out? This is disaster!
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 04, 2008, 02:35:40 AM
If you add them to another group does it work? Do other groups work? I don't keep logins most of the time. I clean out PM's every couple of weeks usually.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 04, 2008, 02:42:17 AM
Hmmm, didn't try that. Will do in a sec. I have to go out and burn some more trash... ahhh, so environmentally unsound here in PA. :-0 Seriously, will try. I'll rest pw for account if you DO wanna look.

Okay, just looked. Nyet! :tickedoff: Doesn't work w/ other groups either.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 04, 2008, 03:30:37 AM
If it doesn't work for you, send me the login again. Would need access to a global mod account as well. Could just be a temp global mod account to test.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 04, 2008, 03:39:19 AM
just sent you the pw. I will make a temp global mod account. Will pm info asap
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 04, 2008, 04:42:27 AM
You didn't tell me if the membergroup suggestion worked. Does it work for other membergroups? Does it work if the global mod is a member of an additional group?
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 04, 2008, 04:47:48 AM
no, I tried a couple of combinations, even making a new test membergroup. It does not :-(
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 07, 2008, 03:22:12 PM
So then, your issue is not with Global Mods, its with all membergroups? I haven't logged in to look at it yet.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 07, 2008, 03:27:01 PM
correct. It's frustrating... I'm sure (well, i hope) it's something small and stupid, but I just can't find it :-(
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 07, 2008, 04:18:02 PM
Do you have a test account "besides the admin account" that you use to check this out on your forum?
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 07, 2008, 05:05:33 PM
sure, a couple. I sent you one of them... They don't work either and I get the same thing the mods get "You are not allowed to retrieve news" or something close along that line. This, when you're trying to save an article?!
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 07, 2008, 07:37:49 PM
Ok, so you get it as admin as well? This is becoming more and more, I need you to narrow it down before I go in and start trying to figure things out.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 08, 2008, 02:06:41 AM
Quote from: IchBinâ,,¢ on October 07, 2008, 07:37:49 PM
Ok, so you get it as admin as well? This is becoming more and more, I need you to narrow it down before I go in and start trying to figure things out.
No, I can edit and save. No problems, but other member groups can't... I've tried permissions, etc. I just don't know where I'm missing something.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 08, 2008, 04:50:46 AM
Is tha the only error you get? Do you get the unable to load template 'main' error when trying to create an article with any of those accounts as well? Will try to take a look tomorrow.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: G6Cad on October 08, 2008, 07:13:48 AM
"unable to load the main menu"
Wasent that a bug posted and fixed for beta2  ???

http://www.tinyportal.net/index.php/action,bugtracker/sa,bug290.html
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 08, 2008, 02:31:46 PM
Quote from: G6 on October 08, 2008, 07:13:48 AM
"unable to load the main menu"
Wasent that a bug posted and fixed for beta2  ???

http://www.tinyportal.net/index.php/action,bugtracker/sa,bug290.html
Yes, thats why I asked.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: illori on October 23, 2008, 07:32:41 PM
any progress? i am using the beta 2 and i still get the error

Sorry, you aren't allowed to fetch news.

when others try to save their articles, my site is set to allow certain groups of people to edit and manage articles, with this error my site is almost 100% useless to me and those that will use it.

[edit]
TportalAdmin.php still calls the unused perm tp_news

the attached file atleast lets you edit articles without that perm causing issues.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 25, 2008, 04:29:30 PM
Quote from: Caarrie on October 23, 2008, 07:32:41 PM
when others try to save their articles, my site is set to allow certain groups of people to edit and manage articles, with this error my site is almost 100% useless to me and those that will use it. 

I'm seeing this too and it's a major bug for me also.  It means that no one but Admin can edit Articles which completely wrecks the concept of the site.   I believe it's easy to duplicate; just do an install (SMF 1.1.6/ TP 1.0.5), create a new usergroup, create a new article (with category) and try to give a member of the new usergroup permission to edit the article.  When they click "save" the error appears. 
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 25, 2008, 05:36:37 PM
And this would have been fixed in 1.0.6 I think.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 25, 2008, 06:03:23 PM
I just installed 1.0.6 on top of my previous 1.0.5 (test install only) and the same bug is there. 
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 25, 2008, 09:14:32 PM
On my site, I do not have the same problem. With a Global mod I am able to edit and create articles. Remember they can't edit the article unless you either give them permissions to edit their own articles, or you give them permission to manage all articles in the member group permission settings.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 25, 2008, 11:16:22 PM
Quote from: IchBinâ,,¢ on October 25, 2008, 09:14:32 PM
On my site, I do not have the same problem. With a Global mod I am able to edit and create articles. Remember they can't edit the article unless you either give them permissions to edit their own articles, or you give them permission to manage all articles in the member group permission settings.


There must be something different about your install.  I've just repeated this for about the third or fourth time - this time on a fresh install.

Try it yourself with a fresh install of SMF/TP:

Worse yet, I have found that if I install TP 1.0.6 on top of the 1.0.5 install, the mode of the "Edit article" page is so messed-up for an html page, that it doesn't even treat it as an html page.  Instead of saying "Edit article (html) " at the top of the Edit Box it says "Edit article () " and the wysiwyg FCK Editor does not come up.  You just get a standard Text Editor Box just as you would with a php page; the html markup is all there together with the page text just as you would see when viewing html source for any web page.   If you change the page to "php" or "bbcode", and go back to "html", it's still the same.

These bugs are serious.

Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 25, 2008, 11:19:02 PM
We are aware that this happens in TP 1.0.5. It was fixed for TP 1.0.6. If you are seeing the same problem then you need to probably go through the manual install and make sure everything is done.

Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 25, 2008, 11:34:05 PM
Quote from: IchBinâ,,¢ on October 25, 2008, 11:19:02 PM
We are aware that this happens in TP 1.0.5. It was fixed for TP 1.0.6. If you are seeing the same problem then you need to probably go through the manual install and make sure everything is done.

Just to make sure I understand this correctly....

You are saying that if I have an install of SMF1.1.5 and TP1.0.5, the "Manual Install" means to go through and Modify the files as shown in the "Manual Install Guide" for TP 1.0.6 ...correct? 

UPDATE:  Doing a manual install of 1.6 does not fix this problem.  I've posted a tentative fix in the thread for this bug (http://www.tinyportal.net/index.php?action=bugtracker;sa=bug372).
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 25, 2008, 11:43:41 PM
No. I'm replying to the problem that deals with the title of this topic. If you are unable to edit articles as a GlobalMod in TP 1.0.6 then you need to do the manual install. TP 1.0.5 was known to have this problem. TP 1.0.6 does not have this problem. For any other problems you should be starting another topic so the discussion does not alter the topic subject.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: illori on October 26, 2008, 01:31:32 AM
did anyone look at the file i attached? the perm for "news" is still being used where it was removed from the list of perms to assign so it fails when submitting articles, look at the source and you will see it.

also i have done this test with a clean install of smf 1.1.6 and a NEW install of tp 1.0.6 beta 2, there was not site before this, and i have worked with tinyportal and smf before so i know i did not make this  error up.
[edit]

maybe it might help to show a diff of the change made that fixes this to prove it.

--- /Sources/TPortalAdmin.php  2008-10-11 19:48:36.000000000 -0400                                               
+++ /Sources/TPortalAdmin.php      2008-10-23 17:20:35.000000000 -0400                                               
@@ -131,7 +131,7 @@                                                     
        // check permissions                                             
        if($tpsub == 'news')                                             
        {                                                               
-                       isAllowedTo('tp_news');                         
+//                     isAllowedTo('tp_news');                         
        }                                                               
        elseif(in_array($tpsub, array('settings','frontpage','panels','modules','credits','portal','subscriptiongroups')))                       
        {
@@ -2798,8 +2798,7 @@
                        'description' => $txt['tp-adminnews3'],
                        'tabs' => array(),
                        );
-               if (allowedTo('tp_news'))
-               {
+
                        $context['admin_tabs']['tabs'] = array(
                                'news' => array(
                                'title' => $txt['tp-adminnews1'],
@@ -2814,7 +2813,6 @@
                                        'is_selected' => $tpsub == 'credits',
                                ),
                        );
-               }
        }
        elseif(in_array($tpsub, array('settings','frontpage')))
        {

Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 26, 2008, 02:10:26 AM
Quote from: Caarrie on October 26, 2008, 01:31:32 AM
did anyone look at the file i attached? the perm for "news" is still being used where it was removed from the list of perms to assign so it fails when submitting articles, look at the source and you will see it.

also i have done this test with a clean install of smf 1.1.6 and a NEW install of tp 1.0.6 beta 2, there was not site before this, and i have worked with tinyportal and smf before so i know i did not make this  error up.
[edit]

Caarie,  are you saying that this is a fix for the bug?  It was not clear to me from either post the original post that you were presenting this as a fix for the bug. 
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 26, 2008, 04:30:39 AM
Quote from: Caarrie on October 26, 2008, 01:31:32 AM
did anyone look at the file i attached? ....
maybe it might help to show a diff of the change made that fixes this to prove it.

Carrie, your post is completely unclear to me.  Ichbin says that the bug existed in 1.0.5 and is fixed in 1.0.6.   The code you are showing in your fix doesn't even exist in TPortalAdmin.php v1.0.5 and your post seems to be talking as if the bug still exists in 1.0.6.     You'll have to make your meaning more clear. 
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: illori on October 26, 2008, 12:00:04 PM
the file/fix is for the new beta 1.06 beta2 and yes the lines are there, and no according to my tests Ichbin is wrong this is not fixed, the perm was removed as something to assign, and yet it was left in the admin file therefor keeping people from using the feature correctly.

this patch is for the new beta 1.06
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: espressoguy on October 26, 2008, 06:01:02 PM
Yes,  I have run many tests and I also am seeing that Caarrie is correct; the bug is still there regardless of whether you install the 1.1.6 fresh on a pristine SMF 1.1.5 or as an upgrade from TP 1.0.5.  Either way when a Global Mod attempts to save the new edits the error comes up and the save does not work.   Also, there is a problem with FCK editor; it doesn't come up when attempting to edit an html page. 

UPDATE: I've just submitted a bug report on this problem of Global Moderator (and everyone except Admin) being unable to edit an article.  Regarding the related problem with FCK editor, see this thread:
http://www.tinyportal.net/index.php/topic,26564.msg213515.html#msg213515
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 27, 2008, 12:20:10 AM
I dunno. I think it was a permission problem as it's gone now. However, I am not about to change to 1.06 or whatever as it doesn't have the block w/ 1 article... I use that a lot.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: IchBin on October 27, 2008, 12:40:33 AM
You should be able to use a center/upper block with articles, just not a frontpage article.
Title: Re: Problem w/ Global Mods not being able to edit articles
Post by: sturmkatze on October 27, 2008, 12:47:55 AM
I use it for stuff like menus. Maybe I'm doing it wrong, but I want more control. BTW, in the blocks, can I control the bg colors and text/link colors for individual links. (Sorry for asking here, doing 6 things at once and have no time)