I have had the same Instagram issue that seems to have been reported and have done some digging to try to find the issue.
The problem seems to be here:
public function update_cache( array $cache = null )
{
if( ! is_null( $cache) )
{
$this->cache = $cache;
}
update_option( 'avia_instagram_widgets_cache', $this->cache );
}
that for some instances the update_option() function fails. I tracked this down a little further and it’s failing in /wp-includes/option.php:
$result = $wpdb->query( $wpdb->prepare( "INSERT INTO <code>$wpdb->options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES (%s, %s, %s) ON DUPLICATE KEY UPDATE <code>option_name</code> = VALUES(<code>option_name</code>), <code>option_value</code> = VALUES(<code>option_value</code>), <code>autoload</code> = VALUES(<code>autoload</code>)", $option, $serialized_value, $autoload ) );
if ( ! $result )
return false;
I have worked around this for the time being by JSON encoding and decoding $this->cache
and everything works again.
Is there a permanent fix for this in the works?
Hey Klaus-Peter,
Thank you for sharing this. I forwarded it to one of our devs.
Best regards,
Victoria
Hi Klaus-Peter!
Do you have a Github account?
Best regards,
Victoria
Hi hypercrypt!
Thank you for testing. Yes, you can leave it there.
Cheers!
Victoria