Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Installation Check says Session NOT available...
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=6017
Page 1 of 1

Author:  sota [ 29. Mar 2019, 04:48 ]
Post subject:  Installation Check says Session NOT available...

As the subject says, installation check is telling me that Session is 'Not Available', which probably explains my recent and sudden problem with my gallery not working properly (constantly asking me to log in, horribly slow performance.) The " - session.save_path" is populated and files are appearing, but I'm still having problems. How do I fix the 'not available' issue?

Thanks!

eta: details of the server...

Code:
PHP version >= 4.3.0   Yes (5.6.15)
  - XML support   Available
  - GD lib support   Available
  - GD lib >= 2.0   Yes (2.1.0)
  - imagecreatetruecolor   Available
  - Memory limit   Very Good (128M)
  - Max resolution   ~ 5089 x 3821
  - Rotate available   Available
  - Text watermark   Available
  - Remote jpg support   Available
  - File Uploads   Available
     - Upload max filesize   2M - Resize images > 2M (howto)
Session   Not available[
  - session.save_path   G:\xampp\tmp
Javascript   Available
fsockopen (howto)   Available
Image Magick Support   Not available
ffmpeg Support   Not available
ffmpeg video convert   Not available
    
Server name   localhost

Author:  TinyWebGallery [ 29. Mar 2019, 22:30 ]
Post subject:  Re: Installation Check says Session NOT available...

It is slow because in the session is the cache. This is now not available anymore. What does happen if you clean the tmp dir? are this really sessions from the gallery?

Best, Michael

Author:  sota [ 31. Mar 2019, 01:43 ]
Post subject:  Re: Installation Check says Session NOT available...

I'd gone through and cleaned up all the temp and log files, thinking one of those was being troublesome.
Turned out, the wife uploaded a bunch of pictures the other day, made a folder with a "!" in the name, and it caused the system to barf.
Figured it out by creating a new gallery, moving the pictures folder to it, saw the same problem, then pulled all the folders and added them back in tree style, until I drilled down to find a folder with "!" in the name and killed it.
Now it works.

Also... TWG doesn't seem to like me having > 38k images in 195GB of data, at least on inital page view. Any way I can speed that up?

Author:  TinyWebGallery [ 31. Mar 2019, 23:11 ]
Post subject:  Re: Installation Check says Session NOT available...

Interesting. Not sure why a ! would kill this. If you need a ! please use a foldername.txt for it.

195 GB of data? 38k of images.

See
http://www.tinywebgallery.com/en/faq.php#h45

There are a couple of things you can optimize. The big point is that you cannot use features where the whole tree is checked. This are simply too many images for this!

Bet, Michael

Author:  sota [ 2. Apr 2019, 05:02 ]
Post subject:  Re: Installation Check says Session NOT available...

I can only report my difficulties and my findings when I locate a "solution." :D
Apparently a ! in a folder name causes issues, at least on my setup.

Also I added the following to the "Additional" tab:
$cache_dirs = true;
$show_counter_in_jstree=false;
$show_number_of_pic = false;
$show_count_views = false;
$use_random_image_for_folder=false;

I already had...
$use_cache_with_dir = true;
set, so i'll see if that brings up initial performance or not.

eta: also Debug keeps catching these 4 errors as a group
04.02.2019 3:39:40 (en) - ERROR 2 in G:\xampp\htdocs\twg\inc\readxml.inc.php, line 676: fopen(): Filename cannot be empty
04.02.2019 3:39:40 (en) - Please check the file: . Seems php cannot read/write/create it properly. TWG tries to rename the file to .bak
04.02.2019 3:39:40 (en) - ERROR 2 in G:\xampp\htdocs\twg\inc\readxml.inc.php, line 781: rename(,.bak): Invalid argument
04.02.2019 3:39:40 (en) - ERROR 2 in G:\xampp\htdocs\twg\inc\readxml.inc.php, line 607: Invalid argument supplied for foreach()
No idea where to even look to figure out what's causing them.

Author:  TinyWebGallery [ 2. Apr 2019, 08:32 ]
Post subject:  Re: Installation Check says Session NOT available...

So simply don't use ! in directory names.

$use_cache_with_dir = true;
is a good idea because otherwise you have 76k cace files in one folder!

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/