Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2008, 05:32 PM
totalstu totalstu is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-07-2008, 08:22 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try re-uploading the index.php and see if your issue persists.
Reply With Quote
  #3  
Old 08-12-2008, 10:47 AM
totalstu totalstu is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-12-2008, 10:52 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-12-2008, 10:52 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-12-2008, 01:21 PM
totalstu totalstu is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
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
Reply With Quote
  #7  
Old 08-12-2008, 01:54 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can download 3.7.1 PL2 from the members area.
Reply With Quote
  #8  
Old 08-12-2008, 02:08 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is option to download older versions, look around the members area download page.
Reply With Quote
  #9  
Old 08-12-2008, 02:23 PM
totalstu totalstu is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 08-12-2008, 04:13 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:01 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.05637 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete