Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Storage errors

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sat Sep 17, 2005 10:59 pm    Post subject: Storage errors Reply with quote

I'm having troubles. Sad

I did the installation as it says in the readme. When I tried to update the users to the database, I got some collision errors and so I found and deleted some duplicate accounts as they came up. Page 1 (2000 users) went through fine. Then on page 2, some more collisions, rinse and repeat process. Well after a few deletes, I got this error:

Code: › Failed to create a extmap entry for role uid [37] and entityId [3444], entityType [GalleryUser]. Here is the error message from G2:
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1238 (gallerystatus::error)
    * in modules/core/classes/GalleryStorage.class at line 294 (mysqldatabasestorage::addmapentry)
    * in modules/core/classes/interfaces/ExternalIdMap.inc at line 96 (gallerystorage::addmapentry)
    * in admin/index.php at line 160 (externalidmap::addmapentry)
    * in admin/index.php at line 326
    * in admin/index.php at line 575
    * in admin/index.php at line 609
    * in /home/*****/public_html/templetest/admin/case/case.gallery2.php at line 55
    * in /home/*****/public_html/templetest/admin.php at line 498



Then when I click on the gallery2 module, I get this error at the top.

Code: › G2 did not return a success status. Here is the error message from G2:
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1166 (gallerystatus::error)
    * in modules/core/classes/GalleryStorage.class at line 245 (mysqldatabasestorage::search)
    * in modules/core/classes/Gallery.class at line 223 (gallerystorage::search)
    * in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 132 (gallery::search)
    * in modules/core/classes/GalleryCoreApi.class at line 2225 (galleryentityhelper_simple::loadentitybyexternalid)
    * in modules/core/classes/GalleryEmbed.class at line 184 (gallerycoreapi::loadentitybyexternalid)
    * in modules/core/classes/GalleryEmbed.class at line 94 (galleryembed::checkactiveuser)
    * in index.html at line 79 (galleryembed::init)
    * in /home/*****/public_html/templetest/modules.php at line 49



I had this happen once before, but it killed my phpNuke entirely. I didn't copy the error though. Now my nuke still works but the Gallery doesn't.

Any ideas?

Oh, and here's my config file since that is a common first question for you guys to ask.

Code: › <?php
$g2embedparams = array (
  'embedphpfile' => '/home/*****/public_html/templetest/modules/gallery2/',
  'embedUri' => 'modules.php?name=gallery2',
  'relativeG2Path' => 'modules/gallery2/',
  'loginRedirect' => 'modules.php?name=Your_Account',
  'activeUserId' => '0',
  'embedPath' => '/templetest',
  'cookiepath' => '/',
);
$g2mainparams = array (
  'showSidebar' => NULL,
);
$g2configurationdone = 'false';
?>
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Storage errors  

Back to top
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sat Sep 17, 2005 11:11 pm    Post subject: Re: Storage errors Reply with quote

Just found this:

http://www.nukedgallery.net/postt1884.html [nukedgallery.net]

Is that really all it is? Try again? Should I wait sometime before trying or just keep pressing the button over and over?
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sat Sep 17, 2005 11:23 pm    Post subject: Re: Storage errors Reply with quote

Ok. My nuke just now crashed.

Code: ›
Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/*****/public_html/templetest/header.php on line 31

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/*****/public_html/templetest/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/*****/public_html/templetest/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/*****/public_html/templetest/header.php on line 47
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sat Sep 17, 2005 11:49 pm    Post subject: Re: Storage errors Reply with quote

Sorry about all of the posts right after another, but I'm trying to keep you posted on what's happening in case this can help someone in the future.


Anyways, my nuke site just came back up. I went to dump the users again. Now I made it through page 2 and onto page 3. I think my MySQL database just has a limit on how many things I can put into at once so it kills the database for a little while.

That's just my guess though. I'm not an expert at this stuff. Mr. Green
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sun Sep 18, 2005 12:40 am    Post subject: Re: Storage errors Reply with quote

Ok, I'm finally up. Took a little while though. Just testing things out a bit but it seems to be working fine.

One weird quirk. When I goto the modules/gallery2 directory, it says "Can't be accessed directly." I type in main.php and it comes up. So all is good.

Then I try to login, and it doesn't let me login. It just kicks me to the Gallery page. Do I have to logout of nuke before I can login to the standalone gallery?


Also, I noticed that only one of the themes integrates into nuke. Siriux. I hate the theme but it integrates. I have a black background with white text as my default nuke theme so I can't read any of the black text on the other gallery themes. I'll do some searchingon the site for fixes but I thought I'd throw it out there in case there is no fix.


Oh and by the way. Thanks for the integration package. Sometimes after all your hard work, all you get is people complaining about what's NOT working. I'd like to say thank you for what IS working. Wink Mr. Green
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Sun Sep 18, 2005 6:30 am    Post subject: Re: Storage errors Reply with quote

re: the theme - look in gallery2/index.php and remove the "for" loop that deals with the CSS. i'll make the use of the gallery theme a config option.

re: login/logout - clear the cookies for your site. logging into your phpnuke site will log you into your gallery, as well, providing that you exported your users.

re: "can't be accessed directly" - when you just type modules/gallery2/ it defaults to adding the index.php to the end of the URL. try access yoursite.com/modules/Forums/index.php ...same result. it's a feature of nuke, not a bug in gallery Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Sun Sep 18, 2005 4:57 pm    Post subject: Re: Storage errors Reply with quote

Cool, I fixed the theme. Works great now. Haven't tried the login thing but I'm not too worried about it right now. I was just testing anyways.

But I did run into one more problem.

When I first installed it, I exported all of the users and it appeared to work fine. Except I had created a dummy account for testing some of the non-moderator and non-admin functionality of the site since I'm only installing this onto a test site. I have 5200 or so users in the database. The database only exported 5108 users. My dummy account was the most recently added user. I was testing some of the security of giving this account various permissions and the Gallery didn't recognize that the username existed.

I've tried exporting the users multiple times and it always stops at 5108. About 100 or so short of the entire list.

Any reason why it would do that?

Also, the Gallery integration doesn't dynamically enter new users right? I have to run the export every so often to make sure that new users are being added to the list. Correct?

*edit*
Same issue as this:
http://www.nukedgallery.net/postt1914.html [nukedgallery.net]
Back to top
Offline View user's profile Send private message
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Mon Sep 19, 2005 2:26 pm    Post subject: Re: Storage errors Reply with quote

siege911 wrote: › Cool, I fixed the theme. Works great now. Haven't tried the login thing but I'm not too worried about it right now. I was just testing anyways.

But I did run into one more problem.

When I first installed it, I exported all of the users and it appeared to work fine. Except I had created a dummy account for testing some of the non-moderator and non-admin functionality of the site since I'm only installing this onto a test site. I have 5200 or so users in the database. The database only exported 5108 users. My dummy account was the most recently added user. I was testing some of the security of giving this account various permissions and the Gallery didn't recognize that the username existed.

I've tried exporting the users multiple times and it always stops at 5108. About 100 or so short of the entire list.

Any reason why it would do that?

Also, the Gallery integration doesn't dynamically enter new users right? I have to run the export every so often to make sure that new users are being added to the list. Correct?

*edit*
Same issue as this:
http://www.nukedgallery.net/postt1914.html [nukedgallery.net]


A little update on this.

So I tried adding another user and running the export again. This time I got 5109 entries. One more than last time.

Now the last id in my database is 5129. HOWEVER, I noticed that I currently only have 5109 TOTAL entries in the database. I had to delete some due to collisions and I'm not sure where a few others went. So I'm guessing that the export sees how many total users there are and exports up to the id # that matches how many total users there are.

Any way to fix this? If I knew PHP very well, I'd fix it myself but alas, I'm only know some basics.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 20, 2005 6:36 am    Post subject: Re: Storage errors Reply with quote

yes, i'm working on backporting my phpBB2/G2 user export code to phpNuke. that will (hopefully) solve these errors.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia