URL to your eFiction: Still under construction. Not yet public
Version of eFiction: 3.5
Have you bridged eFiction, if so with what?: No
Version of PHP: 4.4.7
Version of MySQL: 4.1.22
Have you searched for your problem: Yes, I've read every post that contains the word "Array" and found others with the same problem, but no solution.
If so, what terms did you try: Array, array series, array story end module
State the nature of your problem: When trying to read the stories in a series the story text is missing and only the word "Array" is there in it's place. I think this is an issue with the Story End module.
Do you have a test account for us? Not at this time
I've found a similar problem on this thread and the exact same problem on this one, but neither have a solution offered.
I believe this is a problem with the Story End module because it wasn't there before I installed that. When trying to read a story in a series, I click the title and all of the information comes up as is should (authors name, word count, etc.), but the story text itself has been replaced with just the word "Array". There's no way to read anything and that won't do because we will have a lot of stories that are included in various series when this site finally goes live. I'm 100% sure it's connected to the Story End module in some way, but I hate to remove it if there might be an easy fix out there. I've noticed mention of a new version of the Story End module, but I can't find it on Tammy's site. Is it just not compatible with eFiction 3.5?
Little help?
Have you seen this? http://efiction.hugosnebula.com/forum/viewthread.php?forum_id=11&thread_id=60 (The one poster mentions this thread: http://efiction.hugosnebula.com/forum/viewthread.php?forum_id=11&thread_id=67)
Looks like the best thing to do at the moment is to uninstall it.
I did read those as well, but thanks for the links just the same. I just wasn't sure if there has been any solution found between when that was posted in April of 2008 and now that I might have missed... or a new download for the mod. I realise that fixing these things takes time and I guess if there was an easy edit to repair it, it would have been posted by now. I really hate to have to uninstall it because it's such a great mod when the stories that will be uploaded have so many chapters and it's a wonderful way to distinguish between finished and unfinished works, but I suppose if there's no other option, I may have to remove it for now.
Thanks for the advice, Lyndsie. If anyone else has any other solution, please let me know. I'd love to find a way to keep it.
I was considering the mod for my site, so I'll let you know if I do and it works. : )
Thank you so much! I would really appreciate that. My site still isn't public as of yet because it's a very old collection and there were thousands of stories to be uploaded before I could open it up for business, so maybe I should just leave the mod as is for now (since no one can see the "Array" thing yet) and wait to see if you or anyone else manages to get it working. If not, I'll have to uninstall before I open it the doors.
I know I had it on and when I upgraded to 3.5 it started to cause a few bugs here and there so I had to remove it. I don't know if Lyndsie can figure out a way to make it work, but i know I just didn't have the time or heart to try and tinker with the coding on the mod to see what wasn't working right.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Hmmm. Well, I uploaded it to my test site, with one modification. I changed the "strip_slashes" on line 64 of storyend.php to "stripslashes".
It's not throwing up any errors (other than a rolling warning about function-array-keys that is from something else). It seems to be working fine, not that I have a whole ton of stories there.
Here's the one lone series: http://efictiontest.verilyviridian.com/viewseries.php?skin=Valentine2&seriesid=1 (Note: I only added it to the Valentine2 skin!) You can play around and see if you can break it if you like. Jacynthe, what other bugs are you talking about? Like I said, I've got that warning about storyblock.php that shows up every now and again, but that's been happening ever since I upgraded to 3.5, so it's not from this module.
The test site is at 3.5 with the modified stories.php, NOT the 3.4.3 stories.php, if that might be making the difference for you.
I'll have to wait til I'm on and can tinker with it (am at work now) but once I have a minute, I'll turn the module on again and see what was happening and if that stripslash of yours may put an end to any disappearing stories and what not... I THINK that was part of the problem, though so much has happened since then it's hard to be 100% sure.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
I'm on 3.4.3 and the Array doesn't appear on all series stories... I've just checked then.
archive:
site:
Available for skin/mod commission! 🙂
Lyndsie, the strip_slashes was the error. The minute I turned the module on and saw the error, I knew that things would be alright if my luck held... And it did! So now (for better or for worse cause one of my friend doesn't like the storyend mod but I love it... LOL) the module is back online and I don't have the array error.
So hopefully it'll work for Jaded as well.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
I changed the "strip_slashes" on line 64 of storyend.php to "stripslashes" like you suggested, but nothing happened. The series still say "Array" where the story text should be.
Thank you both for the suggestions, but for some reason it's still not working. 🙁
I turned on debug out of curiosity and aside from the one usual error I get on every page, I got this when I went to view the series. Does it mean anything to anyone?
Notice: Array to string conversion in /home/***/public_html//includes/corefunctions.php on line 207
I just looked at my corefunctions.php file and copied what's before and after line 207 as it relates to the way the story is displayed. You might want to make sure yours is the same...
// Added 3.3
function nl2br2($string) {
$string = str_replace(array("rn", "r", "n"), "<br />", $string);
return $string;
}
// 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('‘', '’', '“', '”', '—', '–', '…', '‘', '’', '“', '”', '—', '–', '…' );
$text = str_replace($badwordchars,$fixedwordchars,stripslashes($text));
return $text;
}
As you can see, I left the comments in there so you can find where to start the check and replace if needed.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Mine looks like this:
// Added 3.3
function nl2br2($string) {
$string = str_replace(array("rn", "r", "n"), "<br />", $string);
return $string;
}
// 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('‘', '’', '“', '”', '—', '–', '…', '‘', '’', '“', '”', '—', '–', '…' );
$text = str_replace($badwordchars,$fixedwordchars,stripslashes($text));
return $text;
}
There seem to be some differences on line 211. I copied and pasted yours into mine and uploaded it again and still no change. Maybe I should just go bang my head on the wall LOL. I really appreciate all your help with this, but unfortunately I still don't know what's going wrong. I don't know enough about PHP and this is so frustrating.
and is there still an error in debug mode about the corefunctions.php file? I'm guessing we'll have to take this one step at a time... and I am no PHP genius myself so this should get interesting before too long... LOL
Just a simple, silly question. Did you do a fresh install on your eFiction or did you upgrade an existing installation? And if you upgraded, did you encounter some errors with either database tables not being created or overwritten or something?
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
