{"action":"created","issue":{"url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377","labels_url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377/comments","events_url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377/events","html_url":"https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377","id":110797024,"number":377,"title":"his MailChimp shortcode is now deprecated. Please insert the new shortcode to display this form.","user":{"login":"xtremist","id":15064820,"avatar_url":"https://avatars.githubusercontent.com/u/15064820?v=3","gravatar_id":"","url":"https://api.github.com/users/xtremist","html_url":"https://github.com/xtremist","followers_url":"https://api.github.com/users/xtremist/followers","following_url":"https://api.github.com/users/xtremist/following{/other_user}","gists_url":"https://api.github.com/users/xtremist/gists{/gist_id}","starred_url":"https://api.github.com/users/xtremist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtremist/subscriptions","organizations_url":"https://api.github.com/users/xtremist/orgs","repos_url":"https://api.github.com/users/xtremist/repos","events_url":"https://api.github.com/users/xtremist/events{/privacy}","received_events_url":"https://api.github.com/users/xtremist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-10T14:16:05Z","updated_at":"2015-10-10T14:27:35Z","closed_at":null,"body":"Logged into my site (xtremist.me) this morning to find the message on one of my pages. All of my settings were wiped out such as api code, etc... Followed suggestion to deactivate/reactivate - did not help. Tried delete and get fatal error.\r\n I can't delete it. I can't reactivate it - I'm stuck big time.\r\n\r\n\r\nFatal Error (hide details) (remove)\r\nThe site encountered a problem that it cannot recover from. Please use the following information to try to resolve the problem.\r\n\r\nError Message\r\n\r\nFatal Error: Cannot redeclare class Mailchimp in /home/xtremist/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/includes/MailChimp/Mailchimp.php on line 17\r\nDescription\r\n\r\nThe Easy Forms for MailChimp by YIKES plugin code created an error that caused PHP execution to fail.\r\n\r\nThe code tried to create a function that already existed (class Mailchimp()). This error typically occurs when the PHP file that defines the function is loaded more than once, which could indicate a bug in the code or that some modification is incorrectly trying to load the file again. This type of error can sometimes indicate a plugin conflict which can occur if two plugins try to use the same function name.\r\n\r\nSolutions\r\n\r\nInvalid code modifications can cause this problem. If you have made any modifications to the plugin, remove them and try to load the site again.\r\nIt is possible that this plugin's code is out of date and that an upgrade is available. Check with the plugin's author to see if an upgrade is available.\r\nThere may be a conflict with another plugin running on the site. Try upgrading the other plugins on the site. A plugin conflict can be ruled out by deactivating all the other active plugins on the site and checking to see if the error still occurs.\r\nThe Easy Forms for MailChimp by YIKES plugin may not have been fully uploaded. Uploading the plugin again could fix the issue. Important: If you do this, you will lose any modifications made to the plugin.\r\nError Source Details\r\n\r\nType\tPlugin\r\nName\tEasy Forms for MailChimp by YIKES\r\nVersion\t6.0.1\r\nAuthor\tYIKES\r\nPath\t/home/xtremist/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender\r\nFile\tincludes/MailChimp/Mailchimp.php\r\nOther Software Details\r\n\r\nWordPress Version\t4.3.1\r\nPHP Version\t5.3.29\r\nFull Error Details\r\n\r\nType\tZend Compile-Time Error (E_COMPILE_ERROR)\r\nMessage\tCannot redeclare class Mailchimp\r\nFile\t/home/xtremist/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/includes/MailChimp/Mailchimp.php\r\nLine\t17\r\nType Description\tThis type of error indicates that the PHP code is violating a restriction enforced by PHP. An example of such a violation is trying to use a reserved word for a class or function name.\r\n\r\nNote that this message is generated by iThemes.com products when an error is encountered on the site. While an iThemes product is generating this message, it is not necessarily the cause of the problem."},"comment":{"url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/comments/147093835","html_url":"https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377#issuecomment-147093835","issue_url":"https://api.github.com/repos/yikesinc/yikes-inc-easy-mailchimp-extender/issues/377","id":147093835,"user":{"login":"EvanHerman","id":5321364,"avatar_url":"https://avatars.githubusercontent.com/u/5321364?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanHerman","html_url":"https://github.com/EvanHerman","followers_url":"https://api.github.com/users/EvanHerman/followers","following_url":"https://api.github.com/users/EvanHerman/following{/other_user}","gists_url":"https://api.github.com/users/EvanHerman/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanHerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanHerman/subscriptions","organizations_url":"https://api.github.com/users/EvanHerman/orgs","repos_url":"https://api.github.com/users/EvanHerman/repos","events_url":"https://api.github.com/users/EvanHerman/events{/privacy}","received_events_url":"https://api.github.com/users/EvanHerman/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T14:27:35Z","updated_at":"2015-10-10T14:27:35Z","body":"Ok, it looks like we'll need to wrap the our include in a check to ensure that the class hasn't been previously declaired.\r\n\r\nWhat I can recommend (for a temporary fix) is to replace the following line:\r\nhttps://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/blob/staging/plugin_core/admin/class-yikes-inc-easy-mailchimp-extender-admin.php#L55\r\n\r\nwith\r\n\r\n```php\r\n// ensure the MailChimp class wasn't previously declared in another plugin\r\nif( ! class_exists( 'Mailchimp' ) ) {\r\n\t// Include our MailChimp API Wrapper\r\n\tinclude_once( YIKES_MC_PATH . 'includes/MailChimp/Mailchimp.php' );\r\n}\r\n```\r\n\r\nI've been working on a patch with a few minor tweaks over the past day that I'm hoping to push out in the next day or so.  I'll get this included into that patch.\r\n\r\nEvan"}}