Skip to content

Can't load admin pages when this theme is enabled. #408

@tuxgirl

Description

@tuxgirl

Hi!
If I have bootstrap-darkroom enabled, I can't load the admin pages page for my piwigo instance. It returns a 502 from nginx. If I tail the nginx logs from piwigo while attempting to load the admin.php page, I receive:

2025/11/04 19:49:37 [error] 273#273: *1176 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "meta_ref_enabled" in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 39; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 39; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 128; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 128; PHP message: PHP Warning:  Attempt to read property "bootstrap_theme" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 128; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 135; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 135; PHP message: PHP Warning:  Attempt to read property "bootstrap_theme" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 135; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 135; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 135; PHP message: PHP Warning:  Attempt to read property "bootstrap_theme" on null in /config/www/_data/templates_c/1yju0id^31d431bc39ca
2025/11/04 19:49:37 [error] 273#273: *1176 FastCGI sent in stderr: "c85814c64f53de6c_0.file.header.tpl.php on line 167; PHP message: PHP Warning:  Attempt to read property "bootstrap_theme" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 167; PHP message: PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 167; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 357; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 357; PHP message: PHP Warning:  Attempt to read property "page_header" on null in /config/www/_data/templates_c/1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php on line 357; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^41418a2f246909bfd4bed5e5a2aa65e1deca6e21_0.file.redirect.tpl.php on line 24; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^41418a2f246909bfd4bed5e5a2aa65e1deca6e21_0.file.redirect.tpl.php on line 24; PHP message: PHP Warning:  Attempt to read property "fluid_width" on null in /config/www/_data/templates_c/1yju0id^41418a2f246909bfd4bed5e5a2aa65e1deca6e21_0.file.redirect.tpl.php on line 24; PHP message: PHP Warning:  Undefined array key "theme_config" in /config/www/_data/templates_c/1yju0id^41418a2f246909bfd4bed5e5a2aa65e1deca6e21_0.file.redirect.tpl.php on line 29; PHP message: PHP Warning:  Attempt to read property "value" on null in /config/www/_data/templates_c/1yju0id^41418a2f246909bfd4bed5e5a2aa65e1deca6e21_0.file.redirect.tpl.php on line 29; PHP message: PHP Warnin
2025/11/04 19:49:37 [error] 273#273: *1176 upstream sent too big header while reading response header from upstream, client: 10.89.2.29, server: _, request: "GET /admin.php HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "liquidfortress.com"

If I comment out lines 167-169 and 171 of 1yju0id^31d431bc39caa6c246e67d7bc85814c64f53de6c_0.file.header.tpl.php, I am able to load the admin.php page (although it flashes some php errors in the process), but I've found that this change gets overwritten somehow regularly (appears to be when I log out of being an admin?).
The problem appears to be with the sign in page (identification.php).

I am currently on version 15.7.0 of piwigo, running in a podman container with mariadb. It looks like I'm using version 15.d of Bootstrap-Darkroom.

I do have some custom CSS. I don't think it's causing the problem, but this is what it is:

/* this will turn off the darkening of the hero image */
.page-header:before {
    background-color: transparent!important; 
}

/* move the text to where you want it in the hero image */

.page-header > .container > .content-center {
  max-width: 800px;
  top: 30%;
  /* left: 20%; */
}


/* Make the text in the top header white instead of grey */
p {
  color: #ffffff;
}

pwsp__bg {
background: #222222;
}

I would love any assistance I can get in resolving this! I really like the theme, and have it working the way I want for my website. It's just a pain having to go in and comment out lines of php every time I want to do anything as admin is troublesome.

Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions