Story End mod causi...
Clear all

Story End mod causing "array" error....

Eminent Member

i am so sorry! i feel like I'm constantly on here bugging everyone with all my problems  😳

its just that I did this whole "upgrade" to my archive and added all these new mods and stuff *sigh*

so I believe the Story End mod is the one here...

as you can see, instead of the chapter text, it just says "Array". This is a problem with all last chapters belonging to stories that are part of a series.

its giving me this error (i know you cant see it on the page, I've turned it off via the Admin settings)

Notice: Array to string conversion in /home/nsync908/public_html/nsyncfiction/includes/corefunctions.php on line 207

I checked out the corefunctions.php and on line 205 - 214 its this:

// Formats the text of the story when displayed on screen.
function format_story($text) {
      $text = trim($text);
      if(strpos($text, "<br>") === false && strpos($text, "<p>") === false && strpos($text, "<br />") === false) $text = nl2br2($text);
      if(_CHARSET != "ISO-8859-1" && _CHARSET != "US-ASCII") return stripslashes($text);
      $badwordchars = array(chr(212), chr(213), chr(210), chr(211), chr(209), chr(208), chr(201), chr(145), chr(146), chr(147), chr(148), chr(151), chr(150), chr(133));
      $fixedwordchars = array('&#8216;', '&#8217;', '&#8220;', '&#8221;', '&#8212;', '&#8211;', '&#8230;', '&#8216;', '&#8217;', '&#8220;', '&#8221;', '&#8212;', '&#8211;',  '&#8230;' );
      $text = str_replace($badwordchars,$fixedwordchars,stripslashes($text));
      return $text;

Please help! what can I do to fix this?

Topic starter Posted : 28/10/2009 10:15 pm
Member Moderator

Did you upgrade the story end module as well as the basic eFiction?

Posted : 29/10/2009 12:19 am
Eminent Member

yes ma'am.... I upgrade eFiction last week, and download the module for the first time last week too, I just noticed the error for the first time today.

Topic starter Posted : 29/10/2009 12:32 am
Trusted Member

I found changing the $story variable in storyend.php in modules/storyend to $story1 and my "Array" problem went away.

efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!

Posted : 29/10/2009 11:10 am
Eminent Member

thank you so much hobert! that fixed it! 😀

Topic starter Posted : 29/10/2009 1:43 pm