Title: Moddinu's Replies | WordPress.org

---

# Moddinu

  [  ](https://wordpress.org/support/users/moddinu/)

 *   [Profile](https://wordpress.org/support/users/moddinu/)
 *   [Topics Started](https://wordpress.org/support/users/moddinu/topics/)
 *   [Replies Created](https://wordpress.org/support/users/moddinu/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/moddinu/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/moddinu/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/moddinu/engagements/)
 *   [Favorites](https://wordpress.org/support/users/moddinu/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] Yop Poll Admin Menu](https://wordpress.org/support/topic/yop-poll-admin-menu/)
 *  Thread Starter [Moddinu](https://wordpress.org/support/users/moddinu/)
 * (@moddinu)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/yop-poll-admin-menu/#post-4359245)
 * Hey guys after further debugging I found the issue for some reason after reinstalling
   the plugin I got set as a subscriber. So when I reinstalled it I did not have
   access to the the yop poll.
 * So make sure your an admin user in the site otherwise yop poll won’t all access
   to modify polls.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] Yop Poll Admin Menu](https://wordpress.org/support/topic/yop-poll-admin-menu/)
 *  Thread Starter [Moddinu](https://wordpress.org/support/users/moddinu/)
 * (@moddinu)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/yop-poll-admin-menu/#post-4359240)
 * So after some further testing , It seems like a database issue, as when I restore
   an older version of the database the menu is shown in the main blog.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[International SMS Subscription Manager] Front End Hangs for 30 Seconds](https://wordpress.org/support/topic/front-end-hangs-for-30-seconds/)
 *  Thread Starter [Moddinu](https://wordpress.org/support/users/moddinu/)
 * (@moddinu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/front-end-hangs-for-30-seconds/#post-4284507)
 * After further investigation I found that the the problem was with the service
   used to get the users ip so I change the code as follows:
 *     ```
       $url = 'http://www.geoplugin.net/xml.gp?ip='.$ip;
       $ch = curl_init($url);
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
       $cdata = curl_exec($ch);
       curl_close($ch);
       $carr = simplexml_load_string($cdata);
   
       $return = $countries["{$carr->geoplugin_countryCode}"];
       return $return;
       ```
   
 * Note: If you are using the plugin on a localhost machine the ip would be 127.0.0.1
   therefore the service will return a 404 error. so you may want to add an if statement
   to set a default county code if the ip is 127.0.0.1.

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