 |    |  |
 | |  |
 | |  |
 | |  |
 | |  |
 |
|
|
| Error: no toolbar for non-admins with page editing rights (Australia) |
|
|
Hi there,
I spent last night installing my new Smart Thinker module suite and have today run into a problem with the Homepage module.
This is the sequence I installed the modules in after checking the dates of all matching dll's in all zips. the one at the end was installed last.
Utilities Smart-Thinker - Utilities PA 01.00.00.zip
Webcam Smart-Thinker - Webcam PA 1.0.0.0.zip
Referrals Smart-Thinker - Referrals PA 01.00.00.zip Framework dll dated 08-06-2005
Quotes Smart-Thinker_-_Quotes_PA_01.00.01.zip Framework dll dated 08-11-2005
Homepage Smart-Thinker - HomePage Silver PA 04.03.01.zip Framework dll dated 23-07-2006
User Profile Smart-Thinker - UserProfile Gold PA 04.03.01.zip Framework dll dated 23-07-2006 Security dll dated 19-08-2006
User Groups Smart-Thinker - UserGroup Gold PA 04.03.01.zip Framework dll dated 23-07-2006 Security dll dated 18-10-2006
Events Smart-Thinker - Events Gold PA 04.03.01.zip Security dll dated 18-10-2006
And now on to the problem:
I have a Page Editor role which is a non-admin that is allowed to edit pages. With the new modules installed, Page Editors lose the toolbar and receive an error its place. The log of the error is pasted further down.
The error mentions the Homepage Module so I'm guessing it's something to do with the replacement toolbar.
I've read though the post on setting the module up and I'm sure it's all correct. However, I have not actually placed the module on any pages yet and I also note that there is no STHomePageEdit role present on the roles listing.
Any ideas are much appreciated. Regard, Rob
ModuleId: -1 ModuleDefId: -1 FriendlyName: ModuleControlSource: AssemblyVersion: 04.03.06 PortalID: 5 PortalName: First Financial Planning Limited UserID: 7 UserName: ffpledit ActiveTabID: 147 ActiveTabName: Draft Content RawURL: /EditorTools/DraftContent/tabid/147/Default.aspx AbsoluteURL: /Default.aspx AbsoluteURLReferrer: UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; VRE Toolbar 1.4; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: b0b2d13f-4676-4dd3-9ed2-5d55a6998711 InnerException: Object reference not set to an instance of an object. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: SmartThinker.DNN.Modules.HomePage.Business.HomePageUtils.RemoveUserFromEditRole StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at SmartThinker.DNN.Modules.HomePage.Business.HomePageUtils.RemoveUserFromEditRole(Page callingPage, Int32 portalID, Int32 userID) at SmartThinker.DNN.Modules.HomePage.SmartThinkerHPBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace --- Source: Server Name: DEDI485
=============================
Edited:
I found another thread on the same subject: http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/14/threadid/1624/threadpage/2/scope/posts/Default.aspx
I have tried creating the STHomePageEdit role in one of the subportals with the error. It makes the error go away for the Page Editor, but also the toolbar.
I can see that I could replace my Page Editor role with the STHomePageEdit role, but man.. that's quite a task over 8 portals here and I don't know if it is even the same thing in the end?
Even then, Does the Homepage STHomePageEdit Role have to be the only role that is allowed to edit pages in all the portals in the DNN instance? I have to say I wouldn't have installed it if I knew it was going to affect my existing rights and roles.
Please let me know if there's a workable solution. thanks Rob
=============================
Edited again: Do I understand correctly that the Homepages module does not work on sub-portals at all? I was planning on having it running on a few sub-portals - hence the purchase of the 10 portal version
|
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (N/A) |
|
|
Hi Rob,
Sorry for the delay - I've been working on the UserProfile and Referrals module. When you say "I
have tried creating the STHomePageEdit role in one of the subportals
with the error. It makes the error go away for the Page Editor, but
also the toolbar."
Do you mean the toolbar goes away or it is working correctly?
"Even
then, Does the Homepage STHomePageEdit Role have to be the only role
that is allowed to edit pages in all the portals in the DNN instance? I
have to say I wouldn't have installed it if I knew it was going to
affect my existing rights and roles." No, it should be fine.
The problem is that the Control Panels are set for all portals and not just a single one - this means that child portals will be looking for this role. I would have thought that just adding this role would fix the problem but Paul in the other post did not confirm this either way.
"Edited
again: Do I understand correctly that the Homepages module does not
work on sub-portals at all? I was planning on having it running on a
few sub-portals - hence the purchase of the 10 portal version" I don't use ChildPortals so I tend to do less testing on this which is clearly not ideal - it's something I am improving on in the current releases.
Out of interest, there are only 2 Live License Types - 10 or 100 - so 10 is the smallest you could buy even if you only used it on 1 portal (The Trial License does not allow you to use it on Live Portals).
I was not planning on working on the HomePage module for quite some time (UserProfile is due a massive upgrade and the Quotes module needs to be brought into 4.3.1) - so let me know if creating the role can be used as a workaround please.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (Australia) |
|
|
No problem at all Rodney. I got a good impression of what you're up to
from reading other posts around the forums so I was able to continue my
work withhout being held up. Let me just point out that it is
refreshing in the DNN scene to see everyone's posts so thoroughly and
clearly responded to. Great stuff.
On to my problems with the module... After
some more reading I came to better understand how the module is
supposed to work. I realised that I wouldn't be able to use it for the
intended purpose and instead will make use of Onyak's variation of this
functionality. Some of my problems stemmed from thinking that the two
modules were sort of the same thing, when really they are somewhat
different. I can still see that I could use the Homepages module
perhaps as a way to provide personal pages within a community.
In
any case, Onyak's module will work nicely and I'm looking forward to
setting up your other modules to work with it. One related query I have
is: Will I miss out on any cool functionality between the other
Smart-Thinker modules if I don't use the Homepages one?
And regarding the actual problem I had with the module and the toolbar... I went ahead and created the STHomePageEdit
role to see if it helped, and whilst the error message was then gone,
the toolbar still would not show up. The page appeared to be in edit
mode, but with no toolbar at the top. I was unable to make it show for
any existing roles that had existing edit rights.
I can see
that I would be able to get it working if I built a standalone portal
for it with roles built around the module's requirements, but I needed
it to fit in my existing multi-portal structure in order to make use of
all the other modules that I've purchased over time - that are licensed
for installation in a single live DNN instance.
I should point out that there
seems to be a change in DNN4.36 that I need to confirm. Since moving
from 4.35 to 4.36 I seem to be able to have a different control panel
per portal. It may however just be some sort of caching issue - 4.36 seems to
drop pages into a new 'cache' folder in each portal and that
might be causing some things to stick longer than intended. I'll play
with it later today and see if it's still happening.
In any case, I'm happy with
the alternate path I'm taking now, so don;t worry about me... just
carry on and put your work into the other modules :)
Best regards, Rob
|
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (United Kingdom) |
|
|
| rodney - this is bang on - it myst be a bug
and a bad one at that - it undermines the whole dnn security model
I'm on 4.3.6
I use Quotes and Home Page
With your toolbar in use
non-admin users with page edit rights dont see the toolbar ie. only admin users can add pages or add modules onto pages
- they should see the toolbar with ability to manage page and manage modules -
if you go to host settings and remove your toolbar - everything is fine
if you add it back - the issue returns
there are no errors displayed or logged
your toolbar just doesnt display to page editors
this whole approach of replacing the toolbar is starting to concern me
could you look at this urgently pls
|
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (N/A) |
|
|
After much investigation and debate I've unfortunately come to the same conclusion - the HomePage module is a potential security threat due to the way it manipulates roles to get around the 1 role per user problem. As the core changes it requires constant attention to ensure it still works and is not a threat and I think there may be a better solution now than the one this module was designed for. I would hate to be responsible for a security compromise.
It is for this reason that I am going to release it as free open-source and anyone who wants to try and get around this issues can attempt to (I am not sure it is even possible considering the core architecture).
I am sincerely sorry to all the customers who use module but it is a too much of a drain on my time (and therefore money) and I need to focus on the Events, UserGroups, UserProfile and Quotes module to make Smart-Thinker a viable business. I'm quite happy to refund the money of any customer who brought the product suite with the intention of just using this module.
For any developers out there - if you want the source to this module let me know. I will withdraw this module and make an official announcement shortly.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (N/A) |
|
|
Ok, I have identified the problem with the Non-Admins not getting the toolbar - I'm just trying to find a way to fix it efficiently...
I've posted on the core Forums - if you know the best way to check for this please let me know: http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/-1/threadid/105320/scope/posts/Default.aspx
hopefully a fix will be issued shortly....
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Error: no toolbar for non-admins with page editing rights (N/A) |
|
|
Hi All,
I believe I have fixed this issue in 4.3.2 and it is now available for download. Please test it and confirm this.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
| |
|  |
 | |  |
 | |  |
 | |  |
|