Title: Error
Last modified: April 14, 2017

---

# Error

 *  [calvinseng](https://wordpress.org/support/users/calvinseng/)
 * (@calvinseng)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-916/)
 * Hi,
 * An error shows…How can we solve it?
 * A non-numeric value encountered in /srv/users/serverpilot/apps/wordpress/public/
   wp-content/plugins/schema/includes/json/schema-output.php on line 43

Viewing 1 replies (of 1 total)

 *  [pm1932](https://wordpress.org/support/users/pm1932/)
 * (@pm1932)
 * [9 years ago](https://wordpress.org/support/topic/error-916/#post-9164389)
 * To me this seems like a bug. I get this error after I update a page and then 
   go to view that page. If I refresh again I don’t get the error.
 * The problem seems to be that `$pttimestamp_old` can get set to an empty string
   which still returns true at the isset if statement:
 *     ```
       //
       // /wp-content/plugins/schema/includes/json/schema-output.php on line 43
       //
       if ( isset($pttimestamp_old) ) {
       	$time_diff = $pttimestamp - $pttimestamp_old;
       	if ( $time_diff <= DAY_IN_SECONDS ) {
       		$json = get_post_meta( $post->ID, '_schema_json', true );
       	} else {
       		delete_post_meta( $post->ID, '_schema_json' );
       		$json = array();
       	}
       }
       ```
   
 * changing `isset` to `!empty` should make the error go away but hopefully the 
   devs will come up with a fix in a future release.

Viewing 1 replies (of 1 total)

The topic ‘Error’ is closed to new replies.

 * ![](https://ps.w.org/schema/assets/icon-256x256.png?rev=1750173)
 * [Schema](https://wordpress.org/plugins/schema/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/schema/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/schema/)
 * [Active Topics](https://wordpress.org/support/plugin/schema/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/schema/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/schema/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pm1932](https://wordpress.org/support/users/pm1932/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/error-916/#post-9164389)
 * Status: not resolved