akhoury / nodebb-plugin-import

migrate your old crappy forum to NodeBB
MIT License
78 stars 31 forks source link

Cannot read property 'get' of undefined acp.js.270 #213

Closed krombox closed 7 years ago

krombox commented 7 years ago

Good day. I am trying to use this plugin and import data from old forum.

I am facing an issue when i click Don't Flush NodeBB DB, just import and Flush NodeBB DB, then import. The problem is nothing happened. On console i see an error Uncaught TypeError: Cannot read property 'get' of undefined on acp.js:270 line

$.ajax({ type: 'post', data: { _csrf: csrf.get(), config: config },

NodeBB version v1.2.1 I tried to console.log(csrf) and it is undefined. Could someone help with this?

bdharrington7 commented 7 years ago

Did you read the readme

krombox commented 7 years ago

Did i missed something?

LATEST VERSION ONLY SUPPORTS

seams i am using latest.

bdharrington7 commented 7 years ago

You have to go to the next line:

LATEST VERSION ONLY SUPPORTS: NodeBB v1.0.0

krombox commented 7 years ago

Sorry, my fault. For some reason after text LATEST VERSION ONLY SUPPORTS i though that plugin could be used on any version >= v.1.0.0, but not just 1.0.0 . Plugin works well. Good job.

Thanks for your help.