Hi,

I have this message when a try to import a file.

­Fatal error: Only variables can be passed by reference in /var/www/drupal/modules/import_html/import_html.module on line 1940

This is the line 1940:
return $import_html_file_classes[strtolower(array_pop(explode('.', $filename)))];

Server config:
PHP Version 5.0.5-2ubuntu1.6
Apache 2.0

Comments

dman’s picture

Status: Active » Needs review

Fatal error? Funny I hadn't seen it. I guess all my file have suffixes and it never got tested.
I've replaced the line with

  $bits = explode('.', $filename);
  return $import_html_file_classes[strtolower(array_pop($bits))];

Commited to CVS. I Guess that'll do the trick

dman’s picture

Status: Needs review » Closed (fixed)