Unable to login into admin panel of Gallery 3.1.5 on PHP 7.0
Hi,
I am unable to login into the admin panel of Gallery 3.1.5. Getting following error on PHP 7.0 and Mysql 5.5
2021-11-15 08:00:28 +00:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN [[path]]/gallery315/modules/gallery/helpers/access.php [ 202 ] #0 [[path]]/gallery315/modules/gallery/helpers/access.php(425): access_Core::forbidden() #1 [[path]]/gallery315/modules/gallery/controllers/login.php(31): access_Core::verify_csrf() #2 [internal function]: Login_Controller->auth_ajax() #3 [[path]]/gallery315/system/core/Kohana.php(302): ReflectionMethod->invokeArgs(Object(Login_Controller), Array) #4 [[path]]/gallery315/system/core/Event.php(208): Kohana_Core::instance(NULL) #5 [[path]]/gallery315/application/Bootstrap.php(67): Event_Core::run('system.execute') #6 [[path]]/gallery315/index.php(124): require('/home/soft/publ...') #7 {main} 2021-11-15 08:00:28 +00:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
However I can successfully login when I update my PHP to 7.1 The README.md file states the script requires 7.0 version. Is the requirement of PHP defined in README.md file is wrong ? OR am I doing something wrong ?
@bwdutton Any update on this ?
I installed a fresh Ubuntu Xenial system which runs PHP 7.0.33, I was able to install and upload a photo. What OS are you using? Are there any other changes between the PHP versions you are installing?
Hi @bwdutton
I am using CentOS Linux release 7.9.2009 (Core) version and PHP 7.0.33
Hi,
Just wanted to follow up on this ?
Hi,
Also I wanted to add it shows module update in the following modules when we access admin panel.
Comment Info
Because it has updated wrong values in database [[prefix]]modules table. i.e Comment --> 7 and Info --> 2 whereas the values should be 8 and 3 respectively.
Version number stated is also wrong. i.e it shows 3.0+ whereas version is 3.1.5 as defined on github release page