Announcement

#1 2016-01-06 22:50:14

michaelh99
Member
Texas
2014-08-19
46

You are not authorised to access the requested page

Hello/Hi/Greetings,

I've started running into this message when going to a particular couple of categories.

I recently moved hosts but I don't know for certain if they were wworking before the move and unfortunately didn't find out the problem until after I'd cut the cord to the hold host.

If you go here,
http://www.dragonseye.com/photos/pictur … 763-crafts

and try to view any of the images, you'll get the error in the title.

I've double and triple checked the permissions on that folder and parents and can't find any cases where the general public isn't allowed in.  I've even tried changing the permission settings and changing them back with no change in behavior.

I've also tried disabling all plugins.  No change.

Even admins can't view the pictures.

<time passes>

I just got a possible clue.  This image is viewable
http://www.dragonseye.com/photos/pictur … 763-crafts

This and most of the others are not
http://www.dragonseye.com/photos/pictur … 763-crafts

Could this be a database issue?

I'll check the file permissions...

Piwigo 2.7.4
PHP: 5.5.30
MySQL: 5.5.5-10.0.23-MariaDB

Offline

 

#2 2016-01-06 23:23:18

michaelh99
Member
Texas
2014-08-19
46

Re: You are not authorised to access the requested page

The file/folder permissions look fine.  They match known working images

Offline

 

#3 2016-01-06 23:43:51

michaelh99
Member
Texas
2014-08-19
46

Re: You are not authorised to access the requested page

Don't know if this is significant but when I try to do a synchronization I get the following but no filenames


Notice: Undefined offset: 750 in /home/michael9/public_html/photos/admin/site_update.php on line 153
Warning: Cannot modify header information - headers already sent by (output started at /home/michael9/public_html/photos/admin/site_update.php:153) in /home/michael9/public_html/photos/include/page_header.php on line 101

1 errors during synchronisation

[] PWG-UPDATE-1 (wrong filename)
(no files listed)

Offline

 

#4 2016-01-07 00:44:51

michaelh99
Member
Texas
2014-08-19
46

Re: You are not authorised to access the requested page

I've found that if I have this setting commented out

//$conf['picture_url_style'] = 'file';

I can get to this picture

http://dragonseye.com/photos/picture.ph … tegory/763

With it un-commented (enabled), I can't.  The resulting name is

http://dragonseye.com/photos/picture.ph … tegory/763

It doesn't seem to be a problem with spaces per-se because the following also doesn't work

http://dragonseye.com/photos/picture.ph … tegory/763

Until I comment out the picture_url_style line



For reference my current config settings are:

<?php

/* The file does not exist until some information is entered
below. Once information is entered and saved, the file will be created. */

$conf['upload_form_all_types'] = true;


// permitted characters for files/directories during synchronization
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. éí:()&]+$/';

//$conf['gallery_url'] = 'http://www.dragonseye.com/photos/';

//$conf['question_mark_in_urls'] = false;
//$conf['php_extension_in_urls'] = false;
//$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';

//$conf['send_bcc_mail_webmaster'] = true;

$conf['show_iptc'] = true;
$conf['use_iptc'] = true;

$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'DateTimeOriginal',
  'COMPUTED;ApertureFNumber',
  'FocalLength',
  'ExposureTime',
  'ISO',
  'Flash',
  'Artist',
  'Copyright'
  );


?>

Offline

 

#5 2016-01-07 00:51:34

michaelh99
Member
Texas
2014-08-19
46

Re: You are not authorised to access the requested page

I meant to say in my last post that I'm also on a lightspeed server

Offline

 

#6 2016-01-07 01:00:24

michaelh99
Member
Texas
2014-08-19
46

Re: You are not authorised to access the requested page

*sigh*

So after spamming the forum (sorry) I've "fixed" this myself.  Sort of.

It would seem that the magic settings for me are:

//$conf['question_mark_in_urls'] = false;
//$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
//$conf['picture_url_style'] = 'id';

Before moving to the new host I had:

//$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
//$conf['picture_url_style'] = 'file';

but lightspeed doesn't support multiviews and I was unable to get php_extension_in_urls working through the published .htaccess methods.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact