danapsimer / drupal2hugo

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

fails to run #4

Open rickysarraf opened 7 years ago

rickysarraf commented 7 years ago

Hello,

I'm trying to use this tool to migrate my drupal 7 instance to Hugo.

I ran into the following problem. Is there any help you can give.

rrs@learner:/var/tmp/$ ./drupal2hugo -db rhut_staging -user rrs -pass XXXX -v
gorptest: 16:59:49.469941 select cnf.field_name, type, global_settings, required, multiple, 
      db_storage, module, db_columns, locked, cnfi.type_name as type_name
      from drp_content_node_field cnf, drp_content_node_field_instance cnfi 
      where cnf.field_name = cnfi.field_name and cnf.active = 1 and cnfi.widget_active = 1 []
Error executing CCKFields select.
dial tcp: missing port in address localhost
gorptest: 16:59:49.470193 select vid,name from drp_vocabulary []
select vid,name from drp_vocabulary
dial tcp: missing port in address localhost
2017-02-10 / 16:59:49 ♒♒♒  ☹  => 1  
lumbric commented 7 years ago

I think pull request #5 fixes this issue.

rickysarraf commented 7 years ago

@lumbric Thanks. I tried your recommendation today. But it failed with a different error. Any help ?

rrs@priyasi:/tmp/drupal2hugo (master)$ go get github.com/fale/drupal2hugo
# github.com/fale/drupal2hugo/model
/home/rrs/go/src/github.com/fale/drupal2hugo/model/db.go:74: not enough arguments in call to DbMap.TraceOn
    have (string, *log.Logger)
    want (string, string, gorp.GorpLogger)
12:33 ♒♒♒    ☹  => 2  
rickysarraf commented 7 years ago

I got around it by applying your fix and successfully building it. Thankx @lumbric

rickysarraf commented 7 years ago

This still gives me errors :-(

rrs@priyasi:/tmp/drupal2hugo (master)$ ./drupal2hugo -prefix="" -db rhut_staging -user rrs -pass XXX -v
gorptest: 12:58:57.091952 select cnf.field_name, type, global_settings, required, multiple, 
      db_storage, module, db_columns, locked, cnfi.type_name as type_name
      from content_node_field cnf, content_node_field_instance cnfi 
      where cnf.field_name = cnfi.field_name and cnf.active = 1 and cnfi.widget_active = 1 [] (1.198642ms)
gorptest: 12:58:57.092310 select vid,name from vocabulary [] (115.366µs)
select vid,name from vocabulary
Error 1146: Table 'rhut_staging.vocabulary' doesn't exist
12:58 ♒♒♒    ☹  => 1