When I update devFormatter to the latest version, I am seeing errors when activating these other plugins. “Header request already sent.”, etc etc.
The old version works fine, just the most recent update is broken.
Warning: Cannot modify header information – headers already sent by (output started at /home/caseyctghw/public_html/wp-content/plugins/devformatter/devformatter.php:1) in /home/caseyctghw/public_html/wp-includes/pluggable.php on line 1228
Warning: Cannot modify header information – headers already sent by (output started at /home/caseyctghw/public_html/wp-content/plugins/devformatter/devformatter.php:1) in /home/caseyctghw/public_html/wp-includes/pluggable.php on line 1228
]]>Developer Formatter support bbPress and buddyPress posts?
Thanks,
Best regards,
Jose a.
Developer formatter is not supported for wordpress version 4.0
]]>I upgraded from PHP 5.3 to 5.5 and started getting the following 2 errors:
1. PHP Strict Standards: Non-static method DevGeSHi::langFiles() should not be called statically in /var/www/html/wp-content/plugins/devformatter/devcommon.php on line 70
2. PHP Strict Standards: Non-static method DevGeSHi::langFileTitle() should not be called statically in /var/www/html/wp-content/plugins/devformatter/devgeshi.php on line 82
I have fixed these issues by marking both method definitions as static. Does that seem reasonable?
]]>After inserting the code in the formattter,it shows an alert with the code and nothing updates on the editor.
]]>Does not post any code..
]]>Since I started using DevFormater I’ve been running into a problem that sometimes, just randomly, a HTML comment tag “<!–DVFMTSC–>” appeared inside the formated CODE tag.
First it was so rare I was able to remove them manually, but today I ended with a post containing thousands of “<!–DVFMTSC–>” and even “<!??DVFMTSC??>”.
So I had to take and action and I’ve created a function to permanently remove them from the posts.
function fixDVFMTSC(text) {
var newText = text;
text = '';
while (newText !== text) {
text = newText;
newText = text.replace(new RegExp('(<|<)!(-|?){2}DVFMTSC(-|?){2}(>|>)', 'g'), '');
}
return newText;
}
Then I’ve used thim method in file “\wp-content\plugins\devformatter\devfmt_editor.js” in function “this.parseEnd” changing line
return a1 + block + a4;
to
return a1 + fixDVFMTSC(block) + a4;
So if anyone runs into a similar problem, this may be the workaround.
But still does anyone know the real reason why this happens?
]]>It only works up to version 3.2
]]>HI,
there is flash based cross-site scripting in you plugin which affect the latest version of plugin
vulnerability exist due to outdated version of flash file
vulnerable parameter is “id”
vulnerable code is :
button.addEventListener(MouseEvent.MOUSE_OVER,function(param1:Event):*
{
ExternalInterface.call(“ZeroClipboard.dispatch”,id,”mouseOver”,null);
});
button.addEventListener(MouseEvent.MOUSE_OUT,function(param1:Event):*
{
ExternalInterface.call(“ZeroClipboard.dispatch”,id,”mouseOut”,null);
});
button.addEventListener(MouseEvent.MOUSE_DOWN,function(param1:Event):*
{
ExternalInterface.call(“ZeroClipboard.dispatch”,id,”mouseDown”,null);
});
button.addEventListener(MouseEvent.MOUSE_UP,function(param1:Event):*
{
ExternalInterface.call(“ZeroClipboard.dispatch”,id,”mouseUp”,null);
});
ExternalInterface.addCallback(“setHandCursor”,setHandCursor);
ExternalInterface.addCallback(“setText”,setText);
ExternalInterface.call(“ZeroClipboard.dispatch”,id,”load”,null);
}
step to reproduce :
https://www.securitysift.com/wp-content/plugins/devformatter/_zclipboard.swf?id=\%22))}catch(e){confirm(/XSSbysahil/.source);}//&width=500&height=500
payload : \%22))}catch(e){confirm(/XSSbysahil/.source);}//&width=500&height=500
mod_security filter has been bypassed by using confirm instead of alert
contact email : [email protected]
best regards
sahil saif
]]>I’m using this plugin on a blog with many users- I have several set up as ‘author’ so they can’t publish their own posts, but at that level, every time these users save a post, the lang="foo"
attribute is stripped out of the code. If I upgrade them to editor, they can save just fine.
I’d prefer for users to have the minimal permissions possible, so anyone have any ideas?
]]>WordPress 3.5.1
Tested on Chrome and IE9
The plugin works as far as putting the code in to a “code block” and the line numbers work, however, the code syntax isnt coloured.
ie.
<?php echo “blah” ?>
< > dont display green
?php isnt bold
etc…
i have tried with different variations on the setting, but no luck.
]]>function.file line 100
I have an error sample at the following link
https://williameduardo.com/errorsample/
https://www.ads-software.com/extend/plugins/devformatter/
Unchecking Use DevFormatter System in the admin fixes the issue of course..
]]>There’s a conflict with this plugin (possibly with the Custom Fields plugin and/or the Custom Post Types plugin, but possibly just with WP core) such that, when editing a custom post type, the content from the main WP content field is displayed in the custom fields —?save any edits, and that data is copied to those fields.
]]>Hi there
Just so that this doesn’t break in the future. In devinterface.php on line 228 is the following call:
load_plugin_textdomain(‘devformatter’,’/wp-content/plugins/devformatter/langs’);
the second arguments is deprecated.
]]>i get the following error when using the preview button in the devformatter entry thickbox in the editor:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘serp_add_page’ was given in **my wp path**/wp-includes/plugin.php on line 403
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘serp_init’ was given in **my wp path**/wp-includes/plugin.php on line 403
not an urgent thing – it works fine when actually displayed on the page. just annoying to have pop up every time i want to preview the code i’m entering!
]]>When using the Plugin to show PHP script the initial <?php
shows as < ?PHP
meaning that if someone used the script it won’t be recognized as PHP due the the space in< ?PHP
.
Is there any workaround/fix to stop the space being inserted after the <
?
Thanks
I just test DevFormatter on BBpress 2.1 RC3 with HTML editor but not work.
Code exemple:
<code lang="css">
//css tags
</code>
How to make it work?
Thank you
]]>That’s becasue it changes the order of wpautop and/or other parsing and filtering functions, what causes the output of EasyRotator shortcode to be mangled and one comment tag is changed to html entity, which causes havoc.
The short discussion which lead to this discovery is here: https://www.dwuser.com/forums/viewtopic.php?f=11&t=1947&sid=4f66a28fe7a72983809a6eb0d5b7b96c
Any ideas how to fix it, or workaround it? Please help!
EDIT: ahhh, the forum post is visible to registered users only. Ok, so copy paste:
I said: “It’s in the middle fragment, which should be the end of comment (–>), however somehow got translated into entity. This could be because of wpautop (or other text processing stuff), however I disabled it and no change. When changing the entity to comment end, it displays as it should.
I’m trying to understand what happened, and apart from installing CMS like plugins no big things chagned. Perhaps it was always like that, only I didn’t notice broken footer.
I’m using WordPress 3.3.1 and latest EasyRotator. Any ideas on how to fix it?”
]]>The shredded rotator code you’re showing results when WordPress’s default behavior is changed such that wpautop is being run after the EasyRotator shortcode is parsed. The usual culprit is some other plugin — for example, Shortcodes Ultimate. The 1.0.1 update to the plugin includes compatibility for Shortcodes Ultimate, so it is most likely a different plugin in your case.
First, try wrapping the EasyRotator shortcode in [raw]…[/raw]. If that doesn’t fix the problem, I recommend you try disabling plugins one by one until you identify the problematic plugin. Please share here what you find.
Sincerely,
Drew O’Neill
DWUser.com SupportI replied: “Spot on!
I got it, it’s the Developer Formatter: https://www.ads-software.com/extend/plugins/devformatter/
It’s pretty useful, from my experience the only code formatting plugin in WP worth using (but I have high standards ?? so would be nice if either of the pair would learn how to cooperate with the other.
Oh, and the [raw] tags do nothing, they’re just displayed as is. Perhaps another plugin is needed for them? Untill the situation is fixed, using [raw] could be a good workaround for the problem (if I understood that would prevent the EasyRotator code from being processed by wpautop).
“Hi,
I just browsed the plugin’s source code, and it doesn’t appear that there are any easy “skip” codes that cause code to be ignored. I can’t guarantee that I didn’t miss it, though, as the code’s a little less than well-organized.
The best solution would be for the plugin author to add a special code (like [raw][/raw]) that causes code to be skipped. Another solution would be for you to manually edit the plugin to do this.
Or, you could create a special plugin that forces the EasyRotator shortcode to be executed later (see: https://www.viper007bond.com/2009/11/22/wordpress-code-earlier-shortcodes/ …you would use a higher priority value instead of lower).
Sincerely,
Drew O’NeillI don’t want to mess with such things, hopefully the author of DevFormatter can quickly spot where’s the problem and create a fix or workaround.
Hi, I used the DevFormatter 2012.0.1.38 on my WP 3.3.1 blog, it works great, also I managed to customize the look to my taste in css.
However, there’s the problem with selecting the code, which also selects line numbers in FF 12 and Opera 11 and IE 8. I need to have line numbers, so I’m looking for a solution that will not select and copy them. I’m not afraid of modyfing DevFormatter code or adding something to functions.php ??
I learned that GESHI has a compatibility setting, header_type. I tried editing devgeshi.php where the $this->GeSHIObj->set_header_type(GESHI_HEADER_PRE); is and changing it to GESHI_HEADER_PRE_TABLE, but to no avail.
Also, I disabled the flash header – no effect.
]]>The latest version (2012.0.1.37) fixed the editor problems, but I found it still prohibited the fly-out menu from being displayed. When I am at the main page of control panel and hover the mouse on the menu items at the left hand side menu, no flyout menu appears.
Firefox reported a JS error: switchEditors is not defined.
The problem is gone if this plug-in is disabled.
]]>Install DevFormatter, and activate it, you should found the whole editor has been broken. Then FTP to your website, download and modify the file in /wp-content/plugins/devformatter/ with the name of “devinterface.php”.
On line 465, you should see these code:
for(i = 0; i < edButtons.length; i++)
if(edButtons[i].id == 'ed_code')
edCodeId = i;
$(\"input#ed_code\")[0].onclick = function(){
ed_codeInsert(edCanvas, edCodeId);
};
Remove them, save and upload this file to your website, you will find the editor has been recovered.
WARNING: This workaround would remove the function of the link to DevFormatter of “code” button. You have to insert the “code” tag by yourself, for example, <code lang=”c”> or something similar.
When I activate this plugin, the whole editor broken. I mean, I cannot add Tags, cannot access toolbar, and also cannot find the icon of this plugin.
]]>The edit page doesn’t work anymore: cannot add tags, categories, etc.
]]>HEllO
I tried this plugin with wordpress 3.3.
When I click add formatted code button in editor it gives no response. Is this plugin incompatible with WordPress 3.3
Should I wait for to get plugin update soon.
Thank you
]]>Interferes with the Admin jQuery. WP 3.3 Admin side jQuery doesn’t work when this plugin is active.
]]>The new flyout menu feature in WP 3.3 fails in some cases. When I am at the main page of control panel and hover the mouse on the menu items at the left hand side menu, no flyout menu appears. But if I am at other pages, say, All Posts, flyout menu works fine.
Other dynamic menus such as the visibility updating menu in post editing page also don’t work.
If devformatter is disabled, all problems are gone.
]]>I’ve downgraded my WordPress from 3.3 to 3.2.1 because the plugin devformatter don’t work.
When plugin is enabled, it’s impossible to edit normally a post (can’t add link or pictures) and it’s impossible to add code.
]]>Whenever I log into WP backoffice, the following error_log shows up in the devformatter plugin directory:
[13-Oct-2011 11:39:19] PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/mydomain/public_html/wp-settings.php on line 32
[13-Oct-2011 16:39:19] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-settings.php:32) in /home/mydomain/public_html/wp-content/plugins/bad-behavior/bad-behavior/screener.inc.php on line 8
Hi
I changed the Custom CSS on the settings page and SAVEd it, but I cannot get the changes to take effect on my blog.
How do I get the changes in CSS to appear on blog?
Thanks
]]>