Schedule Posts Calendar
[resolved] Some minor PHP Notices (2 posts)

  1. JochenT
    Posted 2 years ago #

    This calendar is a very appreciated feature of our editors. And it runs without any problems since over a year.

    But when trying to reduce the unnecessary log messages with WP_DEBUG enabled I found some messages from your plugin, too. One notice is
    PHP Notice: Undefined variable: theme in /usr/www/xxxxx/wp-content/plugins/schedule-posts-calendar/schedule-posts-calendar.php on line 76.

    The other is an outdated use of numeric capabilities (user_level) in the call of add_options_page(). The backtrace displays

    add_submenu_page(options-general.php,Schedule Posts Calendar,Schedule Posts Calendar,9,schedule-posts-calendar.php,schedule_posts_calendar_admin_page)

    which is probably a subsequent call from add_options_page().
    The user_level=9 is the problem in this call. You may simply replace it with a capability string from Roles and Capabilities wich reflects the admin equivalent to configure the calendar (e.g. 'edit_theme_options').


  2. Greg Ross
    Plugin Author

    Posted 2 years ago #

    Thanks for pointing these out. The undefined variable was a bug in the theme selection code for the calendar. I've resolved both issues and posted version 3.3.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Schedule Posts Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.