New error on Theme Options page - by koolio

This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago ago by Robert Hall

  • Avatar: koolio
    koolio
    Participant
    September 1, 2014 at 22:25

    Hi,

    while translating and fine-tuning my site i discovered i can no longer access my Theme Options page (wordpress/woocommerce). The shopping cart itself works, but in Admin panel when i click on Theme Options, i get error message:

    Warning: Invalid argument supplied for foreach() in /mnt/data/accounts/k/koolio/data/www/MimiMami_WP/wp-content/themes/legenda/option-tree/includes/ot-settings-api.php on line 186

    line 186 has the ‘foreach’ element in this block:

    /* set up the help tabs */
    if ( ! empty( $page[‘contextual_help’][‘content’] ) ) {
    foreach( $page[‘contextual_help’][‘content’] as $contextual_help ) {
    $screen->add_help_tab(
    array(
    ‘id’ => esc_attr( $contextual_help[‘id’] ),
    ‘title’ => esc_attr( $contextual_help[‘title’] ),
    ‘content’ => htmlspecialchars_decode( $contextual_help[‘content’] ),
    )
    );
    }
    }

    I’m stuck, help pin-point this please. I tried copying over the modified files from the download archive but no luck. Need to find out where the issue is.

    Thanks !

    screenshot of Admin panel

    2 Answers
    Avatar: koolio
    koolio
    Participant
    September 1, 2014 at 22:31

    never mind. just figured it out. apologies 🙁

    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 2, 2014 at 05:48

    Hello,

    We’re glad to hear it.
    If you have any questions feel free to contact us.

    Regards,
    Robert Hall.

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.