Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in upgrade 4.3.0 to 4.3.4 | roduction.ERROR: Non-static method App\Assets\Helpers::cacheBusting() should not be called statically #1059

Closed
GaneshKandu opened this issue Jul 12, 2021 · 4 comments · Fixed by #1060
Labels
bug Something isn't working

Comments

@GaneshKandu
Copy link
Contributor

Detailed description of the problem [REQUIRED]

Hi

I am getting error after success.

[2021-07-12 07:20:18] production.ERROR: Non-static method App\Assets\Helpers::cacheBusting() should not be called statically (View: resources/views/gallery.blade.php) {"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Non-static method App\\Assets\\Helpers::cacheBusting() should not be called statically (View: resources/views/gallery.blade.php) at storage/framework/views/0d51f105e4c0ef1f180c38e580c08b529b9fddb7.php:5)
[stacktrace]

Steps to reproduce the issue

Steps to reproduce the behavior:

  1. go to front page after upgrade.

Output of the diagnostics [REQUIRED]




Diagnostics
-----------
Warning: Dropbox import not working. dropbox_key is empty.
Warning: You may experience problems when uploading a photo of large size. Take a look in the FAQ for details.
Warning: You may experience problems when uploading a photos of large size. Take a look in the FAQ for details.
Warning: You may experience problems when uploading a large amount of photos. Take a look in the FAQ for details.
Warning: Pictures that are rotated lose their metadata! Please install Imagick to avoid that.
Info: Latest version of PHP is 8

System Information
------------------
Lychee Version (release):        4.3.4
DB Version:                      4.3.4

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

System:                          Linux
PHP Version:                     7.4
Max uploaded file size:          20M
Max post size:                   8M
MySQL Version:                   5.7.33

Imagick:                         -
Imagick Active:                  1
Imagick Version:                 -
GD Version:                      bundled (2.1.0 compatible)

Config Information
------------------
version:                         040304
check_for_updates:               0
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:              desc
default_license:                 none
compression_quality:             90
full_photo:                      1
delete_imported:                 0
Mod_Frame:                       1
Mod_Frame_refresh:               30
thumb_2x:                        1
small_2x:                        1
medium_2x:                       1
landing_page_enable:             0
landing_owner:                   John Smith
landing_title:                   John Smith
landing_subtitle:                Cats, Dogs & Humans Photography
landing_facebook:                https://www.facebook.com/JohnSmith
landing_flickr:                  https://www.flickr.com/JohnSmith
landing_twitter:                 https://www.twitter.com/JohnSmith
landing_instagram:               https://instagram.com/JohnSmith
landing_youtube:                 https://www.youtube.com/JohnSmith
landing_background:              dist/cat.jpg
site_title:                      Lychee v4
site_copyright_enable:           1
site_copyright_begin:            2019
site_copyright_end:              2019
additional_footer_text:          
display_social_in_gallery:       0
public_search:                   0
SL_enable:                       0
SL_for_admin:                    0
public_recent:                   0
recent_age:                      1
public_starred:                  0
downloadable:                    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:                      0
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
map_display_direction:           1
album_subtitle_type:             oldstyle
upload_processing_limit:         4
public_photos_hidden:            1

Browser and system

Firefox 90.0
Centos 6 Linux

@ildyria
Copy link
Member

ildyria commented Jul 12, 2021

Okay, this is probably due to the fact that we now use Facades and the laravel installation does not recognize this new one due to... some caching mechanism?

I don't have such errors on my side. 🤔

@ildyria ildyria added the bug Something isn't working label Jul 12, 2021
@ildyria
Copy link
Member

ildyria commented Jul 12, 2021

I'll try to have a look tonight.

GaneshKandu added a commit to GaneshKandu/Lychee that referenced this issue Jul 12, 2021
…t be called statically

LycheeOrg#1059
Issue in upgrade 4.3.0 to 4.3.4 | roduction.ERROR: Non-static method App\Assets\Helpers::cacheBusting() should not be called statically
Adding below line works 
```php
Artisan::call('view:clear');
```
@ildyria
Copy link
Member

ildyria commented Jul 12, 2021

Thank you so much for your Pull Request. 👍

@GaneshKandu
Copy link
Contributor Author

GaneshKandu commented Jul 12, 2021

Your welcome

ildyria pushed a commit that referenced this issue Jul 12, 2021
#1059 : Issue in upgrade 4.3.0 to 4.3.4 | production.ERROR: Non-static method App\Assets\Helpers::cacheBusting() should not be called statically
Adding below line works 
```php
Artisan::call('view:clear');
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants