Support

Home Forums Event Espresso Premium Error in Calendar dayCntPos

Error in Calendar dayCntPos

Posted: November 5, 2012 at 8:25 pm


Nicholas

November 5, 2012 at 8:25 pm

Hello,
I am getting an error that says dayCntPos is null on the pages that my calendar is loading on. I have tried switching to the twenty ten theme and the error message still appears. Even when I deactivate plugins….what can I do?
Thanks for any input.


Dean

November 6, 2012 at 12:32 am

Hi,

I had a look at the fibre arts site and couldn’t see any issues on the faces or regional calendars. Can you provide a location for the error and/or some more details please?


Nicholas

November 6, 2012 at 6:56 am

Sure. At fiberartscenter.com, when the page loads I get the following JavaScript Error in my Firebug console:
JavaScript Error: TypeError: dayCntPos is null
I am just wondering how to fix it.
Also, I was informed that when viewing the site in an older version of Chrome (v 18.x) the calendar did not show up at all.
Thanks for your help.


Nicholas

November 6, 2012 at 12:04 pm

One other quirk….
When I view pages with either the calendar or a single event listing on my mobile device (Android) it drops my internet session and I am just taken to my home screen (as though I had pressed the home button) without warning. It all seems like weird Java or jquery issues, but I am no developer and I am having issues figuring out what to change.
Thanks.


Dean

November 7, 2012 at 12:05 am

Hi,

Ok well the issue is likely due to the fact that the script is enclosed in

<

p> tags. In fact there is a lot of open ended

tags in the code (they should be closed with a

tag). Try editing your page to surround the calendar shortcode in raw tags e.g. [raw][ESPRESSO_CALENDAR][/raw]
It is dependant on your theme supporting raw tags.

We generally only support the current and previous versions of a browser, however, fixing the above issue may resolve that issue for the users of older versions of chrome.

I tested your site on my Android phone (HTC Desire) and it worked very well. It sounds like an issue with your phone itself/the phones browser.


Nicholas

November 7, 2012 at 11:34 am

Thanks for looking into this.

I am checking with the theme developer about the fact that some of the shortcodes aren’t closing the p tags, but the weird thing is that when I checked the code, the closing p tags were missing three times but mysteriously showed up the fourth time I checked, without making any changes. WTF?
Also, the first time I surrounded the calendar shortcode with the raw tags, it showed up like this

[ESPRESSO_CALENDAR]

on the page, but when I updated the page and viewed it again, the calendar showed up again.
I’m sorry if this is confusing, but I am confused!! I have had different results even when I haven’t made any changes!
Also, the original error message is still showing up in the error console, even with the raw tags.
Any thoughts?


Nicholas

November 7, 2012 at 12:23 pm

So, back to the original error message dayCntpos is null….

Do you think this has something to do with the css from themeroller theme, for the Current Day….I just noticed that the current day isn’t highlighted on the calendar, even though it was set to a certain bg color when I made the theme on themeroller… I will look into this and get back to you.
Sorry to bother you with the extraneous theme crap! I know that’s not your problem and I appreciate your insight.
Thanks.


Dean

November 8, 2012 at 2:39 am

Hey,

I think whats best here is to start testing – change theme to TwentyEleven, see if it is still causing the issues. Turn the Themeroller off/change theme.

The raw tags issue was weird, maybe a cache issue, as normally if the raw tags wont work you will just see the calendar with [raw] written next to it.

There is no settings to change the colour of the current days background, unless you have modified the code, only all events or specific categories.


Nicholas

November 8, 2012 at 8:43 am

So the issue is with Themeroller.

When I use the Legacy style sheets, there are no JS errors (in Twenty Eleven or my current theme). When I use the Themeroller styles (either the standard ones included with EE, or my custom theme) the dayCntPos error shows up (in Twenty Eleven and my current theme).

What I was wondering was this: the background color of the current day is not showing up in my calendar when I load my custom themeroller style. It did once, then I felt it was too dark, so I edited it (via Themeroller site), re-uploaded it to my server, then the day’s background never showed up again.

The default styles show the current day as a pale yellow. In themeroller it’s considered the “highlight” style.

I am no developer, as I said before, but it seems to me that the dayCntPos being null and the current day background not showing up has to be related. I just don’t know how to fix it.

I apologize for bugging you with this, I’m sure it’s not a big deal compared to other issues customers are having, and I appreciate your help. Just FYI, fixed the bug in the shortcodes with the open tags. Thanks for bringing that to my attention.


Josh

  • Support Staff

November 20, 2012 at 5:43 pm

Hi mdowell,

I’m sorry for the delay on this reply.

The JavaScript error with the dayCntPos being null is a known issue that’s been turned over to the dev team to investigate further.

The support post ‘Error in Calendar dayCntPos’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso