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

  1. peemau
    Posted 2 years ago #

    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


  2. Archetyped
    Plugin Author

    Posted 2 years 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

  • Simple Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.