danapsimer / drupal2hugo

Convert a Drupal site to hugo.
MIT License
37 stars 14 forks source link

Error When importing from drupal 7 #9

Open tarek-chayya opened 6 years ago

tarek-chayya commented 6 years ago

Dear, When Trying to import a drupal 7 site, I'm getting the following: Error executing CCKFields select. Error 1146: Table 'drpl.content_node_field' doesn't exist select vid,name from vocabulary Error 1146: Table 'drpl.vocabulary' doesn't exist

Those tables are for drupal 6, how can i make the import from drupal 7? Thanks in advance for replying

luxpir commented 6 years ago

Same. Went back to compare source with rickb777 's original and there are now significant differences. Going to remove this version and try again with rickb777 's latest version.

EDIT: Got it installed, eventually, then ran into the same taxonomy problem as Mario here. Setting up empty taxonomies now to test...

EDIT 2: Ran it and got an export! The rickb777 (and probably everyone else's) code defaults to a db prefix. If you enter that as an option as -prefix '' (that's two ' apostrophe's side by side, i.e. blank) you should be able to run the gosh-danged thing.

Check out the comment at the rickb777 repo for more info.

tarek-chayya commented 6 years ago

hi @luxpir thank you any luck with rickb777 's original? im trying it and keep having pb with installation https://bitbucket.org/rickb777/drupal2hugo/issues/4/error-when-run-buildsh

luxpir commented 6 years ago

Hey @tarek-chayya I got back to you here - looked like you were having probs with your path?

I did get it to work in the end, so can confirm rickb777's updated version works for D7.

tarek-chayya commented 6 years ago

Thanks @luxpir i've try your solution, i got the same error i've tried to install go inside ~/go it always generate the same error

I'm trying now to use go version 1.10 instead of 1.10.1 can you please inform me what go version you are using?

luxpir commented 6 years ago

I used 1.10.1.

go env GOPATH gives ~/go but I installed go to /usr/local/go/bin. One runs go itself (the latter), the other runs the go binaries, if I'm not mistaken.