Closed (fixed)
Project:
Tiny Tiny MCE
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
15 May 2008 at 00:08 UTC
Updated:
16 May 2008 at 08:01 UTC
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
Comment #1
yogayak commentedComment #2
Steve Lockwood commentedSome 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
Comment #3
Sakim commentedI'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?
Comment #4
Steve Lockwood commentedHi 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.
Comment #5
Steve Lockwood commentedHi 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
Comment #6
Sakim commentedSteve, 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!
Comment #7
Steve Lockwood commentedHi 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
Comment #8
Steve Lockwood commentedThanks 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
Comment #9
Steve Lockwood commentedThe 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
Comment #10
Steve Lockwood commentedComment #11
Steve Lockwood commented