Instructions said to make a new thread, even if it was exactly the same problem. So here is the new thread for the same problem.
* Links to pages supplied below in the context of what is happening.
* There are no sql or php errors.
* I searched the forum extensively for over a day before posting and tried the other 'solutions', as will be outlined below.
* Relevant threads: https://efiction.org/forums/index.php?topic=6872.0 and https://efiction.org/forums/index.php?topic=6192.0
* I do not believe there is any option to be turned 'off' that would do this.
* Debug is turned on, just as asked. (Hopefully this does nothing in the way of harming my site should someone malicious want to do something to it?) I will turn it back off within 48 hours if I receive no response, just in case.
I upgraded from 3.3.? to 3.5.1 and I have this problem. I fixed it in one location only by following the 'Solution' in the other thread that is linked to from this one.
http://www.cadkitten.com/eFiction33/index.php (the current skin is an after install one. The other skins are just color and header edited from one of the ones provided in the original skin pack, nothing more.)
Example:
Click Celebrity from the index page.
You get http://www.cadkitten.com/eFiction33/browse.php?type=categories&catid=115 as the link it takes you to, which supplies you with the same exact list of categories you had before.
If you click Celebrity there, you get taken to http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=115 which is the correct link and the place you should have been taken to before.
(By they way, before the 'solution' was put on there, the links here did EXACTLY what they are still doing. There was NO change in the behavior of these links whatsoever.)
Now, the place it DID get fixed at is here (for example):
http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=75
First story, click the category Celebrity in any of these stories and it takes you to here: http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=115 which is the correct page. Before I used the 'solution' that was provided, these links also redirected to the link that included 'catid' rather than just 'id'.
Where else should I edit my coding in order to get the index page listing working? That is actually the main place that it would be nice to have working... I mean, considering it's the first thing a new user clicks and all.
Note: Yes, I'm aware the link says eFiction33. I just didn't change the folder because that started screwing with links I had elsewhere. So it really is 3.5.1, I swear.
Now, I also have a clean install of 3.5.1 here: http://www.cadkitten.com/jrockbigbang/eFiction/index.php without using the 'solution' from above.
In this case, when you click the category, it takes you to the category in question.
Click 'the gazette' and you are taken to http://www.cadkitten.com/jrockbigbang/eFiction/browse.php?type=categories&catid=2, which, in this case is the right category.
This all led me to believe it was a problem with the breadcrumbs when you have sub-sub categories. So I created a sub-category and a sub-sub category on this fresh install. However, this behaves perfectly fine, just like it should.
So, in conclusion, it's something about the upgrade from 3.3.? to 3.5.1. But I'm not sure how, considering I actually replaced every single file on the site except the ones I was explicitly told not to in the install files.
Yeah... so... where else should I change the coding so that the main page categories go to the right places? Please? Anyone? Thank you in advance.
Hmm, the difference seems to be 'catid' versus 'id' in the URL; at your site when it's got 'catid' it doesn't seem to be working. That's very interesting given that at my site it works fine, and 'catid' is in the URL. (See here: http://www.dracoandginny.com/index.php?skin=BWSnitch) Maybe you said specifically and I missed it, but what 'solution' did you use? I'm a little confused as to what was fixed by it. What it sounds like is that it's only when coming from Categories block is it having trouble. If so, that significantly narrows it down.
Also interestingly, the site I linked is also an upgrade. It actually started as a 1.1 site back in the day. However, I know it was never 3.3 specifically - I usually wait on new releases to see if there will be bugs and I remember 3.3 being buggy, so I don't think I upgraded from 3.2.1 (or whatever it was) until 3.3.1 was released, at the very least. Of course it only has one category with any sub-categories, and no sub-sub-categories.
The 'solution' is in the second Relevant thread I linked to: https://efiction.org/forums/index.php?topic=6192.0
I'm a little confused as to what was fixed by it.
This part is where I said what was fixed by it:
Now, the place it DID get fixed at is here (for example):
http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=75
First story, click the category Celebrity in any of these stories and it takes you to here: http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=115 which is the correct page. Before I used the 'solution' that was provided, these links also redirected to the link that included 'catid' rather than just 'id'.
To rephrase it, here...
To begin with (prior to any kind of messing with the coding) here is what would happen:
If you went here: http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=75, and on any story, you clicked the category Celebrity, it would take you to here: http://www.cadkitten.com/eFiction33/browse.php?type=categories&catid=115 which is not the right link. Meaning it had exactly the same problem as the rest of my site is still having.
Afterward the link there changed to id rather than catid and works just fine.
However, the rest of the site was not affected by the 'solution' at all and still malfunctions.
Does that make any more sense now?
What I am curious about is the first link of your second quote: what are you clicking to get there? Are you already viewing the browse page, or are you clicking a link in the categories block?
There's something really odd going on here. catid is working fine at all the sites I manage, though Tammy says it's supposed to be id.
The fix mentioned in that thread changes the output of the link, but if it's not changing it everywhere then it must be also somewhere else.
fanfiction_categories has the field catid, but maybe somewhere in the code it says to pull it as id (but catid still sometimes works because it is what's in the database?).
I'll have to look at the code for a bit to see if I can figure any of this out.
http://www.cadkitten.com/eFiction33/index.php
Click Celebrity
Receive incorrect page.
http://www.cadkitten.com/eFiction33/browse.php?type=categories&catid=115
Click Celebrity again.
Receive this page.
http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=115
Click J-Rock/J-Pop.
Receive this page.
http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=2
Click 12012.
Receive this page.
http://www.cadkitten.com/eFictiton33/browse.php?type=categories&id=75
That is how I got to that page.
The entire point of showing that page was to demonstrate that the links contained under the story listing itself actually work.
Story listing says
Categories: Celebrity > J-Rock/J-Pop > 12012, Celebrity > J-Rock/J-Pop > alice nine.
Click Celebrity.
You get here.
http://www.cadkitten.com/eFiction33/browse.php?type=categories&id=115
Which is a page that actually works.
I would have just shown the Most Recent page, but the problem there is that I didn't know how long it would be before someone responded and then the Most Recent page might not contain any stories to illustrate my point. Therefore I chose another link to demonstrate that point.
Maybe this entire thing would be less confusing if I just took off the 'solution'?
The fix mentioned in that thread changes the output of the link, but if it's not changing it everywhere then it must be also somewhere else.
Yeah, that was my conclusion. I was hoping someone would know where else it needs to be changed at in order for it to work. I looked for 2 days and couldn't find where else it's referenced at.
The correct fix is in the SVN.
I didn't know what you meant by SVN, so I did a forum search. I found this thread https://efiction.org/forums/index.php?topic=7161.0 that says the SVN was Updated.
I went to the sourceforge link and downloaded all the files that are there.
I went back into the files on my site and 'undid' the 'solution' so that the file is exactly as it was prior to me doing anything to it at all.
I then uploaded all the new files from that sourceforge link.
Now all of the Category links misbehave in the same manner they did to begin with. (Meaning I get the wrong pages the first time I click any of the links.)
Perhaps I did not understand what you meant by SVN still? Or my site is just some hopeless case now, lol.
Grab the latest changes in the SVN. You only need the changed file for blocks/categories/categories.php. Replace your existing file with the one there.
Ah, okay, I didn't know there were more revisions since the one that was specifically linked to from the thread I supplied in my last post. I got that file and now it works.
Thank you.
The links from the stories themselves don't work though. Changed the file corefunctions.php and now that part works as well. That seems to have solved all issues to do both things.
Question though, how do I connect to the SVN server and synchronize all updates so that I don't have to go and manually download each file from my site, change the code and then reupload them?
So, solution is to do this:
open includes/corefunctions.php and change &catid=$thiscat to &id=$thiscat
Go here: http://efiction.svn.sourceforge.net/viewvc/efiction?view=rev&revision=26 and download blocks/categories/categories.php and replace the old one with this one.
Problem should be solved.
