gallery3
gallery3 copied to clipboard
gallery 3 admin page not working?
Kohana_Exception [ Framework Error ]: The requested views, admin.html, could not be found
SYSPATH/core/Kohana.php[ 781 ]
776 if ($found === NULL) 777 { 778 if ($required === TRUE) 779 { 780 // If the file is required, throw an exception 781 throw new Kohana_Exception('The requested :resource:, :file:, could not be found', array(':resource:' => __($directory), ':file:' =>$filename)); 782 } 783 else 784 { 785 // Nothing was found, return FALSE 786 $found = FALSE; SYSPATH/libraries/View.php[ 83 ] » Kohana_Core::find_file( arguments )
SYSPATH/libraries/View.php[ 49 ] » View_Core->set_filename( arguments )
MODPATH/gallery/libraries/MY_View.php[ 62 ] » View_Core->__construct( arguments )
MODPATH/gallery/libraries/Admin_View.php[ 30 ] » View->__construct( arguments )
MODPATH/user/controllers/admin_users.php[ 22 ] » Admin_View_Core->__construct( arguments )
MODPATH/gallery/controllers/admin.php[ 62 ] » Admin_Users_Controller->index()
{PHP internal call} » Admin_Controller->__call( arguments )
SYSPATH/core/Kohana.php[ 302 ] » ReflectionMethod->invokeArgs( arguments )
SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance( arguments )
APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments )
DOCROOT/index.php[ 124 ] » require( arguments )
Platform information Host name: infong1569 Operating system: Linux 4.4.302-icpu-083 Apache: Unknown PHP: 7.4.28 MySQL: 5.7.36-log Server load: 18.28 20.78 21.19 Graphics toolkit: imagemagick Gallery stats Version: 3.0+ (branch master, build 434) Albums: 1 Photos: 2
You need to modify https://github.com/bwdutton/gallery3/blob/master/.htaccess At the end of the file uncomment :
# <IfModule mod_rewrite.c>
# Options +FollowSymLinks
# RewriteEngine On
# RewriteBase /
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^index.php/(.*) $1 [QSA,R,L]
# </IfModule>