 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Karsten Hoffmann
RE: load Error [ reply ] 2006-02-07 19:57
|
I have had the same problem with gems. So I deinstalled the gems package, fetched the tarball and set the package manually up.
Now it works fine with CGI scripts.
Karsten
FYI: Windows XP, Ruby 1.8.2, Abyss Web Server, latest version of PageTemplate
|
By: Brian Wisti
RE: load Error [ reply ] 2006-01-04 18:41
|
|
I filed this as a new bug (#3183), even though it was exactly the same behavior. I wanted to address any environment where taintedness was an issue. This has been fixed in CVS, and I am working on a new release right now.
|
By: Noam A.
RE: load Error [ reply ] 2005-12-27 08:22
|
I downloaded 2.1.3, and installed through gems. After the install I tried to run setup.rb in the gem directory [to try to solve the problem but that didn't do too much].
I'm running windows XP Pro with the latest Apache, and Ruby 1.8 and I think I have the latest mod_ruby.
Thanks
|
By: Noam A.
load Error [ reply ] 2005-12-27 06:24
|
Hi I set up Html Template, and I am getting an error from my server when trying to load a template, here is my apache log:
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: error in ruby
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:221:in `exists?': Insecure operation - exists? (SecurityError)
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:221:in `get_filename'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:219:in `each'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:219:in `get_filename'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:191:in `get'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:481:in `compile'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from C:/Program Files/Apache Group/Apache2/htdocs/plus-minus/testRuby.rbx:34
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/apache/ruby-run.rb:53:in `load'
[Tue Dec 27 01:31:10 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/apache/ruby-run.rb:53:in `handler'
Here is my rbx file:
#!c:\ruby\bin\rubyw.exe
require "cgi"
require "PageTemplate"
cgi = CGI.new
print cgi.header("type"=>"text/plain")
template = PageTemplate.new()
template.load('index.html')
cgi.out { template.output }
It seems to load the page fine from the interperter, but from the script I get an error.
|
|
 |