https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292017-03-16T08:15:40ZRedmineRedmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=773102017-03-16T08:15:40Zdi yu
<ul></ul><p>Ruby:2.2.0 redmine:3.3.1 mysql:5.7.17</p> Redmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=773112017-03-16T09:46:06ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li></ul><p>Did you run "rake db:migarate"?<br />Your log is same with <a class="message" href="https://www.redmine.org/boards/2/topics/50477">Update Redmine 3.2.1 -> 3.3.0 partially failed</a>.</p> Redmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=773352017-03-17T03:49:11Zdi yu
<ul></ul><p>Rerun the action "rake db:migarate",And execut the same steps again, no erroe occured. <br />But produce a similar log when creat the new custom attributes, as follows, how to solve the problem?</p>
<p>Processing by CustomFieldsController#new as HTML<br /> Parameters: {"utf8"=>"✓", "type"=>"IssueCustomField"}<br /> Current user: admin (id=1)<br /> Rendered custom_fields/formats/_regexp.html.erb (1.5ms)<br /> Rendered custom_fields/formats/_string.html.erb (212.2ms)<br /> Rendered custom_fields/_form.html.erb (216.2ms)<br /> Rendered custom_fields/new.html.erb within layouts/admin (218.2ms)<br />Completed 500 Internal Server Error in 238ms (ActiveRecord: 5.0ms)</p>
<p>ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xbd71748>):<br /> 1: <%= render :partial => 'custom_fields/formats/regexp', :locals => {:f => f, :custom_field => custom_field} <span>><br /> 2: <p><</span>= f.check_box :text_formatting, {:label => :setting_text_formatting, :data => {:disables => '#custom_field_url_pattern'}}, 'full', '' <span>></p><br /> 3: <p><</span>= f.text_field(:default_value) <span>></p><br /> 4: <p><</span>= f.text_field :url_pattern, :size => 50, :label => :label_link_values_to %></p><br /> lib/redmine/views/labelled_form_builder.rb:34:in `check_box'<br /> app/views/custom_fields/formats/_string.html.erb:2:in `_app_views_custom_fields_formats__string_html_erb___139403577_96357720'<br /> app/helpers/custom_fields_helper.rb:66:in `render_custom_field_format_partial'<br /> app/views/custom_fields/_form.html.erb:18:in `_app_views_custom_fields__form_html_erb__541308781_96596952'<br /> app/views/custom_fields/new.html.erb:4:in `block in <em>app_views_custom_fields_new_html_erb</em>_623355388_96652752'<br /> app/helpers/application_helper.rb:1051:in `labelled_form_for'<br /> app/views/custom_fields/new.html.erb:3:in `_app_views_custom_fields_new_html_erb__623355388_96652752'<br /> lib/redmine/sudo_mode.rb:63:in `sudo_mode'</p> Redmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=773362017-03-17T04:06:28ZToshi MARUYAMA
<ul></ul><p>No idea.<br />MySQL 5.7 is not supported.<br /><a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/RedmineInstall#Supported-database-back-ends">RedmineInstall</a></p> Redmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=870412018-09-07T20:10:59ZZer00 CooL
<ul></ul><p>The same with GNU/Linux Mint 19 Tara.<br />ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]<br />mysql Ver 14.14 Distrib 5.7.23, for Linux (x86_64) using EditLine wrapper<br />Redmine version 3.4.4.stable</p>
<p>I can't create a new issue with redmine.<br />I have installed Redmine with this tutorial : <a class="external" href="https://www.visionduweb.eu/wiki/index.php?title=Installer_Redmine_sur_Debian">https://www.visionduweb.eu/wiki/index.php?title=Installer_Redmine_sur_Debian</a></p>
<p>My way for resolve that, in french.</p>
<p>Lancer rake db:migrate<br />(Voir ce qui semble être la solution à la fin de ce message et noter que rake db:migrate a été tenté avec PassengerDefaultUser www-data puis avec PassengerDefaultUser redmine)<br />/usr/share/redmine/db/migrate$ sudo rake db:migrate</p>
<p>Des erreurs de droits d'accès sur les fichiers suivants sont reportées dans le terminal.<br />cd /usr/share/redmine/instances/default/config<br />sudo chown redmine:redmine secret_key.txt database.yml email.yml<br />sudo chmod 755 secret_key.txt database.yml email.yml<br />Les trois fichiers sont bien donnés à l'utilisateur et au groupe redmine avec les droits 755.</p>
<p>A la suite de ça, la procédure rake db:migrate affiche une nouvelle erreur de droits sur le fichier schema.rb<br />Changer les droits ne suffit pas pour rake db:migrate ou sudo rake db:migrate et l'erreur réapparaît.<br />/usr/share/redmine/db$ sudo chown redmine:redmine schema.rb<br />sudo chmod 755 schema.rb</p>
<p>cd /etc/apache2/mods-available<br />Je laisse le propriétaire et le groupe du fichier passenger.conf à root.</p>
<p>Je modifie la configuration dans le fichier passenger.conf<br />sudo nano passenger.conf</p>
<p>Vérifier PassengerDefaultUser www-data<br />Remplacer par PassengerDefaultUser redmine<br />Redémarrer Apache2 après la modification : /etc/init.d/apache2 restart<br />Relancer la mise à jour de la base de données avec sudo rake db:migrate<br />L'erreur lors de l'ajout d'une issue depuis Redmine a changée avec PassengerDefaultUser redmine mais l'ajout d'une issue reste toujours en erreur.<br /><strong>Je remet PassengerDefaultUser www-data et redémarre Apache2 et l'issue peut maintenant être créée.</strong></p>
<p>/usr/share/redmine/db/migrate$ sudo rake db:migrate<br />(in /usr/share/redmine)<br />/usr/lib/ruby/vendor_ruby/sprockets/digest_utils.rb:47: warning: constant ::Fixnum is deprecated<br />/usr/lib/ruby/vendor_ruby/sprockets/digest_utils.rb:51: warning: constant ::Bignum is deprecated<br />/usr/lib/ruby/vendor_ruby/sprockets/processor_utils.rb:110: warning: constant ::Fixnum is deprecated<br />/usr/lib/ruby/vendor_ruby/sprockets/processor_utils.rb:111: warning: constant ::Bignum is deprecated<br />Storing outgoing emails configuration in config/email.yml is deprecated. You should now store it in config/configuration.yml using the email_delivery setting.<br />/usr/lib/ruby/vendor_ruby/builder/xchar.rb:111: warning: constant ::Fixnum is deprecated</p>
<p>Malgré les warnings, cette fois, les issues peuvent être ajoutées à nouveau.</p>
<p>Je n'ai pas spécialement bien compris pourquoi l'erreur était présente.<br />Sûrement du fait que j'ai créé un utilisateur redmine qui est ajouté au groupe www-data mais surtout que les fichiers de redmine ont été donnés (chown) à redmine:redmine<br />(J'ai pu oublier de tout donner à redmine:redmine ce qui est possible aussi.)</p>
<p>Malgré tout, les issues peuvent être ajoutées à nouveau.<br />RESOLU.</p> Redmine - Defect #25342: ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xa91ee78>):https://www.redmine.org/issues/25342?journal_id=1127642024-02-05T02:54:12ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>Please reopen this issue if someone still experiences the same problem.</p>