Subcategory access control

Phoca Gallery - image gallery extension
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Subcategory access control

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory access control

Post by Jan »

Please let me know your site...

Did you set the rights for the category correctly.

What error do you get?

Jan
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory access control

Post 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
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory access control

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory access control

Post 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
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory access control

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory access control

Post by Jan »

yes, maybe this will be the best solution...
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory access control

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Subcategory access control

Post by Jan »

the problem is, we need to get some error message to know what can be wrong :(
If you find Phoca extensions useful, please support the project
marcus178
Phoca Member
Phoca Member
Posts: 24
Joined: 26 Jan 2009, 21:23

Re: Subcategory access control

Post 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.
Post Reply