• Resolved Shawn

    (@shawnwyatt-1)


    Been using your plugin for a while, updating as needed. Updated my theme, created using Artisteer using the latest version of Artisteer (4.1.0.59861), and the sidebar widget gave an instant error:

    Invalid shortcode attribute: theme_widget_styles

    The plugin still works for other albums on the site. The obvious is that my upgraded theme is breaking the widget, but I’m not sure how to fix.

    http://www.atimeforscience.org

    http://wordpress.org/extend/plugins/shashin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Toppa

    (@toppa)

    Hi Shawn – it looks like your theme is passing its own data through the widget form, which is being received by Shashin as a shortcode attribute, and its one that it doesn’t recognize, so its throwing an error. I’ll add some handling for this in the next version, but if you want a quick fix and you’re comfortable editing code, open shashin/Public/ShashinShortcode.php, go to line 68 (inside the checkValidKeysAndAssign function) and comment out the “else” statement. That is, take this:

    else {
        throw New Exception(__('Invalid shortcode attribute: ', 'shashin') . htmlentities($k));
    }

    and change it to this:

    //else {
    //    throw New Exception(__('Invalid shortcode attribute: ', 'shashin') . htmlentities($k));
    //}

    Then it should just ignore the theme_widget_styles argument and proceed happily along.

    Thread Starter Shawn

    (@shawnwyatt-1)

    Excellent!! It worked, awesome support. Donation sent. 🙂

    Plugin Author Mike Toppa

    (@toppa)

    Thanks Shawn – it’s appreciated!

    Thread Starter Shawn

    (@shawnwyatt-1)

    Happy to see my issue fixed in a recent update. Or, at least I’m assuming it was as I upgraded.

    Plugin Author Mike Toppa

    (@toppa)

    Yessir, that was one of the fixes in this release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid shortcode attribute: theme_widget_styles’ is closed to new replies.