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

error on simple and normal view of TWGXplorer
https://www.tinywebgallery.com/forum/viewtopic.php?f=10&t=1009
Page 1 of 1

Author:  MDC [ 22. Apr 2007, 17:55 ]
Post subject:  error on simple and normal view of TWGXplorer

I just installed TWG on my server without any problems. I have registered the program and am awaiting finalization of my registration.

When I enter the admin area, and on the Simple View and Normal View of the TWGXplorer, I see the following error message:

Fatal error: Out of memory (allocated 2097152) (tried to allocate -1 bytes) in /home/mike0311/public_html/twg16/admin/_include/fun_list.php on line 615

What should I do?

Thanks for the help.

Author:  TinyWebGallery [ 22. Apr 2007, 21:39 ]
Post subject: 

can you please post this line?

Because my local version is already slightly different.

And how many php memory do you have?
check the info page.

/Michael

Author:  MDC [ 23. Apr 2007, 06:22 ]
Post subject:  error on simple and normal view of TWGXplorer

Michael,

line 615 of fun_list.php is:
$my_group_info = posix_getgrgid(posix_getegid() );

From the TWG info page:
Memory Limit: O.k. but don\'t use large images (16M)

Thanks for looking at this.

Author:  TinyWebGallery [ 23. Apr 2007, 09:11 ]
Post subject: 

Seems the list of groups is really really big on your server.

what you can do

replace this line with

$my_group_info['name'] = "?";
$my_group_info['gid'] = "?";


And how to you access the twg admin? with the frontend login or with admin/index?

Try to open a new browser and access directly admin/index.php - because the frontend is already caching some stuff in the session.

/Michael

Author:  MDC [ 23. Apr 2007, 19:46 ]
Post subject: 

Michael,

I replaced line 615 with the code you suggested. There was one line displayed on the Simple View page, then another out of memory error occurred, this time on line 288 of fun_list.php.

Line 288:
$group_info = posix_getgrgid($file_info["gid"] );

I commented out line 288, and now I have a full page displayed with no apparent errors.

I will continue to test this as I begin to configure my gallery.

Is this a valid fix? Would you expect any loss of functionality or other problems with these changes?

Thanks for your time.

Author:  TinyWebGallery [ 23. Apr 2007, 22:21 ]
Post subject: 

actually no - this is additional information like the group and owners. You simply have less information in the browser - most of the functions should work fine.

/Michael

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