Displaying 20 results from an estimated 7000 matches similar to: "TypeError (can't modify frozen hash) - Production Mode Only"
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
Hey guys,
Started running unicorn in a production server like two weeks ago.
It''s been running smoothly, but looking at the logs found 44
exceptions like this:
E, [2010-06-02T16:17:15.117071 #22680] ERROR -- : Read error:
#<TypeError: can''t modify frozen string>
E, [2010-06-02T16:17:15.117270 #22680] ERROR -- :
2007 Aug 09
0
TypeError: $_ value need to be String (nil given)
Hello all,
I am trying to run a unit test in a Rails project of mine (Rails
1.2.2, Ruby 1.8.4 (2005-12-24) [i486-linux]), and am running into the
following error:
1) Error:
test_pattern_splits(PatternSplitTest):
TypeError: $_ value need to be String (nil given)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/
validations.rb:74:in `split''
2009 Jun 20
1
can't modify frozen hash
Hi,
When I upgraded my rails application to rails 2.3.2 I am getting
error ''can''t modify frozen hash'' on using
@something.update_attribute(params[:something]).
Can anyone help me who is familiarize with this bug?
Thanks,
2006 Oct 17
0
TypeError (can't convert Bignum into Hash):
This error has been driving me nuts. It happens with no regularity or
pattern and causes a 500 App error. Refreshing will always display as
normal (http 200)
The back trace always starts with
TypeError (can''t convert Bignum into Hash):
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:342:in
`update''
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my
mistakes, this time I''m trying to upload 2 files from a form for later
processing, however, after I hit the "Submit" button. I keep getting this
error:
TypeError in UploadFilesController#create
app/controllers/upload_files_controller.rb:28:in `new''
2013 Jan 04
3
AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
Hi there!
We're trying to compile Samba 4.0.0 on a fresh install of AIX 6.1 (6100-02-01-0847), with Python RPM's from perzl.org installed into /opt/freeware. We're also using XLC 12.1.
Unfortunately, we can't even run ./configure, as we're getting errors from the waf system. Here's what we get:
bash-4.2# pwd
/admin/tst/build/samba-4.0.0
bash-4.2# ./configure --help
2006 Nov 20
2
Passing object into results - "can''t convert DRb::DRbUnknown into Hash - (TypeError)"
Hi,
I''m using backgroundrb to get RSS feeds and pass them back to the
controller. I''m using the Ruby RSS library to parse the feed, which returns
an RSS object. After that I pass the object into the results hash, but
that''s when this error occurs. Basically, this is what I have:
rss = RSS::Parser.parse(response.body)
results[:feed] = rss # error!
20061120-15:46:19
2008 May 03
2
ActionMailer Multiple recipients
I am using ActionMailer to send mails. I want to send mails to
multiple recipients which I get from a view. Here is the controller
code.
def groupcorres
user = User.find(session[:user_id])
address = Array.new
lines = Array.new
args = params[:id].to_s # params[:id] is an array of user screen
name. ex: j_doe, d_john
lines = args.split(",")
for line in lines
2009 Jun 22
1
getting error can't modify frozen hash
Hi,
When I upgraded my rails application to rails 2.3.2 I am getting
error ''can''t modify frozen hash'' on using
@something.update_attribute(params[:something]).
Can anyone help me who is familiarize with this bug?
Thanks,
2010 Mar 23
0
Frozen hash problem
I''d like to delete some records before saving them. I ran this
experiment:
before_save :prune_lab_datas
def prune_lab_datas
lab_datas.each do |lab_data|
lab_data.destroy
end
raise lab_datas.to_yaml
end
But nothing seems to be deleted in the hash:
---
- &id001 !ruby/object:LabData
attributes:
created_at: 2010-03-21 22:16:06
unit_id: "3"
2006 Jul 19
1
Is params hash frozen?
I''m finding I can''t manipulate the params hash in my controller.
--
Posted via http://www.ruby-forum.com/.
2008 May 15
0
partial_updates feature in rails 2.1, failing to save because of validate_presence _of on other attributes in the table
I am trying to use the new partial_updates feature in rails 2.1,
http://dev.rubyonrails.org/changeset/9157
but it is failing by trying to use all validations in the model
instead of just the changed attributes. The model works as I can
successfully .save(false) but if I try a regular .save I get an error
saying that it could not save because of validations problems. I want
to use this to get
2009 Apr 02
1
"can't modify frozen string" error in Ajax.Updater
I''ve just deployed my RoR app to a host that uses dispatch.cgi instead
of Mongrel and came across this issue when using AJAX. The same issue
has been highlighted a year ago, (on this list) <http://
groups.google.com/group/rubyonrails-talk/browse_thread/thread/
872fed1ff554c9a4> and (on Rails Trac) <http://dev.rubyonrails.org/
ticket/10365>.
In short, when some browsers enact
2006 Nov 28
0
tzinfo_timezone/tzinfo can't modify frozen object
Hi.
I get the following error off and on in my app. I''m running latest
EdgeRails in development mode, and use the tzinfo_timezone plugin and
the tzinfo 0.3.3 gem.
I''ve checked line 210 in tzinfo_timezone.rb but cannot relate that to
an object modification in tzinfo. Any tips much appreciated.
ActionView::TemplateError (can''t modify frozen object) on line #29 of
2010 Feb 09
2
undefined method `generate_token'
Hi Everyone...
I''m following a railscast episode on how to implement an invitation
feature.
It''s going really well, but i''ve hit a minor snag that I cant get
over..
undefined method `generate_token'' for #<Invitation:0x2563bf8>
The invite form allows me to check for a user, and whether they
already have registered. If they have, the invitation is not
2008 Jun 30
1
[PATCH] tools/python: fix TypeError for 17903:0728459b3c8d
Hi,
If `hda'' is used in a domain config file and domain-0 has /dev/hda,
creating the domain failed by TypeError:
File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in
getDeviceDetails
(device_path, devid) = blkif.blkdev_name_to_number(dev)
TypeError: unpack non-sequence
Signed-off-by: KUWAMURA Shin''ya <kuwa@jp.fujitsu.com>
--
KUWAMURA
2011 Mar 11
2
int to string TypeError annoyance
Hi All,
In Perl,
$db->set_metadata( "foo", 10 );
Results in,
TypeError in method 'WritableDatabase_set_metadata', argument 3 of type
'std::string const &'
It looks like this is thrown by the SWIG
std::string typemap. Does someone with better SWIG skills than me know how
to fix SWIG such that it converts the int to a string rather than croaking?
(And
2009 May 12
0
RJS Error: TypeError: while using active scaffold
Hi,
I get an unexpected error because i havent do any chnages in any
javascript files, after installing active scaffold. Before 1-2 days my
application is working fine but from yesterday i got the error for RJS
as below while i tried for show action.
RJS error:
TypeError: $("#console__private_messages-messages") is null
$("#console__private_messages-messages").html("\n
2007 Oct 30
1
flash should be empty (typeError)?
Hi,
I''m trying to test wether flash.now[:okay] is not empty, but I always
get the following error.
TypeError in ''UserController'' can''t convert String into Integer
Can''t I test the flash if they are not emtpy?
Thanks for help :D
//Jamal
--
Posted via http://www.ruby-forum.com/.
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to
delete them with a link_to_remote button for each. i am giving them ids
with the same name and a serialized number. when trying to access them
with javascript/rjs, strange things happen: "RJS Error: TypeError:
$(element) has no properties?. is this a rails, rjs or prototype bug? or
am i missing something?
see my code