LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.35k stars 299 forks source link

ConfigurationKeyMissingException -- "landing_owner does not exist in config!" #1672

Closed blubbsy closed 1 year ago

blubbsy commented 1 year ago

Detailed description of the problem [REQUIRED]

After update from 4.6.2 to 4.6.5 i receive an error 500 message "landing_owner does not exist in config!" together with "ConfigurationKeyMissingException". Now i dont understand, why this particular setting should cause an error, because it's just a string for the website as far as i saw it. As far as i could follow the code it is about the landing_subtitle key in the database, which later is translated to landing_owner (is this right), in any case landing_subtitle has a value

I tried first updating via the webUI and after the error came up i first tried executing the composer and artisan commands and as this did not fixed the error i tried it again using the command line (git pull, composer, artisan), but without any change.

Steps to reproduce the issue

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error*

Screenshots image

Output of the diagnostics [REQUIRED]

Diagnostics
-----------
Warning: Dropbox import not working. dropbox_key is empty.
Warning: zend.assertions is disabled although Lychee is in debug mode. For easier debugging code generation for assertions should be enabled.
Info: Latest version of PHP is 8.2
Error: /var/www/adrilaida.de/Lychee/.git (and subdirectories) are not executable, check the permissions

System Information
------------------
Lychee Version (git):                    master (5a4c154) -- Up to date (0 seconds ago).
DB Version:                              4.6.5

composer install:                        --no-dev
APP_ENV:                                 production
APP_DEBUG:                               true

System:                                  Linux
PHP Version:                             8.1.12
PHP User agent:                          Lychee/4 (https://lycheeorg.github.io/)
Timezone:                                Europe/Berlin
Max uploaded file size:                  10240M
Max post size:                           10240M
Max execution time:                      0
SQLite Version:                          3.40.0

exec() Available:                        yes
Imagick Available:                       1
Imagick Enabled:                         1
Imagick Version:                         1691
GD Version:                              2.3.3
Number of foreign key:                   9 found.

Config Information
------------------
version:                                 040605
check_for_updates:                       1
sorting_photos_col:                      taken_at
sorting_photos_order:                    ASC
sorting_albums_col:                      max_taken_at
sorting_albums_order:                    ASC
imagick:                                 1
skip_duplicates:                         0
small_max_width:                         0
small_max_height:                        360
medium_max_width:                        1920
medium_max_height:                       1080
lang:                                    en
layout:                                  1
image_overlay_type:                      date
default_license:                         none
compression_quality:                     90
grants_full_photo_access:                1
delete_imported:                         0
mod_frame_enabled:                       1
mod_frame_refresh:                       30
thumb_2x:                                1
small_2x:                                1
medium_2x:                               1
landing_page_enable:                     0
site_owner:                              xxx
landing_title:                           xxx
landing_subtitle:                        Cats, Dogs & Humans Photography
sm_facebook_url:                         https://www.facebook.com/JohnSmith
sm_flickr_url:                           
sm_twitter_url:                          xxx
sm_instagram_url:                        xxx
sm_youtube_url:                          
landing_background:                      dist/cat.webp
site_title:                              Gallery
footer_show_copyright:                   1
site_copyright_begin:                    2019
site_copyright_end:                      2022
footer_additional_text:                  
footer_show_social_media:                0
public_search:                           0
SL_enable:                               0
SL_for_admin:                            0
public_recent:                           0
recent_age:                              1
public_starred:                          0
grants_download:                         0
photos_wraparound:                       1
map_display:                             0
zip64:                                   1
map_display_public:                      0
map_provider:                            Wikimedia
force_32bit_ids:                         0
map_include_subalbums:                   0
update_check_every_days:                 3
has_exiftool:                            0
share_button_visible:                    0
import_via_symlink:                      0
has_ffmpeg:                              1
location_decoding:                       0
location_decoding_timeout:               30
location_show:                           1
location_show_public:                    0
rss_enable:                              0
rss_recent_days:                         7
rss_max_items:                           100
prefer_available_xmp_metadata:           0
editor_enabled:                          1
lossless_optimization:                   0
swipe_tolerance_x:                       150
swipe_tolerance_y:                       250
local_takestamp_video_formats:           .avi|.mov
log_max_num_line:                        1000
unlock_password_photos_with_url_param:   0
nsfw_visible:                            1
nsfw_blur:                               0
nsfw_warning:                            0
nsfw_warning_admin:                      0
nsfw_banner_override:                    
map_display_direction:                   1
album_subtitle_type:                     oldstyle
upload_processing_limit:                 4
public_photos_hidden:                    1
new_photos_notification:                 0
legacy_id_redirection:                   1
zip_deflate_level:                       6
SA_enabled:                              1
default_album_protection:                1
allow_username_change:                   1
### Browser and system
ildyria commented 1 year ago

So this is there at version 4.6.2 https://github.com/LycheeOrg/Lychee/blob/296db8429529a57189e1b11750a3d7fc16d572de/app/ModelFunctions/ConfigFunctions.php#L23

My guess is that some files are cached and are now messing with your side. can you try to do: artisan cache:clear ?

blubbsy commented 1 year ago

ahhh, it was soemthing related to the cache apperently. after using cache:clear it works. Thanks!

ildyria commented 1 year ago

Fixed :)