I love it when a plan comes together…
A favorite quote from one of my favorite television shows, The A-Team.
That’s what I felt like saying yesterday when I was finally able to figure out a longstanding “bug” that I was having with the Trailblazin Ministries website and the drupal engine I was using. To make a long story short, I’m using a feature to automatically publish content at a future date that I set; but, when content would get published, comments would be disabled (and I wanted them enabled by default). So, after an article was published & live on the site, I’d have to manually go back and edit it to turn on the comments, which totally defeats the purpose of being able to automate the publishing of my content.
Well, I did some playing around with my local install of TM (via Wampserver) and tinkering with the settings. The main issue is that when “cron” is run (the tool that runs background processes on the site) it runs as an anonymous user, which does not have permission to administer comments (thus they get turned off). After playing around with some test posts, I found the problem. Apparently, I was using a method of “save post” & “publish post” together with “publish latest pending revision” (I have a revisioning system setup) and that was causing the issue. Whenever a post is saved it used the permission of that user, which is anonymous in this case. So, I simply undid the “save post” & “publish post” options & just left the “publish latest pending revision” and all is well!
I’m glad I got it figured out. I had posted on the Drupal forums, but that was no help since nobody replied; but, there’s a great feeling of satisfaction knowing that I was able to figure it out on my own, especially knowing that the error was caused by my own stupidity/ignorance. Either way, I’m happy and Trailblazin Ministries is working like a charm, just like I want it to!
