WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Meta Keywords
PHP Notice - page undefined constant... (7 posts)

  1. MarcusPope
    Member
    Posted 2 years ago #

    Just a heads up, you're passing a constant named page to register_taxinomy on line 38. Looks like you meant that as a string, so quoting it would resolve the notice and maintain functionality.

    Thanks,
    Marcus

    Error:
    Notice: Use of undefined constant page - assumed 'page' in wordpress\wp-content\plugins\wordpress-meta-keywords\wordpress-meta-keywords.php on line 38

    http://wordpress.org/extend/plugins/wordpress-meta-keywords/

  2. Philipp Speck
    Member
    Plugin Author

    Posted 1 year ago #

    Of course you are right. I will fix it. Thank you!

  3. computerslayer1
    Member
    Posted 1 year ago #

    On line 38:

    register_taxonomy('keywords', page, $args);

    Should be:

    register_taxonomy('keywords', 'page', $args);

    Easy fix. Can we get an official release for it? Thanks :)

  4. Philipp Speck
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, I will fix it! Thx.

    Edit: It was already fixed. Update your plugin, please.

  5. computerslayer1
    Member
    Posted 1 year ago #

    I'm currently running version 1.3. I don't see any updates available on the wordpress plugin page or on your website.

    In version 1.3, the error is still present.

    The date on the package available on wordpress.org is Feb 7th 2013.

    Where is the updated version with the fix hosted?

  6. Philipp Speck
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry I'm blind. I have fixed it now.

  7. computerslayer1
    Member
    Posted 1 year ago #

    Awesome, thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.