When disabling the devel.module (or not having installed?) the site breaks.

Either use
if( module_exists( 'devel')){ dsm()} or replace it with watchdog or drupal_set_message I guess.

Maybe it's a good idea to add both modules into the component list too.

Comments

clemens.tolboom’s picture

I changed this line into

drupal_set_message( "An error occurred while getting ". $url ."\n". t('Error') ."\n". print_r( $errors, TRUE) ,'warning');

Looks ok to me.

clemens.tolboom’s picture

This gives a little more informatie:

drupal_set_message( '<pre>'. 
  "An error occurred while getting ". $url ."\n". "Arguments:\n- " . implode("\n- ", $args) ."\n\n". 
  t('Error') ."\n". print_r( $errors, TRUE) .'</pre>', 'warning');

There should maybe more debugging?

sime’s picture

Status: Active » Fixed

Heya.

Fixed this. That said, I have not really got the setting errors thing worked out. Most recently I've tried using services_error() on the server side, and if this is the right thing I should update the whole module to do this properly.

Maybe we should open a new case on this. Interested in your opinion.

.s

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.