I am seeing this error on my page

Notice: Undefined index: extension in require() (line 207 of /home/....../public_html/includes/filetransfer/sftp.inc).

I have no idea from where. I tried doing search but I did not see any help. Could you please guide why this message is poping up on all the pages.

  • I have not done any changes since yesterday , it was working fine, today morning I opened I see this error
    – Ashish
    Commented Jul 27, 2015 at 14:58
  • Looks like someone else was hacking your site, if that's the case. We can't know who, or what he did, or how to reverse it.
    – Mołot
    Commented Jul 27, 2015 at 22:17
  • That's not a reason to downvote the question. It's a legit request and the answer below advised him how to address best he can, given the situation. Drupageddon-related hacks are difficult to spot because of the varied ways sites were hacked and nearly impossible to completely remedy this late after the fact.
    – scotself
    Commented Jul 28, 2015 at 16:32
  • Thanks Scotself ,I was able to fix the issue .. It was helpful Appreciate for standing by and helping ..
    – Ashish
    Commented Jul 28, 2015 at 16:41

1 Answer 1


There is not an sftp.inc in the filetransfer folder in Drupal core by default. Perhaps more information on your contributed modules in use, a custom module, Drupal version, etc. might help...

  • Thanks, Is it possible that file might get deleted automatically , bcoz I have not made any changes , only thing I have done is, deleted all the spam comments and thereafter I am seeing this error
    – Ashish
    Commented Jul 27, 2015 at 16:07
  • What version of Drupal are you running? Have you looked at the contents of sftp.inc?
    – scotself
    Commented Jul 27, 2015 at 16:51
  • Iam using 7.16, No I have not , you want me to check for the file sftp.inc right? whether it exist in folder or not
    – Ashish
    Commented Jul 27, 2015 at 19:33
  • That would be a start, but my first inclination is that since you're 22 releases behind in Drupal core updates (now on 7.38) that you're really dealing with a symptom of "Drupalgeddon". drupal.org/PSA-2014-003 gives some info related and the Drupalgeddon module helps quite a bit in tracking down the places where you might have been hacked and provides a lot of info in rectifying those. HOWEVER! these steps are NO guarantee that your site is not permanently and irreversibly hacked. Lots of reading material out there on this. Good luck!
    – scotself
    Commented Jul 27, 2015 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.