I have a perfectly-functioning site in localhost. I just uploaded it to Bluehost, something I've done with 2 other sites in the past, using the same process that always works just fine for me (and most people uploading a Drupal site). The problem with this site is that browsing to pages keeps bringing up undefined function errors. When the site was first uploaded, this only happened when I tried to go to any page that a non-admin user can't access, including the administration page and all its subpages. Now it's happening with every page on the site, including the homepage. This sudden spreading of the problem has come out of nowhere and I made zero changes before it happened.

Try it. Browse to any page in http://www.pointarenaschools.org and you will get any random error saying:
Fatal error: Call to undefined function <ANY FUNCTION in all of my custom modules' files> in <that function's file> on line <that function's line>.

The only page on the entire site that's working is typing in a wrong path and getting Page Not Found.

You'll notice I mentioned "custom modules". All the errors are related to any one of my custom modules installed, and taking the files of those modules out of the equation solves the problem, but then I don't have any of the modules this site requires to work in the way it was intended.

I have no idea how this is happening. I checked php.ini, settings.php, .htaccess, the permissions of every folder/file in the site, and the MySQL database. Nothing is wrong, out of the ordinary, or different from the setups that the other two sites have. It's all identical.

In the process of writing this post, the homepage is now back. Nothing else works, though.

EDIT: Now a lot of administration pages are back. I've found two to still be broken, including the base administration page /admin. Every page is giving this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'nodereference_autocomplete_access' was given in /home6/pointare/public_html/includes/menu.inc on line 452.

EDIT2: Aaaand all the pages on the site are gone again. This is hopelessly erratic.

Comments

nevets’s picture

Since removing your custom modules solves the problem I would suspect they are the source of the problem.

I would remove all your custom modules and add back one at a time till the error appears.

Cadeyrn’s picture

Thanks for the tip. The errors universally stop when ckeditor, cck, panels, and panels_everywhere are ALL moved to separate directories (renaming them doesn't cut it). This is very bad because one of the major points of this website is that users can completely customize their own profile. It's the only reason ckeditor, panels, and CCK (for the custom profile API) are even there. I'll try reinstalling them.

nevets’s picture

Where are you placing the modules, normally they would be under sites/all/modules each in their own sub-directory.

Cadeyrn’s picture

sites/all/modules is where I've been placing them, and hey, it looks like it's working now. I guess somehow the files I have on localhost don't work online? I have no idea. But it's fixed now!