GithubHelp home page GithubHelp logo

redmine_holidays_plugin's People

Contributors

taktos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

redmine_holidays_plugin's Issues

404 error entering settings

When I go to /settings/plugin/redmine_holidays_plugin I receive 404

The page you were trying to access doesn't exist or has been removed.

not working on redmine 2.5.1

Plugins installed ok

Nothing changed in calendar tab

My error, unzip plugin removing "_plugin" from directory

Please, improve install description

Problems after installing

After installing the plugin I restarted Redmine and got this:

We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

I uninstalled the plugin and had access to Redmine again.
I am using the latest release of Redmine (2.4.2)
Hope you can help me.

Holidays patch

Hello, I've installed the fork of Eivy in my server, but it crashed the settings page. Probably due to the Gemfile (which does not specify the vesion of the gem). It automatically downloads the latest and greatest gem. I've downgraded this gem requirement to v3.30 and it works fine for me.

You can check the patch I did here:

gatATAC@5ddc3fc

I add this issue here because Envy's fork has not the issue module active.

Thanks for this fantastic plugin.

Redmine 3.3.0 (stable) error when using admin:

Just installed hits plugin as it looked new than another pluging named "holdays" but when I try to use the admin I get this:

Completed 500 Internal Server Error in 301ms (ActiveRecord: 204.9ms)

actionView::Template::Error (Undefined method `regions' for Holidays:module):
  2: <table>
  3:      <tr>
  4:            <td><%= (:region) %></td>
  5:            <td><%= select_tag("settings[region'], options_for_select(Holidays.regions, @settings['region'])) %></td>
  6:     </tr>
  7: </table>
  8: </p>
  
  plugins/redmine_holidays_plugin/app/views/settings/_holidays_settings.html.erb:5:in `_plugins_redmine_holidays_plugin_app_views_settings__holidays_settings.html.erb__146967758765293199_57049560'

Is there a simple way to fix this?

Internal error

After installing, I accessed to redmine and got this:


Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.


version:
↓↓↓↓↓
Environment:
Redmine version 2.5.0.stable
Ruby version 2.0.0-p647 (2015-08-18) [x86_64-linux]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
recurring_tasks 2.0.0-pre
redmine_holidays_plugin 0.0.1
↑↑↑↑↑

holidays:
holidays (3.1.2, 2.2.0)

Please help me.

5.x compatibility?

Having trouble getting this working on Redmine 5.x.

1st step needed to get the app working was to push the holiday gem back to old version as suggested elsewhere. In the plugin Gemfile:
gem 'holidays', '3.3.0'

However, when calling up the Calendar in a project I now get:


I, [2023-09-18T10:02:08.453354 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Started GET "/projects/dhtwg/issues/calendar" for 85.6.244.95 at 2023-09-18 10:02:08 +0000
I, [2023-09-18T10:02:08.454239 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Processing by CalendarsController#show as HTML
I, [2023-09-18T10:02:08.454289 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]   Parameters: {"project_id"=>"dhtwg"}
I, [2023-09-18T10:02:08.523557 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]   Current user: admin (id=1)
I, [2023-09-18T10:02:08.673637 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]   Rendered calendars/show.html.erb within layouts/base (Duration: 42.5ms | Allocations: 32927)
I, [2023-09-18T10:02:08.673747 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]   Rendered layout layouts/base.html.erb (Duration: 42.7ms | Allocations: 32988)
I, [2023-09-18T10:02:08.673953 #372946]  INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Completed 500 Internal Server Error in 220ms (ActiveRecord: 68.0ms | Allocations: 136277)
F, [2023-09-18T10:02:08.675176 #372946] FATAL -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]   
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] ActionView::Template::Error (undefined method `holiday?' for Sun, 27 Aug 2023:Date):
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]      8: <% day = calendar.startdt
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]      9: while day <= calendar.enddt %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]     10: <%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == calendar.first_wday %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]     11: <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %><%= ' holiday' if day.holiday?(Setting.plugin_redmine_holidays_plugin['region']) || day.wday == 0 || day.wday == 6 %>">
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]     12: <p class="day-num">
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]     13:   <% if day.holiday?(Setting.plugin_redmine_holidays_plugin['region']) %><span style="float:left; padding: 1px;"><%= day.holidays(Setting.plugin_redmine_holidays_plugin['region']).first[:name] %></span><% end %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]     14:   <%= day.day %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]   
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] plugins/redmine_holidays_plugin/app/views/common/_calendar.html.erb:11
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] app/views/calendars/show.html.erb:51
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Anyone have any suggestions for this?

NameError: uninitialized constant Holidays

After executing below command I got below error
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

NameError: uninitialized constant Holidays
DL is deprecated, please use Fiddlerake aborted!

Could somebody help ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.