View Full Version : Fatal Error - Call to undefined function
totalstu
08-07-2008, 05:32 PM
Hi,
I created the forum here at our company a few months ago. I created a user and let him at the forum to create posts, whatever. Today I wanted to show someone the forum and tried to log in and received this after logging in:
Fatal error: Call to undefined function log_admin_action() in /var/www/forums/index.php on line 84
I am able to log into the admincp with no issue. I checked with the user I created and he to has the same issue as I when trying to log onto the forum. He noticed it a few weeks ago but never said anything.
Any help/guidance as to how to rectify this would be much appreciated.
Thanks
Opserty
08-07-2008, 08:22 PM
Try re-uploading the index.php and see if your issue persists.
totalstu
08-12-2008, 10:47 AM
Excuse my ignorance. I'm new at this and doing it in Ubuntu. I did a search for index.php and found it in four locations.
Dated Jun 9
/var/www/forums
/var/www/forums/admincp
Dated Jun 3
/var/www/forums/archive
/var/www/forums/modcp
I'm not sure what you mean by re-uploading. Since I can get into admincp can I just copy the index.php from the /forums/admincp directory to the /forums directory?
Thanks
Marco van Herwaarden
08-12-2008, 10:52 AM
To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php
define('DISABLE_HOOKS', true);
If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.
Opserty
08-12-2008, 10:52 AM
The index.php files in each directory are different. Download vBulletin again from vBulletin.com (make sure its the appropriate version) reupload the index.php.
You cannot copy the index.php file from /forums/admincp/ to /forums/ they are not the same.
totalstu
08-12-2008, 01:21 PM
The index.php files in each directory are different. Download vBulletin again from vBulletin.com (make sure its the appropriate version) reupload the index.php.
You cannot copy the index.php file from /forums/admincp/ to /forums/ they are not the same.
I'm not sure what you mean when you say the appropriate version. We are currently at 3.7.1 PL1. I can't find that version. Can I download 3.7.2 PL1 instead?
Thanks
Marco van Herwaarden
08-12-2008, 01:54 PM
You can download 3.7.1 PL2 from the members area.
Opserty
08-12-2008, 02:08 PM
There is option to download older versions, look around the members area download page.
totalstu
08-12-2008, 02:23 PM
I DL'd 3.71. PL2 and uploaded the 44.9kb index.php from the download to /var/www/forums, overwriting what was there and dated Jun 9. The new file is dated Aug 12. I then tried to log onto the forum and after entering the username/password and clicking login I get the same fatal error.
I did disable plugins and have no hacks to remove.
Since this forum in only used internally, within our organization, could I rem out the function so as to not have it called? Not the I understand what it does but it appears to log admin action. I am the admin.
Thanks
Opserty
08-12-2008, 04:13 PM
I'm not sure how you are managing it but you're still uploading the wrong index.php. If you extract the vBulletin zip file onto your computer it should preserve the directory structure.
The index.php file you should be uploading should be something like 18KB.
Try all the other index.php files if you still can't get it...
totalstu
08-12-2008, 04:39 PM
Ok, after finding the 18.1kb index.php and replacing the old file with this new file, I was able to log onto the forum.
The help is much aprreciated.
Thanks
Marco van Herwaarden
08-13-2008, 06:36 AM
I suggest to overwrite all files, not only the index.php.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.