This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

helpers.php php warning

  • Creator
    Topic
  • #21504
    vtheme
    Participant

    With wp 4.2.1 and Akita 2.1.8
    Recently upgraded my theme to the current one and am getting this warning in my server error logs:

    PHP Warning: Illegal string offset ‘all’ in
    blah/blah/wp-content/themes/akita/framework/includes/helpers.php on line 214

    Any idea of what may be causing this or a way to fix?

Viewing 4 replies - 16 through 19 (of 19 total)
  • Author
    Replies
  • #21569
    Jason Bobich
    Keymaster

    For the sake of backwards compatibility, I would be curious to confirm that if you put your shortcode back to using param “centegories” how you had before, and you change that line in helpers.php to this, that it solves the issue:

    } else if ( ! empty( $options['categories'] ) && ( is_string($options['categories']) || empty( $options['categories']['all'] ) ) ) {
    #21570
    vtheme
    Participant

    Happy to help-

    I used “categories” as was the original with this new line in helpers, but am still getting that fatal error

    Fatal error: Cannot unset string offsets in /blahblas/wp-content/themes/akita/framework/includes/helpers.php on line 221

    Just let me know what to try next –

    #21572
    Jason Bobich
    Keymaster

    Yeah, I see now… It would probably best handled through the shortcodes plugin, changing the “categories” parameter you pass in to the “category_name” param before passing it the theme.

    #21573
    vtheme
    Participant

    Ok, I will put it back 🙂

    Appreciate your thoroughness though!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.