Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Wrong Default Month and Year
Old 09-18-2009, 02:11 PM   #1
froye001
Calendar User
 
froye001 is offline
Join Date: Sep 2009
Posts: 4
Default Wrong Default Month and Year

My calendar does not default to the current month, day and year.

When you first land on the calendar page, it displays "January 2009" (2009 happens to be the Year Selection Start entered in the setup.

When you click the "Today" button, the calendar displays "January 2009" but the url ends with "mo=09&yr=0000"

When you click to advance a month, the calendar shows "February 2009" and the url ends with "mo=2&yr=2009"

At no point does the current day highlight even though Highlight Today is selected in the setup.
 

Old 09-18-2009, 02:19 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Can you provide a link to the page with the issue?
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 09-18-2009, 03:03 PM   #3
froye001
Calendar User
 
froye001 is offline
Join Date: Sep 2009
Posts: 4
Default

http://www.confucius.umn.edu/calendar/index_cal_test
 

Old 09-18-2009, 04:19 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Haven't seen this before... If no date is specified, the calendar uses the PHP date function to tell it what the current month/year to display.

Did it do this from the very first time it was installed or did it happen later?
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 09-18-2009, 04:27 PM   #5
froye001
Calendar User
 
froye001 is offline
Join Date: Sep 2009
Posts: 4
Default

Did it from the very start.

It behaved the same way on our test server which didn't concern me because that server has all kinds of junk on it. But this is on our live server which is pretty clean.

What can I give you to help trouble-shoot? PHP and Apache version info?

Is there code I could insert temporarily to get this calendar launched? Explicitly set the default month and year maybe?
 

Old 09-18-2009, 04:42 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

You can set the $mo variable to 9 ($mo=9, but then you can't change the month. PHP should be reporting the correct month to the calendar, but it isn't or someone modified part of the calendar code that changed how this works.

Can you open a support ticket and attach your calendar/calendar.php file?
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Old 09-18-2009, 05:13 PM   #7
froye001
Calendar User
 
froye001 is offline
Join Date: Sep 2009
Posts: 4
Default

Ticket: QLS-569520

I hacked it! I added:

if($_REQUEST['mo'] == '') { $mo = 9; }
if($_REQUEST['yr'] == '' || $_REQUEST['yr'] == '0000') { $yr = 2009; }
$TOC=1;
require ("../cal/calendar.php");

which buys us a little time.

I'm going to make a version live then return the test page referenced above to it's broken state. Thanks for all your help.
 

Old 09-18-2009, 09:22 PM   #8
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,968
Default

Before you do that, try to echo out $mo in case your site somehow uses that variable somewhere. That could account for reset to 1... but I'm not sure it would explain you being able to then navigate from that point.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Linking to Blog Mode Page not Passing Day, only Month & Year mikec@technomediapei.com General Support 7 06-11-2009 04:07 PM
Remove month and year Ihor Customizations (Themes / Templates) 3 01-15-2008 09:06 PM
passing ev along with month and year mdriscoll Customizations (Themes / Templates) 3 08-08-2007 05:16 PM
Month and Year buttons (months just not showing) freshmint General Support 4 09-17-2004 11:14 AM
Displaying Month & Year above listings? marisab General Support 8 07-07-2004 07:25 PM



All times are GMT -4. The time now is 05:38 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |