Hello
Is there a way to make “AmberPanther WP Include File” to include php in other widgets than the text widget?
For example I’m using Ad injecton widget for ads, which i badly need to output a php file.
Warning: Cannot modify header information – headers already sent by (output started at <install-path>/wp-content/plugins/wp-include-file/ap-ps/dashboard/index.php:3) in <install-path>/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 77
It looks like your plug-in is not playing nice with WP Super Cache.
I’m running this plug-in on a multisite and getting the same warning whether network-activated or activated per site.
I fixed the problem on my site by adding the following code to /wp-include-file/ap-ps/dashboard/index.php:
Just before the “<script>” tag:
<?php
if (headers_sent()) {
?>
And after the “</script”> tag:
<?php
}
?>
]]>
If the file to be included contains shortcodes, your web page will display them just the way they were written, i.e. [shortcode…]
As a temporary fix, open wp-include-file.php in your plugins folder and change return $content;
to return do_shortcode($content);
Hey all,
Installed and worked fine until i went into debug.
Threw:
Notice: Undefined index: jquery in /wp-content/plugins/wp-include-file/class/ap_plugin_ambrapanthera.php on line 120
any ideas?
]]>