I modified some terms in "category". This gave me a "page not found" error on the scoops with the changed taxonomy. I then tried installing the pathauto module. I figured I could delete clean urls and rebuild with pathauto. This seemed to make things worse. So I deleted the modified terms and the assciated scoops altogether and disabled pathauto. I created 2 entirely new terms with different names and reposted all the lost scoops. This worked great all day today.
I was happy and then for some reason I can't explain, after creating a brand new term and then posting a scoop, I got a "page not found" error.
Did I break my entire site?
Comments
Comment #1
mercmobily commentedHi,
This looks urgent...
Please go to Admin -> Settings -> Drigg Module and hit the button at the top, "RUn the mass-recalculation of the category aliases".
This should fix your site.
Do _not_ use pathautho with Drigg -- at least not for Drigg nodes. It will break the hell out of Drigg...!
To optimise DB calls, each Drigg node has the "short category name" stored in it. If you change a category name, you need to do the "recalculation" -- which basically will update existing nodes.
I will NEED to make this clear in the documentation, because people with established sites seem to be getting stung by this.
Bye,
Merc.
Comment #2
mercmobily commentedHi,
I re-tested it, and I am now 99.9999% sure that the problem is exactly what I described above, and that a recalculation will fix the lot.
Please reopen the problem if there are problems. SHOULD that be the case, please make sure you provide your site's URL!
Bye,
Merc.
Comment #3
wwwoliondorcom commentedHi Merc !
I face the same situation as the original poster, my drigg website was ok but then I added a new Category and tried to publish a new scoop: I got the Page not found error.
But then I tried to post the same scoop using a Category I previousl created the first time I setup the whole website, and it worked.
So the problem seems to happen only when I create a new category, and to be sure I created a new category again and tried to publish: Page not found again.
When I look in the Content the page has been created, but I can't edit it, I can just delete it.
Of course I tried to recalculate the category aliases before doing all this, but it didn't help.
Any idea ?
Thanks.
Comment #4
mercmobily commentedHi,
Escalating this issue's priority to the point of working on it on a Saturday morning of a long week-end...
I am looking into this right now.
Merc.
Comment #5
mercmobily commentedHi,
OK, just to let you know that I have finally managed to reproduce this error, and am working of a fix as we speak.
Bye,
Merc.
Comment #6
mercmobily commentedHi,
OK, I found the problem. It was pretty hideous...
The cache for the categories wasn't being regenerated properly.
It should be fixed now. Please test it!
(Version 1.12)
Merc.
Comment #7
wwwoliondorcom commentedYou're so great !
I will test it and tell you.
Thanks again.
Comment #8
mercmobily commentedHi,
I am not so great, or this bug wouldn't be here in the first place :-D
Please note that the fix is there to PREVENT problems in the future. Basically, it will not allow you to delete a term IF there are drigg_node nodes using it as the "category" term.
It ALSO fixes a bug in the recalculation of a cache variable, which means that if you add a category, it will be seen right away.
What I cannot do, is fix a situation where a category was deleted, and drigg_nodes used that category... which is a pretty nasty thing to happen (which is why I prevented it). If that is your case, you will need to associate a Drigg category to those nodes manually, adding records to the table term_node -- sorry about this. I should have prevented this possibility in the first place :-(
You (and your code) live and learn...
Bye,
Merc.
Comment #9
wwwoliondorcom commentedI think it's ok now:
I previously got the page not found error with one category, I deleted it, ran the mass-calculation, then created it again.
I posted the same scoop in the same category and it worked.
I don't know if I should run the mass-calculation again after having created this category but I was able to publish the scoop anyway.
Comment #10
mercmobily commentedOK!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.