I am getting the following error when users try to access the gallery2 module:
An error occurred during the on-the-fly user creation.
Error (ERROR_MISSING_OBJECT)
* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 606 (GalleryUserHelper_medium::fetchUserByUserName)
* in pgv.php at line 107 (GalleryCoreApi::fetchUserByUserName)
* in index.php at line 39
* in index.php at line 34
* in /PhpGedView/module.php at line 72
The admin user account has no issues, but the username and password are both the same.
Any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rick, I hope you'll see that post even he comes very late.
I followed instructions of the link you give. Except the 2nd mod (g2Uri' => "/subfolder/modules/gallery2/",) wich give an error. But without this mod the result is quite good and pgv users can connect to gallery2 via the icon of pgv portal.
But there is still a problem. Gallery is working but I have messages on top of the windows :
ERROR 2: set_time_limit() has been disabled for security reasons
0 Error occurred on in function set_time_limit
1 called from line 606 of file Gallery.class in function guaranteeTimeLimit
2 called from line 36 of file GalleryEntityHelper_simple.class in function loadEntitiesById
3 called from line 159 of file GalleryEntityHelper_simple.class in function loadEntityByExternalId
4 called from line 2404 of file GalleryCoreApi.class in function
loadEntityByExternalId
5 called from line 294 of file GalleryEmbed.class in function login
6 called from line 270 of file GalleryEmbed.class in function checkActiveUser
7 called from line 120 of file GalleryEmbed.class in function init
8 called from line 78 of file pgv.php in function mod_gallery2_load
9 called from line 39 of file index.php in function mod_gallery2_run
10 called from line 34 of file index.php in function include_once
11 called from line 72 of file module.php
ERROR 2: Cannot modify header information - headers already sent by (output started at /data/data/web/2/d/guiyou.fr/htdocs/geneacoll/includes/functions/functions.php:628)
After the messages, Gallery is there and working.
I have no message when I use gallery directly and not by the pgv portal.
What can I do to put them off ?
It seems to be something with time limit. Is there something I have to ask to my web supplyer ? Or have I to disactive this function in each script ?
Thank you for any idea;
Thierry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thierry:
Your problem is identified right in the first line of the series of messages you reproduced.
You need to speak to your provider about the disabling of at least the settimelimit() function.
We are NOT about to remove calls to this function from the PGV code, and you shouldn't do this either. There are probably several other functions that they've disabled for "security" reasons.
If they wont budge, you'll have to find another hostng service that's more suitable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi canajun2eh, I am back for a question : I am not very skilly but I see that a lot of phpgedview users have the same problem with set\_time\_limit on their site. Maybe it is because of the provider's choice, and this choice may be not the best. I do'nt know. But it is a fact. Is it really a big question to manage this fact with a simple test on the function in your code ? What kind of argument can I develop to convice my provider that he did a bad choice versus an adaptation of the php code ?
I just try to understand. But I know that if neither the provider nor you can give me the solution, I will do the same as other users : I'll put an @ to each function call ! Too bad, but it's not so easy to find an other provider. Sorry for boring you on that point.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting the following error when users try to access the gallery2 module:
An error occurred during the on-the-fly user creation.
Error (ERROR_MISSING_OBJECT)
* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 606 (GalleryUserHelper_medium::fetchUserByUserName)
* in pgv.php at line 107 (GalleryCoreApi::fetchUserByUserName)
* in index.php at line 39
* in index.php at line 34
* in /PhpGedView/module.php at line 72
The admin user account has no issues, but the username and password are both the same.
Any help would be appreciated.
Hi Nicholas,
Did you look at : http://sourceforge.net/tracker/index.php?func=detail&aid=2485050&group_id=55456&atid=477081
There might be the solution for your problem.
Regards,
Rick
Thanks rick,
"You could change the method of encryption in PGV.PHP by:
'hashmethod'=>'crypt' -> 'hashmethod'=>'phpass'
(thanks to no2nt)
"
Worked great!!
I also disabled the registration module for Gallery2 because of the updated gallery2_readme file:
"Because the login and users are provided by PHPGedview, the module in Gallery2 regarding
registration should be disabled (it will work with this installed but you will see the registration option
on your web site).
"
Thanks again,
Nick Henry
Hi Nick Henry,
Great job!
Glad that it worked out for you.
Regards,
Rick.
Hi Rick, I hope you'll see that post even he comes very late.
I followed instructions of the link you give. Except the 2nd mod (g2Uri' => "/subfolder/modules/gallery2/",) wich give an error. But without this mod the result is quite good and pgv users can connect to gallery2 via the icon of pgv portal.
But there is still a problem. Gallery is working but I have messages on top of the windows :
ERROR 2: set_time_limit() has been disabled for security reasons
0 Error occurred on in function set_time_limit
1 called from line 606 of file Gallery.class in function guaranteeTimeLimit
2 called from line 36 of file GalleryEntityHelper_simple.class in function loadEntitiesById
3 called from line 159 of file GalleryEntityHelper_simple.class in function loadEntityByExternalId
4 called from line 2404 of file GalleryCoreApi.class in function
loadEntityByExternalId
5 called from line 294 of file GalleryEmbed.class in function login
6 called from line 270 of file GalleryEmbed.class in function checkActiveUser
7 called from line 120 of file GalleryEmbed.class in function init
8 called from line 78 of file pgv.php in function mod_gallery2_load
9 called from line 39 of file index.php in function mod_gallery2_run
10 called from line 34 of file index.php in function include_once
11 called from line 72 of file module.php
ERROR 2: Cannot modify header information - headers already sent by (output started at /data/data/web/2/d/guiyou.fr/htdocs/geneacoll/includes/functions/functions.php:628)
After the messages, Gallery is there and working.
I have no message when I use gallery directly and not by the pgv portal.
What can I do to put them off ?
It seems to be something with time limit. Is there something I have to ask to my web supplyer ? Or have I to disactive this function in each script ?
Thank you for any idea;
Thierry
I guess that line 606 of the file Gallery.class contains a call to the function set_time_limit().
Your host can limit the time allowed for each script by either (a) setting a maximum value or (b) disabling access to the function that changes it.
Most hosts choose (a). Yours has chosen (b).
You can ignore this error by putting an "@" in front of the line. e.g. change
set_time_limit(whatever)
to
@set_time_limit(whatever)
This cretinous forum has replaced my underscores with italics.
set_time_limit should be set underscore time underscore limit
Thierry:
Your problem is identified right in the first line of the series of messages you reproduced.
You need to speak to your provider about the disabling of at least the settimelimit() function.
We are NOT about to remove calls to this function from the PGV code, and you shouldn't do this either. There are probably several other functions that they've disabled for "security" reasons.
If they wont budge, you'll have to find another hostng service that's more suitable.
It is very clear. Thank you for advice. I'll speak with my provider.
Thierry
Hi canajun2eh, I am back for a question : I am not very skilly but I see that a lot of phpgedview users have the same problem with set\_time\_limit on their site. Maybe it is because of the provider's choice, and this choice may be not the best. I do'nt know. But it is a fact. Is it really a big question to manage this fact with a simple test on the function in your code ? What kind of argument can I develop to convice my provider that he did a bad choice versus an adaptation of the php code ?
I just try to understand. But I know that if neither the provider nor you can give me the solution, I will do the same as other users : I'll put an @ to each function call ! Too bad, but it's not so easy to find an other provider. Sorry for boring you on that point.