Module was uploaded to module directory and module was activated.

Immediately after hitting submit I got: Fatal error: Call to undefined function: user_access() in /home/moncyo/public_html/modules/tinytinymce/tinytinymce.module on line 118

Now I cannot access anything on my site www.monctonyoga.com

Please help,

Love and light

Comments

yogayak’s picture

Version: 6.x-1.x-dev » 6.x-1.0
Steve Lockwood’s picture

Assigned: Steve Lockwood » yogayak

Some thoughts:
- The normal place to install the module is, in your case, home/moncyo/public_html/sites/all/modules/tinytinymce (the place where you have installed the module is for Drupal core modules. I don't know if that makes difference but you should certainly move the module to the correct place.)
- Are you using Drupal 6?
- Have you downloaded tinyMCE from Moxiecode and put in in a subdirectory of the module - the module just provides a link to tinymce, which you have to download separately

I hope one of these helps (and I'm glad to see your site is now working, but without tinymce I think)

Steve

Sakim’s picture

Assigned: yogayak » Unassigned

I've done exactly as you stated above but I still get the same message:

Fatal error: Call to undefined function user_access() in ***/modules/tinytinymce/tinytinymce.module on line 119

Yes I use Drupal 6, yes I've installed tinymce in a sub dir of tinytinymce, any ideas?

Steve Lockwood’s picture

Assigned: Unassigned » Steve Lockwood

Hi Sakim,

Yes - I think this and the previous post have given me a clue. I can't immediately see why the call to user_access is not working, but it tells me where to look.

Steve Lockwood’s picture

Assigned: yogayak » Steve Lockwood

Hi Sakim,

The *** in your message doesn't tell me exactly where you installed the module.

Did you put it in
{basepath}/sites/all/modules/tinytinymce

Or in
{basepath}/modules/tinytinymce

It's vital that the module is loaded after the Drupal core modules, so the first option is the correct one (ie .../sites/all/modules/tinytinymce). If you put it in .../modules tinytinymce will activate before the user module has loaded, causing the error you see.

I hope this helps

Steve

Sakim’s picture

Steve, thanks for the update. My module was indeed installed in {basepath}/modules/tinytinymce, unaware of such thing as sites/all/modules... Anyway, this fixed the issues, thanks!

Steve Lockwood’s picture

Hi Yogayak

I'm pretty sure this is because you installed it at /home/moncyo/public_html/modules/tinytinymce.

It is vital that the module is loaded after all the core modules have loaded. So the correct place to put the files is

/home/moncyo/public_html/sites/all/modules/tinytinymce

I hope this helps

Steve

Steve Lockwood’s picture

Thanks for letting me know Sakim - I will release a new version which checks for the existence of the user module and warns the user if it is not properly installed.

Steve

Steve Lockwood’s picture

Status: Active » Fixed

The fix is to install the module in the correct path, ie {basepath}/sites/all/modules/tinytinymce

The latest version should not crash the site, even if installed in the wrong place - it will just warn the user to check the installation.

Steve

Steve Lockwood’s picture

Title: Fatal Error, site crashed after Tiny Tiny install » FIXED-Fatal Error, site crashed after Tiny Tiny install
Steve Lockwood’s picture

Status: Fixed » Closed (fixed)