| Author |
Message |
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Tue Aug 09, 2005 11:00 pm Post subject: ERROR_COLLISION |
|
|
Hello all,
I'm using PHP-Nuke Platinum 7.6 for a website. Now I want to integrate Gallery 2 in it. I'm kinda newbie with this stuff so I take some time to get things to work. Also I'm not able to understand almost all errors.
Because of this, I have been using this forum to help me solve some issues but now I have stoped on this one.
When I try to "Export PhpNuke Users to Gallery 2" I get this error:
Code: › Failed to create G2 user with extId [9]. Here is the error message from G2:
Error (ERROR_COLLISION)
in modules/core/classes/GalleryUser.class at line 166 (gallerystatus::error)
in modules/core/classes/GalleryEmbed.class at line 301 (galleryuser::create)
in admin/index.php at line 320 (galleryembed::createuser)
in admin/index.php at line 575
in admin/index.php at line 609
in /home/lightcre/public_html/website/admin/case/case.gallery2.php at line 55
in /home/lightcre/public_html/website/admin.php at line 549
I have checked the gallery and all users are there, so they were exported, even with the error ...
The problem is that when I call the module, I get a blank page. Also, if I set the gallery module to be on "Home", I get a balnk page when access the main Nuke website.
Here is the code on the gallery.cfg:
Code: › <?php
$g2embedparams = array (
'embedphpfile' => '/home/lightcre/public_html/website/modules/gallery2/',
'embedUri' => 'http://lightcrew.net/website/modules.php?name=gallery2',
'relativeG2Path' => '/website/modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/home/lightcre/public_html/website',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'false';
?>
I have seen a post where somebody was instructed to change to "true" this line $gallery->setDebug(false); in the config.php file, in order to see what happens. Well I did it and got this:
Code: › Notice: Undefined variable: currentlang in /home/lightcre/public_html/website/modules/gallery2/admin/index.php on line 114
Notice: Undefined variable: phpnuke2G2Lang in /home/lightcre/public_html/website/modules/gallery2/admin/index.php on line 114
Notice: Undefined variable: fullInit in /home/lightcre/public_html/website/modules/gallery2/admin/index.php on line 123
Notice: Undefined variable: outputtext in /home/lightcre/public_html/website/modules/gallery2/admin/index.php on line 278
Notice: Undefined index: portugues in /home/lightcre/public_html/website/modules/gallery2/admin/index.php on line 292
Notice: Undefined index: 1 in /home/lightcre/public_html/website/mainfile.php on line 732
Notice: Undefined offset: 2 in /home/lightcre/public_html/website/mainfile.php on line 736
Notice: Undefined offset: 1 in /home/lightcre/public_html/website/mainfile.php on line 611
Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in /home/lightcre/public_html/website/db/mysql.php on line 131
Notice: Undefined index: 1 in /home/lightcre/public_html/website/mainfile.php on line 732
Notice: Undefined offset: 2 in /home/lightcre/public_html/website/mainfile.php on line 736
The errors did not ended here, but i thought this would be enought to get the idea.
Can anyone tell me if this can be fixed? and how ?
Thank you in advance ...
Can anyone tell me if this can be fixed ? And how ? |
|
| Back to top |
|
|
AdBot
|
| Post subject: ERROR_COLLISION |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 10, 2005 6:23 am Post subject: Re: ERROR_COLLISION |
|
|
your embedpath is incorrect. it should just be /website/
Re: the "notice" message. those are controlled from the php.ini file of your server. they are not fatal warnings or errors. you have to change the error reporting level of php for them to disappear.
Re: user export. the current method is obsolete and will be replaced shortly. don't worry about it for now, as a new, more robust method will be available soon. _________________
 |
|
| Back to top |
|
|
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Wed Aug 10, 2005 7:16 am Post subject: Re: ERROR_COLLISION |
|
|
Hello and ty for your reply,
I have corrected the embedpath to "/website/" but I'm still getting a blank page when trying to access the module. Actually the page is not so blank, it has this in it:
Code: › Not Found
The requested URL /website/main.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
and that is true, there is no main.php file in the website directory. But there is one called mainfile.php . Could the problem be related with this ? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 10, 2005 7:18 am Post subject: Re: ERROR_COLLISION |
|
|
did you replace the index.php file in the gallery2 directory with the one that came in the install package? _________________
 |
|
| Back to top |
|
|
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Wed Aug 10, 2005 7:36 am Post subject: Re: ERROR_COLLISION |
|
|
Well errrr, it seems that I did not (??) I have extracted the package in the server so it must have ... nevermind.
I did upload index.php and replace it. Now the blank page is gone but... now I see this when access the module:
"The module has not yet been configured." on top of the page.
What does it means ? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 10, 2005 7:55 am Post subject: Re: ERROR_COLLISION |
|
|
you need to go to your phpnuke admin page for gallery2 and export the users. that will complete the configuration. _________________
 |
|
| Back to top |
|
|
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Wed Aug 10, 2005 8:14 am Post subject: Re: ERROR_COLLISION |
|
|
Have exported the users (still having that error on first post) and everything stays the same. I'm still getting that message when access the module.
There is one thing more tho, after I have replaced the index.php, I can no longer access the gallery (stand alone) - message: You can't access this file directly...
Any more ideas ? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 10, 2005 8:19 am Post subject: Re: ERROR_COLLISION |
|
|
jupiter4 wrote: › Have exported the users (still having that error on first post) and everything stays the same. I'm still getting that message when access the module.
if by "errors on first post" you mean the notices, again, there is nothing i can do about that. you have to change your error reporting level in your php.ini file to not display notices. if you have successfully exported your users, you can manually change the $g2configurationdone variable to "true" in your gallery2.cfg file.
jupiter4 wrote: › There is one thing more tho, after I have replaced the index.html, I can no longer access the gallery (stand alone) - message: You can't access this file directly...
this is by design and is correct. to access directly, go to /modules/gallery2/main.php _________________
 |
|
| Back to top |
|
|
jupiter4
Beginner


Joined: Aug 08, 2005 Posts: 7
|
Posted: Wed Aug 10, 2005 9:32 am Post subject: Re: ERROR_COLLISION |
|
|
| It's working ! Thank you for your help dari ! |
|
| Back to top |
|
|
mikeandmartin
Beginner


Joined: Jul 15, 2004 Posts: 8
|
Posted: Sun Sep 18, 2005 9:22 am Post subject: Re: ERROR_COLLISION |
|
|
I am downloaded the most current version of the Gallery2 Integration pack today. I am using PHPnuke 7.8.
Ok, I have followed the advice in this topic and I am still getting the following error:
Code: › Failed to create G2 user with extId [2]. Here is the error message from G2:
Error (ERROR_COLLISION)
in modules/core/classes/GalleryUser.class at line 166 (gallerystatus::error)
in modules/core/classes/GalleryEmbed.class at line 300 (galleryuser::create)
in admin/index.php at line 320 (galleryembed::createuser)
in admin/index.php at line 575
in admin/index.php at line 609
in /home/magbase/public_html/admin/case/case.gallery2.php at line 55
in /home/magbase/public_html/admin.php at line 490
Here is my gallery2.cfg file:
Code: › <?php
$g2embedparams = array (
'embedphpfile' => '/home/magbase/public_html/modules/gallery2/',
'embedUri' => 'http://70.86.14.178/~magbase/modules.php?name=gallery2',
'relativeG2Path' => '/modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'false';
?>
Here is the ouput from turning debug to logged:
Code: › 2005-09-18 09:17:18 [] getParameter permissions.file for core plugin
2005-09-18 09:17:18 [] file_exists(/home/magbase/public_html/modules/gallery2/g2data/cache/module/core/0/0/0.inc)
2005-09-18 09:17:18 [] file_exists(/home/magbase/public_html/modules/gallery2/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
2005-09-18 09:17:18 [] Unimplemented: GalleryUrlGenerator
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] file_exists(/home/magbase/public_html/modules/gallery2/g2data/sessions/affd7039e0303bcceeb5c28cf95d2b7e)
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] file_exists(/home/magbase/public_html/modules/gallery2/g2data/sessions/affd7039e0303bcceeb5c28cf95d2b7e)
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] getParameter cookie.domain for core plugin
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] getParameter cookie.path for core plugin
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] getParameter default.language for core plugin
2005-09-18 09:17:18 [affd7039e0303bcceeb5c28cf95d2b7e] file_exists(/home/magbase/public_html/modules/gallery2/g2data/sessions/affd7039e0303bcceeb5c28cf95d2b7e)
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] file_exists(/home/magbase/public_html/modules/gallery2/g2data/sessions/fc00da10bf288fe17eb5b7f2ffdd82e8)
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] getParameter cookie.domain for core plugin
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] getParameter session.lifetime for core plugin
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] --------------------------------------------------------------------------------
(mysql): SELECT g2_ExternalIdMap.g_entityId, g2_ExternalIdMap.g_externalId, g2_ExternalIdMap.g_entityType
FROM g2_ExternalIdMap
--------------------------------------------------------------------------------
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] getParameter id.adminGroup for core plugin
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] --------------------------------------------------------------------------------
(mysql):
SELECT
g2_UserGroupMap.g_userId,
g2_User.g_userName
FROM
g2_UserGroupMap, g2_User
WHERE
g2_UserGroupMap.g_groupId = '3'
AND
g2_UserGroupMap.g_userId = g2_User.g_id
ORDER BY
g2_User.g_userName
LIMIT 5
--------------------------------------------------------------------------------
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] file_exists(/home/magbase/public_html/modules/gallery2/modules/core/classes/helpers/../../../../modules/core/classes/GalleryUser.class)
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] --------------------------------------------------------------------------------
(mysql):
SELECT
g2_User.g_id
FROM
g2_User
WHERE
g2_User.g_userName = 'admin'
LIMIT 1
--------------------------------------------------------------------------------
2005-09-18 09:17:18 [fc00da10bf288fe17eb5b7f2ffdd82e8] realpath(/home/magbase/public_html/modules/gallery2/modules/core/classes/../../../)
|
|
| Back to top |
|
|
mikeandmartin
Beginner


Joined: Jul 15, 2004 Posts: 8
|
Posted: Sun Sep 18, 2005 9:39 am Post subject: Re: ERROR_COLLISION |
|
|
| Ok, I got it to work. I deleted all the users in my g2_user table and tried the import function again and it worked. |
|
| Back to top |
|
|
rakoon13
Beginner


Joined: Sep 09, 2005 Posts: 19
|
Posted: Mon Sep 19, 2005 2:53 am Post subject: Re: ERROR_COLLISION |
|
|
you lost me there for a moment  |
|
| Back to top |
|
|
|
|
|
|
|