{"id":5411529,"date":"2014-10-22T09:56:17","date_gmt":"2014-10-22T09:56:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/conflicts-with-wpbakery-visual-composer\/"},"modified":"2016-08-22T03:42:10","modified_gmt":"2016-08-22T03:42:10","slug":"conflicts-with-wpbakery-visual-composer","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conflicts-with-wpbakery-visual-composer\/","title":{"rendered":"Conflicts with wpbakery visual composer"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Great plugin, i like that the equation is text based instead of using images.<\/p>\n<p>I have come across a problem when using WP-Katex on a site that has a theme that uses the wpbakery visual composer plugin. The problem occurs when i insert an equation into a page, it throws up this error:<\/p>\n<p>Warning: Invalid argument supplied for foreach() in \/home\/simonlaw\/public_html\/dev\/wp-content\/plugins\/js_composer\/include\/classes\/core\/class-vc-base.php on line 345<\/p>\n<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at \/home\/simonlaw\/public_html\/dev\/wp-content\/plugins\/js_composer\/include\/classes\/core\/class-vc-base.php:345) in \/home\/simonlaw\/public_html\/dev\/wp-includes\/pluggable.php on line 1173<\/p>\n<p>I am seeing this when i preview the page after inserting this code:<br \/>\n<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=A%3D+-ln%28%5Cfrac%7BIi%7D%7BIo%7D%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"A= -ln(&#92;frac{Ii}{Io})\" class=\"latex\" \/> [1]<\/p>\n<p>One thing that is weird is that it works if the code is up around the top of the page, but further down, i get the above error.<\/p>\n<p>The theme i am using is trizzy &#8211; http:\/\/themeforest.net\/item\/trizzy-multipurpose-woocommerce-wordpress-theme\/8724702<\/p>\n<p>Any ideas on what is causing the conflict?<br \/>\nCheers<br \/>\nSimon<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-katex\/<\/p>\n","protected":false},"template":"","class_list":["post-5411529","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5411529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5411529\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5411529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}