I'm running into what looks like an incompatibility for NSM htaccess generator with ee2.8.1

Trying to save entries will result in the following error:

*Fatal error: Call to undefined function do_hash() in /home/dev/system/expressionengine/third_party/nsm_htaccess_generator/ext.nsm_htaccess_generator.php on line 224*

While trying to go into the settings returns the following error:

*Fatal error: Call to undefined method EE_Javascript::generate_json() in /home/dev/system/expressionengine/third_party/nsm_htaccess_generator/ext.nsm_htaccess_generator.php on line 421*

Does anyone know of a fix?

  • did you have latest version??
    – Ahmad Saad
    Mar 18, 2014 at 16:26
  • Yes, can latest version of everything
    – MrTomTom
    Mar 19, 2014 at 6:23

1 Answer 1


actually I don't use NSM htaccess generator , but I can help you with this problem.

first thing update to the last version , if you have the last version and still have this problem you can solve it as following:

about the first one:do_hash() problem.

replace do_hash() function with PHP’s hashing functions like sh1

about the second one generate_json() :

replace $this->EE->javascript->generate_json with json_encode

check it and let me know.


  • Great can confirm this worked!
    – MrTomTom
    Mar 19, 2014 at 6:22
  • 1
    This also worked with updating Wygwam. Thanks Ahmad! Jul 10, 2014 at 20:20

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.