-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Subsets results in an error #1410
Comments
I can't replicate this one... |
Same issue |
Guys I still can't get this error. |
@hellor0bot @vlthemes @usmanshahzad So far I've been unable to replicate this issue. |
OK, @vlthemes just sent me his theme and I was able to replicate the issue. And here's how xdebug can be really helpful when debugging.
Line 196 in the class-kirki-modules-css.php looks like this: wp_add_inline_style( 'kirki-styles-' . $config_id, $styles ); If right above that line I add var_dump( $styles ); I can now see this in my screen: So the problem is that for some reason it can't get the font and throws an error which gets printed in the styles. Continuing on with the debugging now, as soon as I have a solution I'll post back here. |
Fixed. Please note that if checking on an existing site, you'll have to delete all transients from the db, or just wait 24hours for them to expire. |
@aristath, sorry was away for a couple of days :( your fix is working fine on my end! Thanks a lot! |
Issue description:
When selecting multiple subsets, I'm getting this error:
Notice: wp_add_inline_style was called <strong>incorrectly</strong>. Do not pass <code><style></code> tags to <code>wp_add_inline_style()</code>. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.7.0.) in /srv/www/theme/htdocs/wp-includes/functions.php on line 4139
Version used:
Develop
The text was updated successfully, but these errors were encountered: