WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. JochenT
    Member
    Posted 8 months 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').

    http://wordpress.org/plugins/schedule-posts-calendar/

  2. Greg Ross
    Member
    Plugin Author

    Posted 8 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.