"Notice: Undef...
 
Notifications
Clear all

"Notice: Undefined index" Error

5 Posts
2 Users
0 Reactions
1,811 Views
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

http://www.themasque.net/efiction/index.php

Monday I added a new custom page to this client persons site. Everything worked fine. I even checked on it later and it was working fine.

Wednesday comes, the client accesses the page and finds this error...

Notice: Undefined index: 2 in /home/bgmasque/public_html/eFiction/blocks/random/random.php on line 14

Notice: Undefined index: 2 in /home/bgmasque/public_html/efiction/blocks/recent/recent.php on line 13

I looked at both lines, neither seem to have any problem that pops out at me.

		if(!$use_tpl) $content .= "<div class='randomstory'>".title_link($stories)." "._BY." ".author_link($stories)." ".$ratingslist[$stories['rid']]['name']."<br />".$stories['summary']."</div>";
		if(!$use_tpl) $content .= "<div class='recentstory'>".title_link($stories)." "._BY." ".author_link($stories)." ".$ratingslist[$stories['rid']]['name']."<br />".stripslashes($stories['summary'])."</div>";

Thinking maybe something corrupted itself I downloaded the 3.2.1 file again, and just copied the files in question to the web server. No change.

I also tried to just set both of those blocks as "inactive" but that had no effect.

Any ideas?


 
Posted : 12/04/2007 12:45 pm
(@tammy)
Posts: 2577
Member Moderator
 

Goto Admin->Blocks then edit the options for the recent and random block.  There's settings that are missing.


 
Posted : 12/04/2007 3:25 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

I checked both and they're all filled in. I even tried changing each option and submitted it. No change.


 
Posted : 12/04/2007 3:30 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Now I notice when I go to a category index I get this error messsage...

http://www.themasque.net/efiction/browse.php?type=categories&id=1

Notice: Undefined index: 2 in /home/bgmasque/public_html/efiction/includes/storyblock.php on line 31

Now I know that error wasnt there earlier, and I know nobody has edited that block, or the php file.


 
Posted : 12/04/2007 4:28 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

I figured out this problem myself. Maybe you can add this information to your documentation, database or brain patterns.

The owner of the site logged in and changed the "Ratings" system. Removing the one rating that was in use on my test story. So EFiction was saying "Whats your rating?" and when the story came back with the answer it became confused πŸ™‚

Thanks anyway.


 
Posted : 13/04/2007 7:09 pm
Share: