Resolved: Fatal error when activating module

3 replies [Last post]
Dave Sandilands
Offline
Joined: 08/04/2011
Status: 
Answered

I have just downloaded and installed ms_files-7.x-2.13.tar

Fatal error occurs when activating module.

Fatal error: Function name must be a string in /home/xxxx/public_html/xxxx/sites/all/modules/ms_files/ms_files.install on line 40

Update:

The issue appears to have been resolved by creating a private files folder and updating the location in Configuration->Media->File System->Private file system path

Leighton Whiting
Offline
Joined: 06/02/2009
Thanks for letting me know. I

Thanks for letting me know. I have changed the $t to a regular t() which should fix the fatal error.

This code only runs if there is no private files directory.

Sincerely,
Leighton Whiting

bmango
Offline
Joined: 07/15/2011
New Error

When I was trying to activate the file download suite I was getting the error:

Notice: Undefined variable: t in ms_files_requirements() (line 40 of /sites/all/modules/ms_files/ms_files.install).

This was resolved by configuring the folder for private files in Drupal.

Ben

Leighton Whiting
Offline
Joined: 06/02/2009
Ben, Yes, the problem was

Ben,

Yes, the problem was that the private files folder wasn't set up, but instead of reporting the error, the code was throwing a fatal error. That will be fixed in the next release.

Sincerely,
Leighton Whiting

Twitter Feed