Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 19

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 Bugs

 
 
LinkBack Thread Tools Display Modes
Old 07.05.2004, 09:30   #1 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 4
issasal is on a distinguished road
Chat Searching - Not authorized to view search results

I'm having a big issue with my site that I really dont understand at all. I'm new to Mambo and have redone my entire site and plan to release the new Mambo version soon, but I have an issue with searching...

Whenever I search, then click on a search result, it says "Unauthorized to view this resource, you must log on". When I log in as my admin account and try it, I still get the same message. This occurs for every search item. If I access the item from my site somewhere else it works fine. All my items are public so nobody should need to log in.

One thing I did notice is that the URL that it points to in the search results is a little different than what its suppose to be. Instead of "<domain>content/view/153/2" the search result points to "<domain>content/view/153", its missing the last item ID at the end.

I'm really lost on why its doing this, I dont think I changed anything, I didnt modify the search page or anything. Can anybody help? I cant find the answer anywhere!
issasal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 08.05.2004, 23:24   #2 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 4
issasal is on a distinguished road
Default Re: Searching - Not authorized to view search results

After a couple hours of searching and biting my nails I found a fix somebody posted. More info can be found in this thread:

http://forum.mamboserver.com/viewtop...asc&highlight=


Edit classes/mambo.php at line 1620

/*
function mosMenuCheck( $Itemid, $menu_option, $task, $gid ) {
global $database;
$dblink="index.php?option=$menu_option";
if ($Itemid!="" && $Itemid!=0) {
$database->setQuery( "SELECT access FROM #__menu WHERE id='$Itemid'" );
} else {
if ($task!="") {
$dblink.="&task=$task";
}
$database->setQuery( "SELECT access FROM #__menu WHERE link like '$dblink%'" );
}
$results = $database->loadObjectList();
$access = 0;
//echo "<pre>"; print_r($results); echo "</pre>";
foreach ($results as $result) {
$access = max( $access, $result->access );
}
return ($access <= $gid);
}
*/

with

function mosMenuCheck( $Itemid, $menu_option, $gid ) {
global $database;
$dblink="index.php?option=$menu_option";
if ($Itemid!="" && $Itemid!=0) {
$database->setQuery( "SELECT access FROM #__menu WHERE id='$Itemid'" );
} else {
$database->setQuery( "SELECT access FROM #__menu WHERE link like '$dblink%'" );
}
$results = $database->loadObjectList();
$access = 0;
foreach ($results as $result) {
$access = max( $access, $result->access );
}
return ($access <= $gid);
}
issasal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 15.06.2004, 09:31   #3 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Posts: 2
ashtek is on a distinguished road
Default Re: Searching - Not authorized to view search results

can you post the link again. i am having the same problem.
despite having all links being public, i get the same error message

"You are not authorized to view this resource.
You need to login"

please help!
ashtek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.09.2004, 22:38   #4 (permalink)
Mamber
 
panter011's Avatar
 
Join Date: Apr 2004
Posts: 123
panter011 is an unknown quantity at this point
Send a message via AIM to panter011 Send a message via MSN to panter011 Send a message via Yahoo to panter011
Default Re: Searching - Not authorized to view search results

The instructions above solve part of the problem, because, the articles and news are now working correctly, BUT it interferes with the simpleboard, polls, and docman components, NOW THEY ARE SHOWING "Unauthorized".

So it solves one thing but produce other bug in the other side.
panter011 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06.03.2005, 05:50   #5 (permalink)
Junior Mamber
 
nickm's Avatar
 
Join Date: Feb 2005
Posts: 43
nickm is on a distinguished road
Talking Re: Searching - Not authorized to view search results

I think I fixed it.

Go here: http://www.mambers.com/showthread.ph...084#post103084
nickm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10.09.2005, 00:44   #6 (permalink)
Baby Mamber
 
Join Date: Sep 2005
Posts: 1
agenthayes is on a distinguished road
Default Re: Searching - Not authorized to view search results

Hello,
I have the same issue as Issasal "Whenever I search, then click on a search result, it says "Unauthorized to view this resource, you must log on". When I log in as my admin account and try it, I still get the same message. This occurs for every search item. If I access the item from my site somewhere else it works fine. All my items are public so nobody should need to log in.

One thing I did notice is that the URL that it points to in the search results is a little different than what its suppose to be. Instead of "<domain>content/view/153/2" the search result points to "<domain>content/view/153", its missing the last item ID at the end."

But, my issue is different in that some items do not have a problem. The ok items appear on the search results list with an ending id. The items producing the "unauthorized" message do not have an ending id. I am using Mambo 4.5.1 stable and it does not have a classes directory or else I would apple the reported fix to the mambo.php file.

Search capabilites are vital to this website. Please help! Thanks a Million
agenthayes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.10.2005, 09:55   #7 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 5
tweaked is on a distinguished road
Default Re: Searching - Not authorized to view search results

I am having the same issue... except its not with search. The issue appears to be when a table of links is automatically generated by mambo. I have the issue when i publish the category title, and make that category title linkable. The result is a table of items in that category. All of the results give me an error saying I must login first.

I noticed that the URL has Itemid=0. But that does not appear to be valid.... if I manually change the ItemID # it takes me to the content. It appears that the itemID can be anything except for zero to resolve the issue

It appears this was the same issue as the search issue. The file that needs to be updated is
mamboroot/includes/mambo.php starting on line 2356.

The code listed above resolved the issue

Last edited by tweaked; 07.10.2005 at 17:16.
tweaked is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
You are not authorized to view this resource. Farrukh Mambo 4.5 General Talk 4 11.09.2004 18:43
Not authorized to view search results in 1.0.6? Trevor Mambo 4.5 Bugs 1 07.04.2004 17:17


All times are GMT +2. The time now is 20:38.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.