• Resolved Sibbo100

    (@sibbo100)


    I am using your Rotating Tweets Plugin on a site that I am developing and it has been working perfectly, until I applied the update, after applying the update I still received my rotating tweets, but there was an error displayed before the tweets which related specifically to the transiant update that was recently rolled out, I’ve had to roll back to the previous version of the plugin which continues to work perfectly, I’m also using the wp-bootstrap framework.

    Thank you
    Sibbo100

    https://wordpress.org/plugins/rotatingtweets/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Martin Tod

    (@mpntod)

    Was this the absolute latest version? It should have fixed the issue.

    Otherwise, what was the error message you saw?

    Best wishes,

    Martin

    Thread Starter Sibbo100

    (@sibbo100)

    Hi Martin,

    Apologies, I just installed the update again to try and get the error message and it seems to be working now, must have been a glitch somewhere during the update or something.

    Awesome plugin by the way, I use it on several of my clients sites.

    Thank you
    Sibbo100

    Plugin Author Martin Tod

    (@mpntod)

    You highlighted an issue with the transition from one version to another.

    To deal with the emoji problem I had to replace the standard set_transient() function with:

    function rotatingtweets_set_transient($transient,$value,$expiration) {
    	$newvalue = base64_encode(serialize($value));
    	return set_transient($transient,$newvalue,$expiration);
    }

    and an accompanying rotatingtweets_get_transient() function that reversed the process. But when this function read a transient stored under the old system (i.e. one that wasn’t serialised and converted to base64) it was throwing a bug. So it now looks like:

    function rotatingtweets_get_transient($transient) {
    	$return = get_transient($transient);
    	if(!$return):
    		return $return;
    	else:
    		$data = base64_decode($return);
    		if (is_serialized($data)):
    			return @unserialize($data);
    		else:
    			return $return;
    		endif;
    	endif;
    }

    So thank you!

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

The topic ‘Breaks site after update’ is closed to new replies.