Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Greg Millam
RE: Cannot load templates after upgrade [ reply ]  
2005-08-08 05:50
Yup. It's my bug :-/.

Fixed in CVS. We'll aim to release 2.1.3 soonish.

We're considering getting rid of Gems altogether until we can figure out just what is going on with it. Stay tuned for that!

By: Lars Olsson
RE: Cannot load templates after upgrade [ reply ]  
2005-08-04 16:22
Hello agin!

I'm sorry, but the fix doesn't seem to help. I still get the same error message.

I both tried to upgrade the gem directly and also uninstalled it completely before installing it again, but it still won't work.

After reinstalling the 2.1.0 version of the gem everything works fine agin, though.

I don't know if it's a configuration issue (I've installed Ruby from source on a shared Debian box), but feel free to contact me at lasso at lassoweb dot nu if you need some more info on my setup.

Thank you for providing this excellent package!

/Lasso

By: Brian Wisti
RE: Cannot load templates after upgrade [ reply ]  
2005-08-04 07:33
I just added a new gem with Greg's permissions fix in place. Would you mind updating to the 2.1.2 gem, or failing that doing 'rake install' with the source gz?

I'm hoping that the fix really is this simple. Let us know how it goes!

Kind Regards,

Brian Wisti

By: Greg Millam
RE: Cannot load templates after upgrade [ reply ]  
2005-08-04 07:01
Looks like it's a gems thing.

Wisti's looking into this, but I've never trusted gems :D.

My take is to install it by hand. 'rake install' in the untarred tarball.

Although given our history of problems with installers, might want to umask 022 before that, as on my umask 077 system, it installs the PageTemplate directory with poor permissions.

Man, I hate installers :D.

By: Brian Wisti
RE: Cannot load templates after upgrade [ reply ]  
2005-08-04 06:40
Eek! We'll take a look at that right away. Thanks for letting us know!

Kind Regards,

Brian Wisti

By: Lars Olsson
Cannot load templates after upgrade [ reply ]  
2005-08-04 06:37
Hello,

this morning I upgraded my version of PageTemplate to 2.1.1 (via Rubygems) and all my pages just went *kaboom*. The error I get is:

(NoMethodError) private method `load' called for #<PageTemplate:0x40226344>

My pages all worked ok with 2.1. The code that generates the pages looks like this:

begin
# Import modules
require 'PageTemplate'
require 'web'

# create template object and read
# template from file
template = PageTemplate.new
template.load('templates/index.tpl')

# Add variables
template['foo'] = 'bar'

Web::process { Web << template.output }
rescue Exception => e
Web::process { Web << Web.escapeHTML("#{e.class} - #{e.message}") }
end

Any ideas

/lasso