Title: Post Problem
Last modified: August 20, 2016

---

# Post Problem

 *  [aleksthemighty](https://wordpress.org/support/users/aleksthemighty/)
 * (@aleksthemighty)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-problem-11/)
 * Hi, today i install this plugin in my site but when i go to New Post and click
   on the button on my UltimateTwice i get a popup sreen with this Code `<?php
    
   $root = __FILE__; require_once(‘../../countries.php’); asort($ar_countries); 
   for ($i = 0; $i < 6; $i++) $root = dirname($root); if (!defined(‘DS’)) { define(‘
   DS’, DIRECTORY_SEPARATOR); } require_once($root . DS . ‘wp-config.php’); require_once(
   ABSPATH . ‘wp-admin’ . DS . ‘admin-functions.php’); if(!current_user_can(‘edit_posts’))
   die; do_action(‘admin_init’); global $wpdb; ?> <!DOCTYPE html PUBLIC “-//W3C//
   DTD XHTML 1.0 Strict//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
   <head> <title>Insert Country Flag</title> <link type=”text/css” rel=”stylesheet”
   href=”<?php echo $wpdb->worldflag_plugin_dir; ?>assets/flags.css”/> <script language
   =”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/
   js/jquery/jquery.js”></script> <script language=”javascript” type=”text/javascript”
   src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js”></script
   > <script language=”javascript” type=”text/javascript” src=”<?php echo site_url();?
   >/wp-includes/js/tinymce/utils/mctabs.js”></script> <script language=”javascript”
   type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/
   utils/form_utils.js”></script> <script language=”javascript” type=”text/javascript”
   src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js”></
   script> <script language=”javascript” type=”text/javascript”> jQuery(document).
   ready(function($){ var _self = tinyMCEPopup; $(‘#wpwrap .country’).live(‘click’,
   function(e){ e.preventDefault(); var country=$(this).attr(‘data-cid’); var tag
   ='[flag country=”‘+country+'”]’; if(window.tinyMCE) { window.tinyMCE.execInstanceCommand(‘
   content’, ‘mceInsertContent’, false, tag); tinyMCEPopup.editor.execCommand(‘mceRepaint’);
   tinyMCEPopup.close(); } }); $(‘#closeMCE’).click(function(e){ e.preventDefault();
   tinyMCEPopup.close(); }) }); </script> <style type=”text/css”> .countries-wrap{
   background:#EEE; } .countries-wrap .country { width:45%; float:left; padding:
   3px; cursor:pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; -ms-
   border-radius: 2px; border-radius: 2px; } .countries-wrap .country:hover { background:#
   DDD; } .countries-wraps:after { content:””; clear:both; display:block; width:
   100%; } </style> </head>
 * <body>
    <div id=”wpwrap”> <div class=”countries-wrap”> <?php foreach($ar_countries
   as $code=>$name){ ?> <div class=”country country-<?php strtolower($code); ?>”
   data-cid=”<?php echo strtolower($code); ?>”><img src=”<?php echo $wpdb->worldflag_plugin_dir;?
   >assets/blank.gif” class=”flag flag-<?php echo strtolower($code); ?>” /> <?php
   echo ucwords(strtolower($name)); ?></div> <?php } ?> </div> </div> </body> </
   html>` Please help me
 * [http://wordpress.org/extend/plugins/world-flag/](http://wordpress.org/extend/plugins/world-flag/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Sovit Tamrakar](https://wordpress.org/support/users/ssovit/)
 * (@ssovit)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-problem-11/#post-3590180)
 * its something to do with your php config I think. Some hosts come with high security
   setups if you used wordpress auto-installer or some security plugins.
 * create a .htaccess file with text
    **AddType x-mapp-php5 .php** in it and put
   it in the in **wp-contents/plugins/world-flag** directory or somewhere you have
   installed the world-flag.
 *  Thread Starter [aleksthemighty](https://wordpress.org/support/users/aleksthemighty/)
 * (@aleksthemighty)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-problem-11/#post-3590181)
 * Nope, steel the same problem 🙁
 *  Plugin Author [Sovit Tamrakar](https://wordpress.org/support/users/ssovit/)
 * (@ssovit)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-problem-11/#post-3590182)
 * the iframe is showing the php codes means that your server is not working properly
   or your php config is forcing php files to be treated as html file. Please make
   sure of it. Also, if you contact your web host provider, they can sort it out.
 *  [Tadas Krivickas](https://wordpress.org/support/users/tkrivickas/)
 * (@tkrivickas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-problem-11/#post-3590203)
 * I also have similar issue: [http://imgur.com/D8u71P0](http://imgur.com/D8u71P0)
 * Maybe it is possible to implement it like in other plugins (it’s working), e.
   g. [Tablepress](http://wordpress.org/extend/plugins/tablepress/) using admin_post.
   php and action?
 *  [Doctorpwnz](https://wordpress.org/support/users/doctorpwnz/)
 * (@doctorpwnz)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-problem-11/#post-3590257)
 * Have the same trouble.
 *  [teeratouch](https://wordpress.org/support/users/teeratouch/)
 * (@teeratouch)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-problem-11/#post-3590259)
 * Got the same problem .. Moreover I use a localhost which shouldn’t have any problem
   with server as you mention. About php config, I haven’t tried it yet. Please 
   advise and help.
 * Anyway this plug-in is very useful if I could use it. I will definitely rate 
   it as a 5 stars.
 *  [myxmlcigar](https://wordpress.org/support/users/myxmlcigar/)
 * (@myxmlcigar)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/post-problem-11/#post-3590265)
 * Same issue here. When I goto add a flag, I simply get the popup and it spits 
   up the php and html code.
 * It’s not our server as we have root access and pretty much EVERY plugin we’ve
   installed on WP works fine.
 *  [myxmlcigar](https://wordpress.org/support/users/myxmlcigar/)
 * (@myxmlcigar)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/post-problem-11/#post-3590266)
 * Fix the issue on my end. Simply removed the .htaccess file that was in:
 * wp-contents/plugins/world-flag/assets/tinymce
 * Looks like the developer put an .htaccess file in the above directory. Deleting
   the .htacces file fixed the issue with the plugin burping up the php code.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Post Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/world-flag_f9f9f9.svg)
 * [World Flag](https://wordpress.org/plugins/world-flag/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/world-flag/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/world-flag/)
 * [Active Topics](https://wordpress.org/support/plugin/world-flag/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/world-flag/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/world-flag/reviews/)

 * 8 replies
 * 6 participants
 * Last reply from: [myxmlcigar](https://wordpress.org/support/users/myxmlcigar/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/post-problem-11/#post-3590266)
 * Status: not resolved