vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Fatal Error - Call to undefined function (https://vborg.vbsupport.ru/showthread.php?t=187491)

totalstu 08-07-2008 05:32 PM

Fatal Error - Call to undefined function
 
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

Quote:

Originally Posted by Opserty (Post 1596887)
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...


All times are GMT. The time now is 03:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02018 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete