I installed two new plugins tonight. Gallery-Link, a plugin that will allow you to create links to random Gallery pages. and MT Rebuild. The Gallery link script works great, though I'm getting an error on my server. I think that might be because I have two instances of the code. Works in both browsers though so I'm not particularly worried. I got a bit excited about MT Rebuild. It seemed like the perfect utility for changing the photos and rebuilding the sidebar items. Seems it doesn't work with MT 3.2 so I'm disappointed.
I've been searching all night for alternative ways to get MT to rebuild at a set time but with no luck. Perhaps I'll just look for another way to add graphical links to photos on my Gallery website.
Update May 2: Well it seems that MT Rebuild does work with MT 3.2 (thankyou Tim for the comment), once again it was me. I got emailed errors from the CRON job and thought it was the script not working. I have now removed the offending pieces of code from the templates after finding similar posts talking about similar problems. SecurityCode and TemplateNote were the offenders. So tonight I await another email from the CRON job telling me all went well? Fingers crossed.
Update May 3: I had about 15 emails from the Cron job, the first 14 were all my own fault, and when I finally got it right, these were the errors I received during the rebuild:
"my" variable $album masks earlier declaration in same scope at /home/bestoday/public-html/cgi-bin/mt/plugins/gallery-link.pl line 67.
"my" variable $photo masks earlier declaration in same scope at /home/bestoday/public-html/cgi-bin/mt/plugins/gallery-link.pl line 67.
No handler exists for tag TemplateNote at /home/bestoday/public-html/cgi-bin/mt/lib/MT/Builder.pm line 170.
This last line repeated itself over 200 times and last night I thought I removed all reference to it. Even after removing that, it seems that my original purpose for installing MT Rebuild is no longer necessary. I removed the 2nd instance of the code to generate a random image and still am receiving errors so have gone back to the original code for the random photos which updates every time the page is reloaded. Unfortunately there is no link to the original photos. If anyone has a solution to this I'd love to hear. I have tried using an iframe previously, and though that worked okay the code then was not compliant.
Update May 4:After receiving comments from authors of both these plugins, I've decided to give it another go on my Spitting Into the Wind blog. That site is a true 3.2 install, unlike this weblog, which still uses the 3.17 templates. TemplateNote is not included in the new templates so shouldn't present a problem, though it's now gone from this blog's templates too. SCode has never worked correctly from the day I installed it and the activity log showed numerous errors long before I installed these two new plugins. SCode was also causing the plugins page in system overview to die when trying to open in IE. (Plugins were viewable in Firefox though :)
I've used two calls for the <MTGalleryLinkRandom/> (shouldn't there be a space before the />?). I'm wondering now if the problem could have been there, because I added a space before, but not on the new blog. It will be interesting to see the Cron report I get now when MT Rebuild does it's thing.

Leave a comment