nextcloud / unsplash

πŸ“ΈπŸ”€β˜οΈ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
92 stars 23 forks source link

License.php file cannot be found by PHP #114

Open kevinkuan1969 opened 1 year ago

kevinkuan1969 commented 1 year ago

Describe the bug: Found the error always display at the Log many times said that no such License.php found at

Error: include(): Failed opening '/var/www/nextcloud/apps/unsplash/templates/partials/license.php'

Have check the directory only found below:

newhinton commented 1 year ago

Additional logs: image I am also getting these errors in my logs. When I check the folder path specified I get the following files.

-rw-r--r-- 1 www-data www-data  451 Dec 21 06:46 licenseUnsplash.php
-rw-r--r-- 1 www-data www-data  450 Dec 21 06:46 licenseWallhavenCC.php
-rw-r--r-- 1 www-data www-data  341 Dec 21 06:46 licenseWikimediaCommons.php

Thinking about renaming one of the to license and see what happens.

Also my splash screens are working as they should. Just getting the error logs.

EDIT: Confirmed that Im using the WallhavenCC splash screens. I made a copy of the licenseWallhavenCC.php and named it license.php. Now the errors do not exist.

https://github.com/nextcloud/unsplash/issues/113#issuecomment-1371885373 by @tonytonyistony

kevinkuan1969 commented 1 year ago

Thank you very much

masterwishx commented 1 year ago

The problem still not fixed in v26 ?

masterwishx commented 1 year ago

renamed licenseUnsplash.php to license.php but still have error :

image

newhinton commented 1 year ago

Renaming alone wont help, did you also fix the permissions?

Generally, i cant really reproduce this issue because my instance (nc25) does not show this issue. I will have to investigate why that is the case. Also i will create an empty file that fixes this.

masterwishx commented 1 year ago

No what should i set permitions ?

masterwishx commented 1 year ago

im using linuxserver/nextcloud in Unraid

image

dmedi011 commented 1 year ago

getting the same errors after updating Nextcloud

asheroto commented 1 year ago

Still receiving this error as of 2023-04-24

image

masterwishx commented 1 year ago

Also still have same error, not sure some one was working on fix...