WordPress.org

Ready to get started?Download WordPress

Forums

WP SyntaxHighlighter
Tons of PHP Notices after activating plugin (6 posts)

  1. BBBThunda
    Member
    Posted 2 years ago #

    I'm using a fresh install of WordPress (3.3.2) and the SyntaxHighlighter plugin (1.7.3), and it seems every time I submit anything related to it or load any page with a syntax highlighted code block, I get tons of PHP Notices.

    I realize I can turn off logging in my PHP settings, but is this normal? Or did I install incorrectly? Is 3.3.2 supported by 1.7.3?

    Here's an example of what I get when I click 'Save Changes' in Dashboard > Settings> WP SyntaxHighlighter

    Notice: Undefined index: highlight_bbpress in C:\xampp\htdocs\bobbywp\wp-content\plugins\wp-syntaxhighlighter\get-updated-settings.php on line 50
    
    Notice: Undefined index: bbpress_hl_bt_enable in C:\xampp\htdocs\bobbywp\wp-content\plugins\wp-syntaxhighlighter\get-updated-settings.php on line 50


    [ Repetative log lines removed. If you need to share that many then please use pastebin.com instead. ]

    http://wordpress.org/extend/plugins/wp-syntaxhighlighter/

  2. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi BBBThunda san

    Thank your for your report.

    Could you tell me all notice messages?
    And let me know when(Where) they occur.

  3. raffaelesgarro@gmail.com
    Member
    Posted 2 years ago #

    These are all the notices

    Also, see this patch to avoid two notices when using no theme.

    855,859c855
    <    global $wp_sh_plugin_url, $wp_sh_setting_opt;
    <
    < 	if ($wp_sh_setting_opt['theme'] == "None")
    <      return;
    <
    ---
    > 	global $wp_sh_plugin_url, $wp_sh_setting_opt;

    This happens when the user selects Theme > None, and the plugin tries to enqueue CSS files

  4. raffaelesgarro@gmail.com
    Member
    Posted 2 years ago #

    I forgot, to trigger the notices:

    1. Go to "Settings" page
    2. Change the "Theme" setting
    3. Click on "Save Chages"
  5. NemoXP
    Member
    Posted 1 year ago #

    Every time i open the plugin settings page:
    on the top: http://pastebin.com/sNym6eLZ
    at bottom: http://pastebin.com/Nm1qu3tN

    every time I save settings of the plugin I get Notices on the top:
    http://pastebin.com/7CUsESV1

    and few on the bottom:
    http://pastebin.com/inQRvE4d

    and, yes, also get notice on page (post view) when selected "none" as a theme

  6. NemoXP
    Member
    Posted 1 year ago #

    http://pastebin.com/sNym6eLZ
    this one comes from line 861 (wp-syntaxhighlighter.php) inside function wp_sh_load_style

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.