vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problem with Calendar after upgrade to 3.7.2 (https://vborg.vbsupport.ru/showthread.php?t=188035)

BTTF.com 08-13-2008 03:00 PM

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.

Marco van Herwaarden 08-13-2008 04:14 PM

Disable your modifications 1by1 until you find which modification is causing the problems.

Opserty 08-13-2008 04:29 PM

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.

BTTF.com 08-13-2008 07:27 PM

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.

Opserty 08-13-2008 07:57 PM

What happens when you remove your header file? Does the error go away?

Marco van Herwaarden 08-14-2008 06:06 AM

Which PHP version are you using?

BTTF.com 08-14-2008 12:56 PM

Quote:

Originally Posted by Opserty (Post 1598005)
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 (Post 1598231)
Which PHP version are you using?

PHP: 5.2.6 with APC cache
MySQL: 5.0.51a-community

Marco van Herwaarden 08-14-2008 01:36 PM

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.

BTTF.com 08-14-2008 03:20 PM

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?

Opserty 08-14-2008 03:27 PM

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.


All times are GMT. The time now is 02:57 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.01124 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)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