#1 2026-05-23 10:22:17

Fusac
Member
2026-05-23
5

Error message: You are not authorised to access the requested page

Hello,

I have issues with my Piwigo installation.
I get Error message: "You are not authorised to access the requested page" when trying to save setting in administration. e.g. in "Configuration->Options->Display" clicking on "Activate icon "Display only recently posted photos"" and "Save settings" will generate this error massage and the change is not saved. Same error message is shown when updating e.g. user settings like "photos per page".

What could it be?

Recent changes:
- upgrade to  16.4.0
- subdomain change



Environment

    Piwigo 16.4.0 Check for upgrade
    Installed on 31 May 2025, 11 months 3 weeks 1 day ago
    Operating system: Linux
    Container info: (unofficial) Unknown
    PHP: 8.4.21 (Show info) [2026-05-23 10:12:56]
    MySQL: 10.11.16-MariaDB-ubu2204-log [2026-05-23 10:12:56]
    Graphics Library: External ImageMagick 6.9.11-60
    Cache size 0 Mo   calculated 10 months ago Refresh

Activated plugin list 8

    Batch Downloader
    Extended Description
    FCK Editor
    Language Switch
    LocalFiles Editor
    Perso Footer
    Personal Favicon
    PWG Stuffs

Offline

 

#2 2026-05-23 14:14:35

polowigo
Member
France
2022-08-06
45

Re: Error message: You are not authorised to access the requested page

Hi,

Fusac wrote:

Recent changes:
- upgrade to  16.4.0
- subdomain change

I don't know but I wonder if you shouldn't delete the old cookies

Offline

 

#3 2026-05-23 18:47:03

Fusac
Member
2026-05-23
5

Re: Error message: You are not authorised to access the requested page

Hi,
thank you for answer.
I have deleted cache in Piwigo administration and testing in Private window in Firefox.  Old cookies is not the cause.

The log in is also not working properly. After inserting log in data, same log in pages is loaded. If I reload the page, correct administration page is loaded.

Any Idea what could it be?

Offline

 

#4 2026-05-27 19:09:17

zorek
Member
2026-05-18
11

Re: Error message: You are not authorised to access the requested page

...seems the same is being handled in the https://piwigo.org/forum/viewtopic.php? … 27#p194727 and https://piwigo.org/forum/viewtopic.php?id=33431

Last edited by zorek (2026-05-27 19:09:44)

Offline

 

#5 2026-05-27 22:04:52

Fusac
Member
2026-05-23
5

Re: Error message: You are not authorised to access the requested page

Hi,
adding below line

$conf['session_use_ip_address'] = false;

to

local/config/config.inc.php


helped to solve the issue for me.

It may be a bug in Piwigo. Please share it with developers.

Offline

 

#6 2026-05-28 23:08:58

zorek
Member
2026-05-18
11

Re: Error message: You are not authorised to access the requested page

Hi, this file does not exist in my installation - shall I create it with the one line mentioned in your comment?
I do not have access to the developers :). I hope they do browse these forums for issues.

Offline

 

#7 2026-05-28 23:18:56

zorek
Member
2026-05-18
11

Re: Error message: You are not authorised to access the requested page

I've tried to create the file with the content:
<?php>
$conf['session_use_ip_address'] = false;
<?>

...and my piwigo installation started to return HTTP 500

Offline

 

#8 2026-05-29 06:32:26

Fusac
Member
2026-05-23
5

Re: Error message: You are not authorised to access the requested page

Hi,
the file local/config/config.inc.php shoudl be there after Piwigo installation. Adjust the file content to:

<?php
$conf['session_use_ip_address'] = false;
?>

Offline

 

#9 2026-05-29 16:02:34

OHappyDay
Member
2023-02-08
199

Re: Error message: You are not authorised to access the requested page

Zorek: you php code is incorrect. Fusac gave the correct version.

You can use the LocalFilesEditor plugin to maintain the content of the said file.

Offline

 

#10 2026-05-29 17:16:05

zorek
Member
2026-05-18
11

Re: Error message: You are not authorised to access the requested page

Works, thanks for correcting my typos :). I am not that familiar with PHP.
The file was not there at all - adding it with the recommended content seems to have resolved the issue.
Thanks a lot!

Offline

 

Board footer

Powered by FluxBB