I have downloaded and installed a drupal module 'silverpop-drupal' from git (https://github.com/ndewhurst/silverpop-drupal). I am facing a error in the code as below:

Fatal error: Call to undefined function db_fetch_array() in /.../.../.../.../silverpop/silverpopAPI.inc on line 338

How should I resolve the issue?

Comments

Shashwat Purav’s picture

In the file 'silverpopAPI.inc', please replace 'while ($row = db_fetch_array($result)) {' with 'foreach ($result as $row) {'.

Thank You,
Shashwat Purav

parag23’s picture

It worked.

Jaypan’s picture

It looks like that module is not ready for D7 use yet.

Shashwat Purav’s picture

Okay, I have been testing this module on one of my sites and facing some sort of difficulties. Could you please suggest alternative for silverpop integration?

Thank You,
Shashwat Purav

WorldFallz’s picture

Shashwat Purav’s picture

Okay. Thank you WorldFallz. I will surely give it a try.

Thank You,
Shashwat Purav