WordPress.org

Ready to get started?Download WordPress

Forums

Squelch Tabs and Accordions Shortcodes
Notice: Undefined offset: 0 (8 posts)

  1. beaudaignault
    Member
    Posted 7 months ago #

    I get this "notice" upon viewing the page with tabs:
    Notice: Undefined offset: 0 in
    /myDirectory/MyWpLocation/wp-content/plugins/squelch-tabs-and-accordions-shortcodes/squelch-tabs-and-accordions.php on line 481

    What does this mean?

    http://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. Matt Lowe
    Member
    Plugin Author

    Posted 7 months ago #

    Hi beaudaignault,

    Please post the code you are using on the page. Usually this is caused by an error in your shortcodes. Thanks, Matt.

  3. beaudaignault
    Member
    Posted 7 months ago #

    Right, I'm kinda new with the WP editor. (driving me nuts inserting paragraph tags everywhere!)
    the code as it is:

    [tabs title="" disabled="false" collapsible="true" active="0" event="click"]
    
    [tab title="definition”]My Ipsum[/tab]
    
    [tab title="is it for you?"]Tab 1 content[/tab]
    
    [tab title="what it does"]Tab 2 content[/tab]
    
    [tab title="meditation manual"]Tab 0 content[/tab]
    
    [tab title="seed of thought"]Tab 1 content[/tab]
    
    [tab title="meditation groups"]Tab 2 content[/tab]
    
    [tab title="group discussion topics"]Tab 0 content[/tab]
    
    [tab title="our hope”]One lorem Ipsum for mankind[/tab]
    
    [/tabs]

    Thank you!!

  4. Matt Lowe
    Member
    Plugin Author

    Posted 7 months ago #

    All appears fine except for the quotes on definition and our hope. The closing quotes on each appear to be fancy 99-style quotes rather than straight quotes. In my test lab that causes issues.

    Also, do you have WP_DEBUG set to true in wp_config.php? There is a minor bug that causes that message to be displayed in the current version (fixed in my dev lab, not yet pushed out to the world) but it can be safely ignored.

  5. beaudaignault
    Member
    Posted 7 months ago #

    Yes, debug set to true in config. (development setting...)
    I did notice the one instance of fancy quotes- now I see the second, thanks.

    I'll make some changes and post my results.

  6. beaudaignault
    Member
    Posted 7 months ago #

    Nah, I wrote the markup this time in my code editor, then pasted into WP editor (to help avoid styled quotes) - I still get the same 'Undefined offset: 0...' message.
    The are no other plugins active.
    We'll see how she flies in production - hopefully in a few days.

    Thanks for your help!

  7. Matt Lowe
    Member
    Plugin Author

    Posted 7 months ago #

    Is WP_DEBUG still set to true? There is a minor bug where a value is checked in an array, without first checking that the index has been set. It's most likely just that. The next version will fix it (when I find time to release the next version!)

  8. beaudaignault
    Member
    Posted 7 months ago #

    Yes, when I turn off debug in the config, naturally the error, or, 'notice' is removed.
    Running a page on the local server (a mamp pro setup) that is using the tabs plugin and debug turned on in the config file produces: Notice!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.