braini75 / msproject_import

Redmine-Plugin: XML-Task-Importer for MS Project
9 stars 11 forks source link

ArgumentError (undefined class/module MsprojResource) #15

Closed jojomach2012 closed 7 years ago

jojomach2012 commented 7 years ago

Hi Thomas,

I am trying to use your plugin, but it is impossible for me to be able to import my data and I can not understand and correct the bug.

This is what I get in the logs:

Have you ever encountered such problems? If yes, how to fix it plz?

I thank you in advance.

Have a good day

capture

braini75 commented 7 years ago

Which Project Version are you using?

jojomach2012 commented 7 years ago

I use the latest version of the plugin present on the git. I downloaded it at the beginning of the week only, I had no problems during the installation.

braini75 commented 7 years ago

Sorry, I mean which version of MS Project ;)

jojomach2012 commented 7 years ago

Ah sorry, it's MS Project 2010. I seen on the documentation's plugin that it supports 2007 or later no ?

jojomach2012 commented 7 years ago

At times, I do not get the same error that I just presented.

I found myself with an ActiveRecord: RecordNotFound error, I modified in the plugin code the search for an issue with root_id = 0 because actually in my database I do not have records with this value for the attribute root_id But root_id = 1 should be able to find the corresponding record.

image

jojomach2012 commented 7 years ago

It's the same with original code

image

braini75 commented 7 years ago

I think I've found the issue. Does your redmine Server has a /tmp Directory writable for the user of the http-Service of redmine. What OS is redmine running at?

braini75 commented 7 years ago

Please try my new Version.

jojomach2012 commented 7 years ago

OS : RHEL6 - Linux I have the /tmp directory writable by my user of the http-Service. I can found on it the /msproj_imp created by the plugin with files on multiple directories.

Ok I will try it, thanks

jojomach2012 commented 7 years ago

I have the same problem :

On production.log : image

On the webapp : image

jojomach2012 commented 7 years ago

I managed to find a solution to correct the problem but I do not understand the principle. In my log file, I see that it looks for an Issue with id = 0 (WHERE Issues.root_id = 0). So I'm going directly into my database to place a record with its values. What is the purpose of searching for an issue with the primary key id = 0? Why do we need it? Recordings starting at 1, how can one place a corresponding record in this case?

braini75 commented 7 years ago

I probably found the Problem! Maybe you forgot to load default configuration data ('Step 7 - Database default data set' in https://redmine.org/projects/redmine/wiki/RedmineInstall): RAILS_ENV=production bundle exec rake redmine:load_default_data Please retry with a clean Installation!