WordPress.org

Ready to get started?Download WordPress

Forums

Ajax Event Calendar
[resolved] Cannot add events or categories (16 posts)

  1. loywpuser
    Member
    Posted 2 years ago #

    When I create an event or category, the page reloads as if it were submitting the item, but it doesn't save. We have a different server running 3.1 with the exact same configuration and it works fine, but it doesn't seem to work on our 3.2.1 box. Here are some errors from the PHP logs:

    PHP Fatal error:  Call to a member function print_error() on a non-object in [site path]\\wp-content\\plugins\\ajax-event-calendar\\ajax-event-calendar.php on line 1271, referer: [site path]/test/wp-admin/admin.php?page=event_categories

    PHP Fatal error:  Call to a member function print_error() on a non-object in [site path]\\wp-content\\plugins\\ajax-event-calendar\\ajax-event-calendar.php on line 1271, referer: [site path] /test/wp-admin/admin.php?page=ajax-event-calendar.php

    http://wordpress.org/extend/plugins/ajax-event-calendar/

  2. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Strange that I haven't heard complaints about this before...
    in ajax-event-calendar.php, add this line:
    global $wpdb;

    immediately after this line:
    if ($result === false){

    When you check your logs again, let me know if you see further errors.
    Eran

  3. loywpuser
    Member
    Posted 2 years ago #

    Thanks for the quick response. Same issue with events and categories not posting. I also noticed that it didn't create the Calendar Contributor role. Errors from the logs are even less specific now:

    [Thu Aug 25 17:15:17 2011] [error] [client IP removed] , referer: [site path]/test/wp-admin/admin.php?page=event_categories
    [Thu Aug 25 17:15:28 2011] [error] [client IP removed] , referer: [site path]/test/wp-admin/admin.php?page=ajax-event-calendar.php

    No JS errors appearing in the console either. The only other plugin activated is Akismet.

  4. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Check the WordPress error logs, located in the wp-content folder - the file is named debug.log - if you don't see it, edit the wp-config.php in the root folder and activate debugging. Then try using the calendar again and see if the file appears, and contains any new information.

  5. loywpuser
    Member
    Posted 2 years ago #

    [26-Aug-2011 00:34:26] PHP Notice: Undefined property: stdClass::$category_id in [server path]\wp-content\plugins\ajax-event-calendar\ajax-event-calendar.php on line 927

    [26-Aug-2011 00:34:26] WordPress database error Table 'clubs.wp_3_aec_event' doesn't exist for query INSERT INTO wp_3_aec_event (user_id,title,start,end,allDay,category_id,description,link,venue,address,city,state,zip,contact,contact_info,access,rsvp) VALUES ('2','jhj','2011-08-27 00:00:00','2011-08-27 00:00:00','1','0','kjh','kjh','','kjhkjh','jkh','kjh','kjh','kjh','kjh','0','0') made by do_action, call_user_func_array, ajax_event_calendar->add_event, ajax_event_calendar->insert_event

    [26-Aug-2011 00:34:26] WordPress database error Table 'clubs.wp_3_aec_event' doesn't exist for query INSERT INTO wp_3_aec_event (user_id,title,start,end,allDay,category_id,description,link,venue,address,city,state,zip,contact,contact_info,access,rsvp) VALUES ('2','jhj','2011-08-27 00:00:00','2011-08-27 00:00:00','1','0','kjh','kjh','','kjhkjh','jkh','kjh','kjh','kjh','kjh','0','0') made by do_action, call_user_func_array, ajax_event_calendar->add_event, ajax_event_calendar->insert_event, ajax_event_calendar->return_result

    [26-Aug-2011 00:34:26]

  6. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Looks like the plugin didn't install properly.
    Try reinstalling, and watch your PHP and WordPress logs for errors.

  7. loywpuser
    Member
    Posted 2 years ago #

    [26-Aug-2011 10:50:20] PHP Warning: mysql_connect(): [2002] No connection could be made because the target machine actively refused it.

    (trying to connect via tcp://localhost:3306) in [server path]\wp-includes\wp-db.php on line 1017

    [26-Aug-2011 10:50:20] PHP Warning: mysql_connect(): No connection could be made because the target machine actively refused it.

    in [server path]\wp-includes\wp-db.php on line 1017

  8. loywpuser
    Member
    Posted 2 years ago #

    Aha, I think I figured out the issue. We're using multisite to manage multiple blogs. If I activate the plugin at the network admin level it doesn't work. However, if I activate it on the individual blog everything works great.

  9. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, this plugin does not automate multiple site blogs installation.
    I'm pleased we were able to resolve the matter to successful outcome.

  10. mpaiello
    Member
    Posted 2 years ago #

    I am having the same problem.

    loywpuser said he resolved the problem by changing a file permission, but provided no other details.

    I have tried to add an event using a Macintosh and two different PCs. In all three cases, the ADD button was greyed out and I was unable to add any information to the calendar.

    Please let me know if there is a solution to this.
    Thanks

    Mike

  11. blancoric
    Member
    Posted 2 years ago #

    I'm also having the same problem. On the Events add page, the Update button is disabled. Oddly, it is enabled on the 'Calendar installed' event that automatically creates itself during installation. I can add events by hand through inserts to the database, and I was able to delete the 'Calendar installed' event so my d/b connection must be okay. ???

  12. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Please note the plugin does NOT support WordPress MU installations. If you are having issues because you are using WordPress MU, I cannot be of assistance. That said, I suggest you follow the troubleshooting tips in the FAQ for identifying the cause of the issue. It is most likely another plugin or a custom theme javascript conflict.

  13. mpaiello
    Member
    Posted 2 years ago #

    I am not using MU.

    I am using the standard wordpress theme Twenty Eleven 1.3

    There are only a few other plugins for the site. I turned off all plugins except the Calendar, and the problem was still there.

    This problem began when I upgraded to WordPress 3.3.

    At this point I don't have a solution to the problem and the plugin is unusable because I cannot add an new event.

    Eran I sent you a login for this site in your email. You are an admin. If you could, please try to add an event for January 7 called "Latin Jazz Night". http://bigislandjazz.com/wp-admin/admin.php?page=ajax-event-calendar.php You have my permission to temporarily turn off other plugins to see for yourself there is no conflict.

  14. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    I am unable to replicate this issue on my test site (innermonolog.com/demo) , which uses the latest version of the plugin and the latest version of WordPress 3.3 - my only suggestions is to employ the troubleshooting tips listed (especially the PHP logs and javascript console) in the FAQ and identify the cause of your issue.

  15. blancoric
    Member
    Posted 2 years ago #

    Problem solved. I had a couple of fields still set to require and I wasn't filling them in, so it wouldn't let me save. Easily fixed, but that behavior might be more prominently mentioned or even have an alert box to say why it won't save. Otherwise, the plugin is pretty good and easy to use.

  16. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    I'm glad you figured it out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic