Notifications
Clear all

[3.5] "Array" text showing in series stories.

64 Posts
8 Users
0 Reactions
23.1 K Views
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

😮

Well, now we know what happens LOL. The first error is one I have gotten since day one. It doesn't seem to affect anything so I just turn off debug so I don't see it. The other two are new and terrifying, but I know I can just change that line of code back to what it was to make them go away.


Notice: Undefined index: rss in /home/***/public_html//includes/pagesetup.php on line 92

Notice: Undefined variable: seSeries in /home/***/public_html//modules/storyend/storyend.php on line 60

Notice: Undefined variable: seriesquery in /home/***/public_html//modules/storyend/storyend.php on line 61
A fatal MySQL error was encountered.
Query:
Error: (1065) Query was empty


 
Posted : 29/01/2009 1:58 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

The variables seSeries and seriesquery (and the query itself) you commented out. It's fine, they're just notices.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

 
Posted : 29/01/2009 2:14 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Sorry, I thought I pasted everything that you might need to see. It's just that I've promised the authors I'd keep the site private.

There was nothing after "Query:" but a blank space and then the Error: (1065) line. I suppose I better put back that line of code I replaced since I've lost the whole page the series was on now.


 
Posted : 29/01/2009 2:22 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

strip_slashes() is just one error on its own, and shouldn't present the Array problem. (strip_slashes() does not exist; stripslashes() on the other hand does.)

Right, it just so happens that the area I've been scrutinizing is the same section as that came from since it's the only area in all the Story End module code that deals with series.  Not that that necessarily means it's the culprit.  *needs to learn more PHP*  I'm only okay at finding typos and stuff.  Anything beyond that and I'm lost. : /

In the format_story() function I added this:

if (is_array($text)) $text = implode($text);

What format_story()?  I'm not seeing that.  *is probably blind*

I wonder what the difference between the series are.  I could try to duplicate that on my test site.


 
Posted : 29/01/2009 2:40 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

The thing in corefunctions.php which formats the stories? (I got format_story() from my head/no looking at the files to confirm. Ahaha. :P)


archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

 
Posted : 29/01/2009 3:02 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Should I try changing that too? And if so, where exactly do I put in in corefunctions.php? Do I search for format_story() ?


 
Posted : 29/01/2009 3:12 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

A copy of Jenny's storyend.php pasted over mine then uploaded seemed to fix the problem. Thank you so much, Jenny!!

Despite the edits, the cut and paste, the re-downloading/re-uploading and the overwrites, this was the only thing that was able to solve the issue. Unfortunately, I'm getting a nasty error with the Challenges module now, but that may be unrelated and I'll start a new thread for it if I can't work it out on my own. I've sent Jenny my original storyend.php file, so hopefully she'll be able to say where the problem was in case anyone else runs into the same thing.

Thank you for all of your help everyone! You have no idea how much I appreciate it.


 
Posted : 29/01/2009 3:55 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Please check and see if this is an issue still with 3.5.1. Thank you.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 24/04/2009 9:13 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

It's a problem with the story end module, I think.  The only site I have it running at right now (where it's in the skin) doesn't have any series. Actually, the story end module doesn't seem to output anything at all with 3.5.1, but I was going to report that at Tammy's site since it is a module.


 
Posted : 24/04/2009 10:29 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

So then is the bug post here solved and can be completed?


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 26/04/2009 1:22 am
(@lyndsie)
Posts: 1263
Member Moderator
 

I can't confirm or deny that yet, but aren't module bugs meant to be posted at Tammy's site?


 
Posted : 26/04/2009 1:52 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Yes for End Module, no for Series. Series comes with the main download.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 27/04/2009 2:13 am
(@hobert)
Posts: 61
Trusted Member
 

So, after a little careful commenting out and such, I think I've found the "array" problem with the Story End Module.

This code in storyend.php (in the modules/storyend folder):

		unset($story, $sub);

seems to wipe out the main story completely.  Then you follow with this:

		if(!empty($o['sid'])) $story = dbassoc(dbquery(_STORYQUERY." AND sid = ".$o['sid']." LIMIT 1"));

the word "Array" pops in.  I think the variable $story used in these two lines (and the ones following) is overriding the main story.

I changed the variable to $story1 in the preceeding two lines, as well as the following lines:

			if($story) $thisSeries .= " ".sprintf(_SE_SERIES_PREVST, title_link($story));
if($story) $thisSeries .= " ".sprintf(_SE_SERIES_NEXTST, title_link($story));

and the main story now shows up, but have not had any time to test much more than seeing that everything is there.


efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/

 
Posted : 17/08/2009 2:37 pm
(@tammy)
Posts: 2577
Member Moderator
 

I will be uploading Story End v 1.5 to my site later today to fix this issue.


 
Posted : 09/01/2010 1:24 pm
(@hobert)
Posts: 61
Trusted Member
 

You are still using the $story variable in 1.5 and it's still throwing up the word "Array" instead of the story text.

Changing all four lines from $story to $story1 fixes it.


efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/

 
Posted : 18/01/2010 1:29 pm
Page 4 / 5
Share: