Story preview shows...
 
Notifications
Clear all

Story preview shows multiple series when none chosen

4 Posts
3 Users
0 Reactions
1,798 Views
(@michelle05)
Posts: 6
Active Member
Topic starter
 

URL to your eFiction: http://www.thealphagate.com/
Version of eFiction: 3.3
Have you bridged eFiction, if so with what?: No.
Version of PHP: 5.2.2
Version of MySQL: 5.0.24
Have you searched for your problem: Yes
If so, what terms did you try: submission, series, preview
State the nature of your problem: New story preview page shows bogus Series that story will go into.
Do you have a test account for us? No, but could set one up.

Since the upgrade from 2.x to 3.3 a few days ago, when an author submits a new story and previews it, the story listing block at the top of the preview page shows that the story is destined for several series, none of which was ever chosen. Once the story is validated into the site, the Series is None as it should be, but it is confusing to users to see this strange list of series that their story will apparently go into.

Has anyone else seen this?  Does the series variable need to be initialized before the preview step -- eg am I just seeing some random initialization value in a variable? (if php even does that...)  I don't see any reference to series in stories.php.

I assume the listing at the top of the preview is driven by listings.tpl, so that's why the series is showing before submission.  A workaround would be to not show the Series in this block, but I have no idea how to separate it out.


 
Posted : 24/08/2007 2:10 am
(@jacynthe)
Posts: 242
Estimable Member
 

hmmm... I just tested and in the preview new story... it says series: none if I don't select a series... so I'm afraid I cannot help you with that. Don't know if it's a bug with your installation or simply I have not tested deeply enough.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 24/08/2007 1:55 pm
(@michelle05)
Posts: 6
Active Member
Topic starter
 

I believe I know what's happening.  Not sure if it's a bug or not.  Basically the preview is pulling up all series that have a subseries and showing them as the series for the previewed story.  I believe this is because, for a new story, the sid during preview is 0, and in the fanfiction_inseries table, every entry where there is a sub-series has "0" for the sid for that row.  So the $seriesquery in storyblock.php returns all those subseries for display.

Once the submit happens, the sid gets assigned to a non-zero value, and the bogus series go away. Perhaps related, I'm seeing in 3.3 that looking at a series with a subseries shows an empty story entry, eg:

http://www.thealphagate.com/viewseries.php?seriesid=243   (near the bottom of the page)

In the case of my archive, all the subseries were a result of user error, so I'm going to get rid of them. But just thought I would pass on what I found.


 
Posted : 25/08/2007 6:56 pm
(@tammy)
Posts: 2577
Member Moderator
 

Thanks.  I'll look into fixing this.


 
Posted : 29/08/2007 11:47 am
Share: