Team, I can already hear your “you shoot yourself in the foot” comments, but … I upgraded my server’s version from Fedora 34 to 35, which brings with it php 8.0.14… and part of gallery3 broke. Any guidance will be appreciated re: (a) is this upgrade the reason for my woes, (b) if so, any chance of seeing an updated ‘revival’ version to embrace php8 in the future, (c) any recommendation, other than going back to php 7, if that is the cause?
Thanks in advance for your comments, and apologies as this is probably known and obvious, but I am out of my depth.
Symptoms: adding a new photo to a folder gives a ‘server responded with 500 code’ error; the photo is copied to its right place, however, but the thumbs and the resizes are not created. Attempts to create them via admin do not work (task stalls). Everything else seems to work fine.
Environment: Gallery3 ‘revival’ 3.1.5, linux 5.15.7-200 (Fedora 35), MariaDB 10.5.13, graphics Imagemagick (I tried with GD and GraphicsMagick too: same symptoms), Apache, and, as said, php 8.0.14. Under Fedora 34 with php7, similar environment, all worked well as it had for many years in successive Fedora versions.
--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/c6952d76-31c8-4114-a8f3-32ea5d3f559bn%40googlegroups.com.
Brad & J.R., thanks for your messages.
I forgot to report about logs in my previous message, sorry. I did add the ‘local.php’ file under var/ as per the gallery3 website instructions; please see below the contents of that file and of the logs themselves. The logs of Apache, MariaDB and php-fpm have no entry that suggests a problem.
If
you (Brad) think that g3 should work under php8 I'll keep
digging ... is there an easy way I could get my hands around the
docker you mention, with php8 that works fine?
Thanks again and Happy Holidays to y’all!
➜ ~ cat /usr/share/gallery3/var/local.php
<? defined("SYSPATH") or die("No direct script access");
error_reporting(E_ALL);
ini_set('display_errors', true);
date_default_timezone_get();
➜ ~ cat /usr/share/gallery3/var/logs/2021-12-30.log.php
<?php defined('SYSPATH') or die('No direct script access.'); ?>
You received this message because you are subscribed to a topic in the Google Groups "Gallery 3 Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gallery-3-users/30ZGaVsNMtw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/99c27344-b96e-49cb-a0ec-8344c18f5456n%40googlegroups.com.
-- // Gerardo L. Cahn <ger...@niuk.org> // linux, mac ... and, well, yes, // ((windows too)).
I finally made time to dig a bit deeper into my problem (g3 broken after upgrading my server). I now got an actual (interactive) error message (see attachment), and the same info is recorded in the /var/logs/ folder... thanks in advance for any guidance you could provide!
Gerardo
log contents:
2022-01-08 23:35:40 -05:00 --- error: Kohana_Exception [ 403 ]:
@todo FORBIDDEN
/usr/share/gallery3/modules/gallery/helpers/access.php [ 202 ]
#0 /usr/share/gallery3/modules/gallery/helpers/access.php(425):
access_Core::forbidden()
#1
/usr/share/gallery3/modules/gallery/controllers/admin_maintenance.php(66):
access_Core::verify_csrf()
#2 /usr/share/gallery3/modules/gallery/controllers/admin.php(62):
Admin_Maintenance_Controller->start()
#3 [internal function]: Admin_Controller->__call()
#4 /usr/share/gallery3/system/core/Kohana.php(302):
ReflectionMethod->invokeArgs()
#5 /usr/share/gallery3/system/core/Event.php(208):
Kohana_Core::instance()
#6 /usr/share/gallery3/application/Bootstrap.php(67):
Event_Core::run()
#7 /usr/share/gallery3/index.php(124):
require('/usr/share/gall...')
#8 {main}
2022-01-08 23:35:40 -05:00 --- error: Missing messages entry
kohana/core.errors.403 for message kohana/core
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/6f26c862-36a4-43fd-acb5-d5faaa235bffn%40googlegroups.com.
After learning from Brad and JR that my problems were not caused
by php8 as i had assumed, I reinstalled 3.1.5 and started adding
themes and modules in steps until it failed. This is what I
found:
--In my current environment, activating module "image_optimizer"
causes the failure I reported: thumbs not created, its tasks
stalled. i don't know what changed in Fedora 35 to cause this
loss-of-session/ssl thing that Brad mentions.
--Additionally, module "arrow_nav" causes theme "greydragon" to
crash; not sure if other themes would also fail.
I disabled both and am up and running again. This extends the
life of my gallery for the foreseeable future, so I am satisfied.
I am sorry I cannot offer a more complete solution but I report
this as is in case somebody else has a similar problem.
Incidentally, while I was thinking that gallery3 was dead for me I
installed "piwigo", making it use the gallery3 albums in-place,
and spent some time playing with it. It works fine, but i prefer
G3, so I am happy having sorted this bump, even if at a small loss
of functionality.
Which takes me to the real reason for this email: to extend my
thanks to JR, Brad and everybody else involved in supporting and
adding value to this system and this group. I would not have
found this walk-around without your input; I would have just
installed the next best solution, and be worse off for it. Thank
you, guys. Never mind user attitude: stand tall. You are making
the internet better.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/f663ce0e-befc-4f92-a31d-d4694e42d230n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/c9f584c8-de53-f6d8-2bb8-2eb26ad0729a%40Gmail.com.
MODPATH/gallery/helpers/gallery_theme.php[ 41 ]
MODPATH/gallery/libraries/Theme_View.php[ 236 ] » gallery_theme_Core::head()
DOCROOT/themes/wind/views/page.html.php[ 56 ] » Theme_View_Core->__call()
SYSPATH/libraries/View.php[ 318 ] » include( arguments )
SYSPATH/libraries/View.php[ 260 ] » View_Core->load_view()
MODPATH/gallery/libraries/MY_View.php[ 75 ] » View_Core->render()
SYSPATH/libraries/View.php[ 226 ] » View->render()
MODPATH/gallery/controllers/albums.php[ 77 ] » View_Core->__toString()
MODPATH/gallery/controllers/albums.php[ 22 ] » Albums_Controller->show()
{PHP internal call} » Albums_Controller->index()
SYSPATH/core/Kohana.php[ 302 ] » ReflectionMethod->invokeArgs()
SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance()
APPPATH/Bootstrap.php[ 67 ] » Event_Core::run()
DOCROOT/index.php[ 124 ] » require( arguments )
MODPATH/gallery/controllers/albums.php[ 63 ]
MODPATH/gallery/controllers/albums.php[ 22 ] » Albums_Controller->show()
{PHP internal call} » Albums_Controller->index()
SYSPATH/core/Kohana.php[ 302 ] » ReflectionMethod->invokeArgs()
SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance()
APPPATH/Bootstrap.php[ 67 ] » Event_Core::run()
DOCROOT/index.php[ 124 ] » require( arguments )
--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/46b80a08-3f77-4427-bc4e-1f4f089f8ddan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/091e83a2-00ba-4963-83e7-f1e5fe1dad02n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/091e83a2-00ba-4963-83e7-f1e5fe1dad02n%40googlegroups.com.