Hi,
When the calendar comes up empty there are two common causes. The first is a JavaScript conflict with another plugin. These are unfortunately pretty common. You can see JavaScript errors in the error console of your browser. Most of the errors have to do with either the date handling or parsing the JSON data which comes from your blog.
The second common issue is a PHP problem that stopped the page from rendering. You can check that by select the view source option in your browser while you’re looking at the calendar page. Scroll to the bottom and it should end with “</body></html>”. If not, then there is probably an error message there that will help us figure out what’s going wrong.
I’m also happy to log into your blog and take a look. I can normally figure out what’s causing the issue in a few minutes.
Thanks,
Zack
I think I found what I was supposed to be looking for in the source code…this is what was at the bottom of the code that I think has to do with the Editorial Calendar:
jQuery.fn.center=function(){this.css(“position”,”absolute”);this.css(“top”,(jQuery(window).height()-this.outerHeight())/2+jQuery(window).scrollTop()+”px”);this.css(“left”,(jQuery(window).width()-this.outerWidth())/2+jQuery(window).scrollLeft()+”px”);return this};jQuery(document).ready(function(){try{edcal.init()}catch(a){edcal.output(“Error loading calendar: “+a),edcal.showFatalError(a.description)}edcal.getUrlVars().qunit&&edcal_test.runTests()});
Is this what I was looking for?
That’s the place where it looks for errors, not the places that’s generating them. You won’t find what you’re looking for in the source code. You need to look in the error console (sometimes called the JavaScript console) in your browser.
-Zack
I have completely disabled all plug-ins, switched to one of the default themes (doesn’t matter, none of them work), and I cannot see anything in the calendar either.
I see this on two different wordpress installations and cannot seem to do anything to change the behaviour.
The error I see in the Error Console is:
Error: SyntaxError: JSON.parseIt
Source File: http://pi-con.org/wp-content/plugins/editorial-calendar/lib/edcallib.min.js?ver=3.4.1
Line: 42
Possibly related, if I attempt to create a new post through the calendar interface, I get a large red warning “There was an error contacting your blog.” which results in a much lengthier Error Console warning:
(I created the post with title “test post title” and content “test post content”)
true at a velocity of 1 edit.php:993
savePost(11082012, test post title) edit.php:993
There was an error contacting your blog. edit.php:993
savePost xhr.responseText:
Notice: Trying to get property of non-object in /var/www/pi-con-wp/wordpress/wp-includes/post.php on line 4547
Notice: Trying to get property of non-object in /var/www/pi-con-wp/wordpress/wp-includes/post.php on line 5324
Notice: Trying to get property of non-object in /var/www/pi-con-wp/wordpress/wp-includes/post.php on line 3026
Notice: Trying to get property of non-object in /var/www/pi-con-wp/wordpress/wp-includes/post.php on line 3026
Notice: Undefined index: ID in /var/www/pi-con-wp/wordpress/wp-content/plugins/editorial-calendar/edcal.php on line 1031
{
"post" :
{
"date" : "11082012",
"date_gmt" : "11082012",
"time" : "10:00",
"formattedtime" : "10",
"sticky" : "",
"url" : "http://pi-con.org/?p=408",
"status" : "draft",
"title" : "test post title",
"author" : "aaron",
"type" : "post",
"typeTitle" : "Post",
"editlink" : "
Notice: Undefined variable: id in /var/www/pi-con-wp/wordpress/wp-content/plugins/editorial-calendar/edcal.php on line 816
http://pi-con.org/wp-admin/post.php?post=408&action=edit",
"dellink" : "javascript:edcal.deletePost(408)",
"permalink" : "
Notice: Undefined variable: id in /var/www/pi-con-wp/wordpress/wp-content/plugins/editorial-calendar/edcal.php on line 823
http://pi-con.org/?p=408",
"id" : "408"
}
}
edit.php:993
Thanks for doing so much investigation on this issue. Any chance I can log into your blog and see the error myself?
Thanks,
Zack
Zack, sent you an email with log-in info.
Thank you very much for giving me access to your blog so I can see this issue. I’ve made a fix for this issue on your blog and added it to the next release of the calendar.
Thanks,
Zack