Notifications
Clear all

Logged out Error

5 Posts
4 Users
0 Reactions
1,849 Views
(@julieann)
Posts: 60
Trusted Member
Topic starter
 

URL to your eFiction: http://www.gatchfanfic.com/
Version of eFiction: 3.4.2
Have you bridged eFiction, if so with what?: SMF
Any mods installed?: Challenges, cpg-art
Version of PHP: 5.2.5
Version of MySQL: 4.1.22-standard
Have you searched for your problem: yes
Do you have a test account for us? Yes. User name: testreg  Password: test1234

When a person isn't logged in, I'm getting the following error at the top of the page:

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /home/******/public_html/includes/storyblock.php on line 103

This is happening when viewing a story, when viewing specific challenges (where this error will show many times at the top of the page), and when viewing an author. There may be other pages, but those are what I've seen so far.

As soon as I log-in, the errors disappear.

Ideas?


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 02/04/2008 10:52 am
(@tammy)
Posts: 2577
Member Moderator
 

In get_session_vars.php change:


if(!defined("USERUID")) define("USERUID", false);

to:


if(!defined("USERUID")) define("USERUID", 0);

But I would make sure that doesn't give them edit privileges on the stories as guests.  Haven't tested it.  Don't have SMF installed anywhere at the moment.


 
Posted : 02/04/2008 1:18 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

I'm getting the same error but without any bridges installed. The get_session_vars.php code was already like that though, so yep.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 02/04/2008 5:30 pm
(@julieann)
Posts: 60
Trusted Member
Topic starter
 

I just tried your advice, Tammy, and the error has disappeared. As far as I can tell, it hasn't given a guest any editing privileges. I'll continue testing and report back. πŸ™‚


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 02/04/2008 9:34 pm
(@myinterests)
Posts: 11
Active Member
 

thank you, this helped me as well


 
Posted : 06/08/2008 9:05 am
Share: