function feeds_dbg

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 feeds.module feeds_dbg($msg)
cle7 feeds.module feeds_dbg($msg)
elmsmedia7 feeds.module feeds_dbg($msg)
icor7 feeds.module feeds_dbg($msg)
meedjum_blog7 feeds.module feeds_dbg($msg)
mooc7 feeds.module feeds_dbg($msg)

Logs to a file like /tmp/feeds_my_domain_org.log in temporary directory.

Related topics

2 calls to feeds_dbg()
FeedsHTTPFetcher::request in sites/all/modules/ulmus/feeds/plugins/FeedsHTTPFetcher.inc
Implements FeedsFetcher::request().
PuSHEnvironment::log in sites/all/modules/ulmus/feeds/plugins/FeedsHTTPFetcher.inc
Implements PuSHSubscriberEnvironmentInterface::log().

File

sites/all/modules/ulmus/feeds/feeds.module, line 787
Feeds - basic API functions and hook implementations.

Code

function feeds_dbg($msg) {
  if (variable_get('feeds_debug', FALSE)) {
    if (!is_string($msg)) {
      $msg = var_export($msg, TRUE);
    }
    $filename = trim(str_replace('/', '_', $_SERVER['HTTP_HOST'] . base_path()), '_');
    $handle = fopen("temporary://feeds_$filename.log", 'a');
    fwrite($handle, gmdate('c') . "\t$msg\n");
    fclose($handle);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.