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

No Cache Files created #15

Closed
garv3 opened this issue Aug 1, 2022 · 7 comments
Closed

No Cache Files created #15

garv3 opened this issue Aug 1, 2022 · 7 comments

Comments

@garv3
Copy link

garv3 commented Aug 1, 2022

The system does create the cache folders but no subfolders ("400x400" for example) or any cached images.
The thumbnails are not shown and only the images themselves work when opened.

Apache2 server running PHP 8 with GD support and Exif enabled.

Why does the system not create any thumbnails?

@garv3 garv3 changed the title No Cache files created No Cache Files created Aug 1, 2022
@david-novafacile
Copy link
Contributor

What kind of webhosting do you use? Webhosting provider or own server?

Is it possible to open the albums (with the missing thumbnails)?

Is novaGallery installed with an own (sub)domain or in a subfolder of a (sub)domain?

Is htaccess configuration enabled and set?

@PolloEnCubitos
Copy link

Same problem here,

Using Nxing, I cant open the albums mission thumbails, installed directly on the nginx html folder and deleting the default stuff
My own server

@PolloEnCubitos
Copy link

Also happens with apache

@david-novafacile
Copy link
Contributor

Hi,

this is almost the same issue on self installed server: Not complete installed server setup for using php with common features.

On Apache missing:

  • mod rewrite
  • htaccess support

Same on nginx, but there you need to set the rewrite settings in config (depending on your setup) because nginx doesn't support htaccess. Here an example for a possible configuration: #12 (comment)

Sometimes it's an permissions issue. PHP/Apache/nginx must have the rights to write in the gallery folder. Usually everything there is owned by www-data and php/apache/nginx are running with www-data. But this depends on your personal server setup and requirements.

@PolloEnCubitos
Copy link

Already do that and nothing tho, im using aarch64 processor so idk if sometimes of the php changes

@david-novafacile
Copy link
Contributor

david-novafacile commented Aug 28, 2022

I'm sorry but I can't test this server configuration. Maybe it's a permission setting:

After adding/uploading an album. Who is the owner of the directory of the album?

Maybe your system is a bit more restricted. You can try this:

Cange in /nova-base/lib/Image.php the dir permission on line 150 to 0775 or 0755. Maybe 0777 ist to "open" for your server configuration

Change

mkdir(self::$cacheDir, 0777, true);

to

mkdir(self::$cacheDir, 0775, true);

If this doesn't help:

Is it possible to use an other php script, that uses mod rewrite and file writing rights? E.g. Bludit CMS?

Which PHP 8 version do you use?

@david-novafacile
Copy link
Contributor

seems to be solved...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants