Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2008, 03:00 PM
BTTF.com BTTF.com is offline
 
Join Date: Jun 2005
Location: BTTF.com
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with Calendar after upgrade to 3.7.2

Recently migrated my entire vBulletin 3.5.3 installation to a brand new server, then upgraded to 3.7.2. Since that time, my calendar doesn't work anymore, and I get the following errors:

Warning: gmmktime() expects parameter 4 to be long, string given in
[path]/calendar.php on line 410


Unable to add cookies, header already sent.
File: /home/bttf.com/public_html/forums/includes/class_core.php
Line: 3243

I also get the following error on my welcome page when a user is not registerer or not logged in:

Welcome to the [ARG:3 UNDEFINED].

vBulletin seems to believe that the first problem is with an add-on and gave a list of suggestions to try. I removed all of my add-ons and removed all Suspect File Versions. Still received the errors. Then I was told to disable my hooks with this command in my config.php file:

define('DISABLE_HOOKS', true);

This removed the problem, however, it also removed my header file. When I removed the code, the problem returned.

Anyone know how to resolve these issues? vBulletin won't touch it since I have add-ons and referred me here. Thanks.
Reply With Quote
  #2  
Old 08-13-2008, 04:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disable your modifications 1by1 until you find which modification is causing the problems.
Reply With Quote
  #3  
Old 08-13-2008, 04:29 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look on line 410 of calender.php, see which variables are used. Then look to see if you are using this in your header file. You might be causing conflicts.
Reply With Quote
  #4  
Old 08-13-2008, 07:27 PM
BTTF.com BTTF.com is offline
 
Join Date: Jun 2005
Location: BTTF.com
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Line 410 is:

Code:
'firstday' => gmdate('w', gmmktime(0, 0, 0, $month, 1, $year)),
I already removed all add-ons from the system, and that didn't make a difference, so I added most of them back after upgrading.
Reply With Quote
  #5  
Old 08-13-2008, 07:57 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happens when you remove your header file? Does the error go away?
Reply With Quote
  #6  
Old 08-14-2008, 06:06 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which PHP version are you using?
Reply With Quote
  #7  
Old 08-14-2008, 12:56 PM
BTTF.com BTTF.com is offline
 
Join Date: Jun 2005
Location: BTTF.com
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
What happens when you remove your header file? Does the error go away?
I don't know. Where would I do that?

--------------- Added [DATE]1218722372[/DATE] at [TIME]1218722372[/TIME] ---------------

Quote:
Originally Posted by Marco van Herwaarden View Post
Which PHP version are you using?
PHP: 5.2.6 with APC cache
MySQL: 5.0.51a-community
Reply With Quote
  #8  
Old 08-14-2008, 01:36 PM
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.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.
Reply With Quote
  #9  
Old 08-14-2008, 03:20 PM
BTTF.com BTTF.com is offline
 
Join Date: Jun 2005
Location: BTTF.com
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the offending plugin, which is what I suspected, but I don't know why going from 3.5 to 3.7 has made this no longer work. Someone at vBulletin gave me this code 3? years ago to put into my global_start hook.

Code:
ob_start();
require("/home/bttf.com/public_html/header.php");
$head = ob_get_contents();
ob_end_clean();

ob_start();
require("/home/bttf.com/public_html/footer.php");
$foot = ob_get_contents();
ob_end_clean();
When I disabled this hook, the problem went away. How do I fix it?
Reply With Quote
  #10  
Old 08-14-2008, 03:27 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in header.php see if there is a variable called $month defined in it. If so, you will need to rename it to something else.

3.5 > 3.7 is a long time, over which there have been many updates, so its not surprising to expect somethings to break.
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05274 seconds
  • Memory Usage 2,252KB
  • 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
  • (2)bbcode_code
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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