WordPress.org

Ready to get started?Download WordPress

Forums

Simple Lightbox
[resolved] 2.0RC2.1 cause conflicts when editing posts (2 posts)

  1. peemau
    Member
    Posted 1 year ago #

    Hello
    I'm the author of TinyMCE Xiami Music [http://wordpress.org/extend/plugins/tinymce-xiami-music/]

    I updated to 2.0RC2.1 recently, and when I'm trying to use my plugin ,there is an error:
    Fatal error: Call to a member function add_theme_page() on a non-object in /home/www/public_html/wp-content/plugins/simple-lightbox/model.php on line 237

    then I deactivated all other plugins, and tried WP-Syntax Button [http://wordpress.org/extend/plugins/wp-syntax-button/], there is also an error

    but it works fine with version 1.6.3.1

    http://wordpress.org/extend/plugins/simple-lightbox/

  2. Archetyped
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, sorry for the delay.

    That error indicates that WP was not loaded properly.

    wp-admin/admin.php loads WP (wp-load.php) at the proper time for admin pages. It appears that the music-search.php file in your plugin is loading WP in the wrong order. For admin pages, wp-admin/admin.php should be loaded (to set the necessary constants) before loading WP itself (wp-load.php), which loads plugins, etc.

    Allow admin.php to load WP itself in the proper order and your issue should be resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.