Home › Forums › WoodMart support forum › Notice: wp_add_inline_script was called incorrectly
Notice: wp_add_inline_script was called incorrectly
- This topic has 16 replies, 2 voices, and was last updated 6 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
July 5, 2018 at 9:35 am #66114
msgdevParticipantHello.
I got the following error.
Do not pass <script> tags to wp_add_inline_script(). Please see Debugging in WordPress for more information. (This message was added in version 4.5.0.) in in /home2/andrijasevic/public_html/wp-includes/functions.php on line 4148
I tried disabling plugins and the error disappear when I disable Redux-framework.
Also i have this at the bottom of page
Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home2/andrijasevic/public_html/wp-includes/functions.php on line 3730Can you help me solve this?
July 5, 2018 at 9:40 am #66118
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it? Also, send us some screenshots where we can see those errors.
Thank you in advance
July 5, 2018 at 9:47 am #66122
msgdevParticipantI have disabled all plugins not related to your theme.
Attachments:
You must be logged in to view attached files.July 5, 2018 at 9:50 am #66125
Artem TemosKeymasterDid you make any customizations in our theme’s files? Please, reinstall the theme and send us your FTP access so we can check it.
July 5, 2018 at 9:56 am #66133
msgdevParticipantNope, I didn’t. I would use child theme if there were any need for that.
The only thing i changed is the custom css strings added in theme options section.
I will send you FTP access after I reinstall the theme.
Thanks Artem
July 5, 2018 at 11:50 am #66270
msgdevParticipantTheme has been reinstalled.
July 5, 2018 at 12:06 pm #66274
Artem TemosKeymasterSorry, but we can’t find the root for these errors. They point to core WordPress files and not to our theme’s files. We need to see some kind of PHP functions call stack if it is possible on your server. Otherwise, you can simply disable WordPress debug mode since they are simple notices and they can’t harm your website functionality or performance.
July 5, 2018 at 12:19 pm #66277
msgdevParticipantHi Artem, is your theme compatible with Loco translate?
I got this error when trying to save translated word.
Error: document.documentElement.className = document.documentElement.className + ‘ yes-js js_active js’. Check console output for debugging information.Maybe that plugin is causing the problem?
July 5, 2018 at 12:21 pm #66278
Artem TemosKeymasterYes, it is fully compatible with Loco Translate. Could you please describe to us a step by step instruction where we can see this error.
July 5, 2018 at 12:28 pm #66279
msgdevParticipantGo to Loco translate, choose Woocommerce Serbian language edit and choose one string. No matter which one. It can be one already translated. Hit save and you get this error.
Site was few times down when I tried to save some strings. I set up PHP post_max_size on maximum and site doesn’t go down but I get this error now.
July 5, 2018 at 12:31 pm #66280
Artem TemosKeymasterAnd it happens with our theme only? Could you please install standard WordPress theme so we can test it?
July 5, 2018 at 12:36 pm #66283
msgdevParticipantI didn’t check with any other theme. Standard WP theme has been installed.
July 5, 2018 at 1:00 pm #66288
Artem TemosKeymasterSo please, check how it works with default WordPress theme to see if it is our theme issue or not.
July 5, 2018 at 1:16 pm #66290
msgdevParticipantOk. I have checked it with Twenty seventeenth. Loco works fine when translating theme files. The problem occurs while translating Woocommerce files no matter which theme is active.
P.S. While I switched back to Woodmart theme all widgets on the site, some part of footer and on shop are gone. Why?
July 5, 2018 at 1:49 pm #66292
Artem TemosKeymasterThe problem may occur when you switch between themes in Appearance -> Themes is that widgets may lose their positions. It is a WordPress behavior and we are not able to fix this in our theme scope. Now, you need to go to Appearance -> Widgets and move all widgets to appropriate positions.
As a workaround, you can backup your widgets configurations using this plugin https://wordpress.org/plugins/widget-importer-exporter/July 5, 2018 at 1:57 pm #66294
msgdevParticipantOk. Didn’t know that. Have to put all these back manually now. Thanks for plugin info.
I have managed to remove the notice for Wp_add_inline_script. After I have removed Google analytics and Facebook pixel code the Notice has disappeared.The ob_end_flush(): failed to send buffer of zlib output compression (0) in /home2/andrijasevic/public_html/wp-includes/functions.php on line 3730 has nothing to do with the theme? I guess it’s a server issue. Correct me if I am wrong.
Now the only problem left is a problem with Loco translate. Still can not save translated strings. Did you test any other plugin for translation?
July 5, 2018 at 2:14 pm #66297
Artem TemosKeymasterUsually, Loco Translate works for all websites without any troubles. This problem may be also caused by your server because it can’t complete the AJAX request to save the file.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register