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

Fatal error - trying to open admin/index.php
https://www.tinywebgallery.com/forum/viewtopic.php?f=10&t=1369
Page 1 of 1

Author:  mateusz86 [ 31. Jan 2008, 16:45 ]
Post subject:  Fatal error - trying to open admin/index.php

hey,
my version is: TWG version 1.6.3.2

when i'm trying to open admin/index.php there is
Code:
Fatal error: Cannot redeclare posix_geteuid() in /home/cugok/public_html/cugok/galeria/admin/_include/fun_extra.php on line 409


any ideas how to solve it ?

i've just upload all files to my account and change chmod to 3 folders

Author:  Kaze [ 31. Jan 2008, 18:24 ]
Post subject: 

sounds like a server configuration problem, perhaps?

Author:  TinyWebGallery [ 31. Jan 2008, 23:14 ]
Post subject: 

Some php installation do have this functions some not. I have a self written one if the one is not available.

Please use the version in the forum. There I have integrated a check that my functions ins only declared if the php does not have it.

Wait for RC2 - it will be online maybe today ;).

/Michael

Author:  mateusz86 [ 1. Feb 2008, 03:55 ]
Post subject: 

still the same error after upload new version RC2

zubrex.pl/twg/admin/index.php - check here

Author:  TinyWebGallery [ 1. Feb 2008, 09:55 ]
Post subject: 

I checked you server configuration.

The problem is that the function is available in php but disabled in your php.ini in the section disable_functions.

I use the method function_exists that delivers false because the function was disabled.
But when I try to declare it php says it's already there (only disabled).

You can remove the codeblock that redefines this function.
i'll try to implment a workaround for this problem too.

Can you please remove this block

if( !(function_exists('posix_geteuid'))) {
function posix_geteuid() {
return false;
}
}

from admin/_include/fun_extra.php

and tell me if everything works fine then. (check if the log filecounter/_mydebug.out does exists and has any errors.).

Thanks,
Michael

Author:  mateusz86 [ 1. Feb 2008, 10:21 ]
Post subject: 

Thank you Michael, it works ;)

There is no _mydebug.out in 'counter'

Author:  TinyWebGallery [ 1. Feb 2008, 11:14 ]
Post subject: 

Than it's o.k.

I will check the php.ini settings and if this function is diabled and I won't redeclare it then.
I'll add this to the 1.7 final.

/Michael

Author:  TinyWebGallery [ 1. Feb 2008, 18:36 ]
Post subject: 

I have updated rc2 and changed the file you have modified.
Can you please download rc2 again and replace the fun_extra.php and test again.

/Michael

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