Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1053253

    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?

    • This topic was modified 6 years, 7 months ago by hypercrypt.
    #1053685

    Hey Klaus-Peter,

    Thank you for sharing this. I forwarded it to one of our devs.

    Best regards,
    Victoria

    #1053745

    Hi Klaus-Peter!

    Do you have a Github account?

    Best regards,
    Victoria

    #1053758
    #1054087
    This reply has been marked as private.
    #1054289

    Hi hypercrypt!

    Thank you for testing. Yes, you can leave it there.

    Cheers!
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.