Page 1 of 2
Subcategory access control
Posted: 26 Jan 2009, 21:25
by marcus178
This doesn't seem to work when applying access control to a subcategory. On my installation it has the strange effect of show the category making it an sef link even though sef is disabled
Re: Subcategory access control
Posted: 29 Jan 2009, 14:20
by Jan
Please let me know your site...
Did you set the rights for the category correctly.
What error do you get?
Jan
Re: Subcategory access control
Posted: 29 Jan 2009, 14:41
by marcus178
Ok goto this link
http://www.keyreflections.co.uk/v2/inde ... &Itemid=15
The folder 'Test' displayed is a subcategory at the moment the Access User rights at set to a particular user so it shouldn't be displayed. The access Level is also set to registered.
You will also notice that it has an sef url even though sef isn't on.
Cheers
Re: Subcategory access control
Posted: 31 Jan 2009, 11:03
by marcus178
Did you manage to look at this? here's a new link as website has moved
http://www.keyreflections.co.uk/index.p ... &Itemid=15
Re: Subcategory access control
Posted: 02 Feb 2009, 00:20
by Jan
hi, maybe there is some error message on your site, try to enable error reporting (if you are able) in php so you can see what is wrong there ???
Jan
Re: Subcategory access control
Posted: 02 Feb 2009, 11:49
by marcus178
I can't activate error reporting but I'm pretty sure it's a problem on the server as I have this gallery on a different server and it works fine. Been doing it for a friend and the hosting company don't seem to know what they are doing as php wasn't working at all at first. Moving servers asap.
Re: Subcategory access control
Posted: 03 Feb 2009, 00:32
by Jan
yes, maybe this will be the best solution...
Re: Subcategory access control
Posted: 07 Feb 2009, 11:43
by marcus178
Ok I have moved to a different server and still have the same problem. I have another site using 2.0.2 on the same server and this works fine.
Re: Subcategory access control
Posted: 09 Feb 2009, 00:56
by Jan
the problem is, we need to get some error message to know what can be wrong

Re: Subcategory access control
Posted: 09 Feb 2009, 10:11
by marcus178
There is no error message and I'm on a shared host so to get error report I have to include the following script
Code: Select all
error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");
function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
{
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");
$errlevel=$errortype[$errno];
//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename:
$linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);
if($errno!=2 && $errno!=8) {
//Terminate script if fatal error
die("A fatal error has occurred. Script execution has been aborted");
}
}
which I included in phocagallery.php and just give this error on the website
A fatal error has occurred. Script execution has been aborted
and in the error log
Code: Select all
"09 Feb 2009 09:09:38","keyreflections/libraries/loader.php:
186","() Non-static method JLoader::import() should not be called statically"
Not sure what else I can do.