Andrey "Rarst" Savchenko
Forum Replies Created
-
WordPress checks those constants and sets error reporting levels during load process (
wp_debug_mode()call) so what you are trying to set in wp-config byerror_reporting()call is overridden.You should make
error_reporting()call later (after load process completes), try oninithook.Forum: Plugins
In reply to: [MailChimp STS] Argh! Have done all setup but can't get plugin to work…This is one very obscure bug. Under some narrow conditions (I suspect that length of data is a factor) MailChimp API replies with HTTP response that cannot be correctly uncompressed by WordPress.
Quick code fix that checks if response holds valid JSON data and tries to correct compression issue if not:
add_filter('http_response', 'mailchimp_http_response_inflate_fix', 10, 3); function mailchimp_http_response_inflate_fix($response, $args, $url) { if( false === strpos($url, 'sts.mailchimp.com') ) return $response; $json = json_decode($response['body']); if( is_null($json) ) { $inflate = @gzinflate(substr($response['body'], 2)); if( false !== $inflate ) $response['body'] = $inflate; } return $response; }Forum: Plugins
In reply to: [MailChimp STS] Argh! Have done all setup but can't get plugin to work…I am puzzled. From your description so far seems like everything but retrieving verified emails works. Send probably doesn’t work because it doesn’t have email address to use.
Please drop me email in contact@rarst.net if you want me to have hands on look at your MailChimp and/or WP setup.
Forum: Plugins
In reply to: [MailChimp STS] Argh! Have done all setup but can't get plugin to work…Ok. Plugin can report “No verified email found.” in two cases – there are no verified emails at all (which we excluded) or API request had failed for some reason.
1. Do you get any other errors from plugin on settings page or report page (in Dashboard section of menu)?
Especially messages starting with “API error.”. If API key is configured plugin silently performs API check every time you open its settings page and gives such error if check fails.
2. Are you sure your WordPress installation is capable of performing outgoing network requests? Does things like checking for WP/plugin/theme updates and email notifications (with MailChimp STS plugin disabled) work?
Forum: Plugins
In reply to: [MailChimp STS] Argh! Have done all setup but can't get plugin to work…Hello Lee,
WordPress plugin retrieves information about verified addresses from STS API. Either plugin fails to accomplish that for some reason or your email is not being reported as verified by API.
So let’s try to figure this out first. You can see list of verified emails, as returned by API, by opening such link:
http://us1.sts.mailchimp.com/1.0/ListVerifiedEmailAddresses?apikey=yourapikeyhere
Use your MailChimp API key in the link and (if needed) change us1 at start of link to your datacenter (as reported by WP plugin and specified at end of your API key).
I started to get this error repeatedly with latest plugin version. It keeps coming up even after I disabled minify for CSS and JS.
Log entries after enabling debug mode:
[Sun, 03 Jul 2011 01:19:35 +0000] [/wp-content/w3tc/min/dc2bc0/post.include-footer.4248003223.js] [-] A group configuration for "include-footer" was not set [Sun, 03 Jul 2011 06:44:57 +0000] [/wp-content/w3tc/min/dc2bc0/default.include.61659561.css] [-] A group configuration for "include" was not setSo, could you please recommend us a wordpress plugin that can integrate MailChimp account to register/subscription for a newsletter?
(free)Sorry again, I had only been working on more recent MailChimp plugins and they deal with utility functionality (like STS, it’s not related to newsletter functionality of MailChimp).
You can try looking through integrations directory http://connect.mailchimp.com/category/cms or contacting MailChimp directly http://kb.mailchimp.com/contact
Ah! STS is currently only available on paid MailChimp accounts:
Because this is so new, and because we really want to prevent abuse, this is only going to be available to our paying customers for the foreseeable future.
http://blog.mailchimp.com/mailchimp-launches-transactional-email-service-on-top-of-amazon-ses/
Note that you don’t pay MailChimp for STS usage (you pay Amazon SES if you need more than their free limit), but you do need paid MailChimp account.
Sorry for the confusion I will raise the issue to clarify this in plugin.
You should be able to access integration page at this link (or try Account > Integrations at MailChimp site):
https://admin.mailchimp.com/account/integrations/
And scroll until you find “Amazon Simple Email Service”.
You need to integrate your Amazon account with MailChimp account. This is not something plugin can, so its settings have no related fields.
This is covered in
readme.html, supplied with plugin, under 4. Integrate Amazon SES with MailChimp. Contextual help section (top of plugin’s settings screen) has link to it.Forum: Plugins
In reply to: [Tumblrize] [Plugin: Tumblrize] Error on installationThis is caused by wrong code opening tag on line 462
<?instead of<?php.Forum: Plugins
In reply to: [Plugin: scbFramework] admin page overwrites unreferenced options fieldNope, no checkboxes… As I said – quick and dirty. 🙂 I need to get this thing working and pretty by Sunday.
Forum: Plugins
In reply to: [Plugin: scbFramework] admin page overwrites unreferenced options fieldQuick and dirty fix that worked for me, I copied form_handler() to my class and changed
$new_data = array(); foreach ( array_keys($this->formdata) as $key ) $new_data[$key] = @$_POST[$key];to
$new_data = array(); foreach ( array_keys($this->formdata) as $key ) { if ( isset( $_POST[$key] ) ) $new_data[$key] = @$_POST[$key]; elseif ( isset( $this->options->$key ) ) $new_data[$key] = $this->options->$key; else $new_data[$key] = ''; }Still updates all the fields, but those that aren’t in form are filled back with known values.
Forum: Fixing WordPress
In reply to: iFrame Hack on Several WP SitesIn my case this was webhosting problem. Not much I could do about server having hacker doing whatever he wants on it.
I fully understand that in many cases user is one to blame. However it is not the only option and it is reckles to assume that WordPress and hosting are at all times absolutely secure.
Forum: Fixing WordPress
In reply to: iFrame Hack on Several WP SitesNope, but there was similar hack in same time frame at hostgator. Came up in comments about situation at my blog.
As for my situation support confirmed that hacker had earlier overtaken another site on server (via exploit on outdated WP version) and from there he went cracking whatever else on server he saw.