The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Disable your modifications 1by1 until you find which modification is causing the problems.
|
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
Line 410 is:
Code:
'firstday' => gmdate('w', gmmktime(0, 0, 0, $month, 1, $year)), |
#5
|
|||
|
|||
What happens when you remove your header file? Does the error go away?
|
#6
|
|||
|
|||
Which PHP version are you using?
|
#7
|
|||
|
|||
Quote:
--------------- Added [DATE]1218722372[/DATE] at [TIME]1218722372[/TIME] --------------- PHP: 5.2.6 with APC cache MySQL: 5.0.51a-community |
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
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(); |
#10
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|