Title: php problems? Strict standards.
Last modified: August 21, 2016

---

# php problems? Strict standards.

 *  [broadleon](https://wordpress.org/support/users/broadleon/)
 * (@broadleon)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/)
 * Hi i have had a strange message come up after a upgrade of php
 * Warning: Creating default object from empty value in C:\xampp\htdocs\wp-content\
   themes\knowledgepress\lib\ticket-functions.php on line 851
 * but when i look at the line of code it is
 *     ```
       if (!function_exists('woo_supportpress_get_ticket_details')) {
       	function woo_supportpress_get_ticket_details( $post_id ) { 
   
       		$status = current(wp_get_object_terms( $post_id, 'ticket_status' ));
       		$type = current(wp_get_object_terms( $post_id, 'ticket_type' ));
       		$priority = current(wp_get_object_terms( $post_id, 'ticket_priority' ));
   
       		if (!isset($status->name)) $status = '';
   
       		if (!isset($type->name)) $type = '';
   
       		if (!isset($priority->name)) $priority = '';
   
       		$ticket_details = array(
       			'status' => $status
       			,'type' => $type
       			,'priority' => $priority
       			,'assigned_to' => get_user_by('id', get_post_meta( $post_id, '_responsible', true))
       			,'reported_by' => get_post_meta( $post_id, '_reported_by', true)
       			,'reported_by_email' => get_post_meta( $post_id, '_reported_by_email', true)
       		);
   
       		/* Support 'Anybody' user */
       		if (!isset($ticket_details['assigned_to']->display_name)) $ticket_details['assigned_to']->display_name = 'Anybody';
       		if (!isset($ticket_details['assigned_to']->ID)) $ticket_details['assigned_to']->ID = 0;
   
       		return $ticket_details;
   
       	}
       }
       ```
   
 * Whats going on? is it a php version problem?
 * The line of code calling the function is
 *     ```
       <?php $ticket_details = woo_supportpress_get_ticket_details( $post->ID ); ?>
       ```
   

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/#post-3684242)
 * What is the value for `$post->ID`?
 * To get that, add in this line ABOVE the line that’s giving you the error:
 * `<?php echo "<p>PostID: '".$post->ID."'</p>"; ?>`
 * I’m going to guess that either the `$post` object isn’t available or that it’s
   not set up.
 *  Thread Starter [broadleon](https://wordpress.org/support/users/broadleon/)
 * (@broadleon)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/#post-3684417)
 * i just get this
 *     ```
       PostID: ''
       ```
   
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/#post-3684418)
 * What plugin is this?
 *  Thread Starter [broadleon](https://wordpress.org/support/users/broadleon/)
 * (@broadleon)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/#post-3684420)
 * its not a plugin its a wootheme called supportpress. Trouble is iv’e had no help
   from that end. Im a bit lost.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-problem-3/#post-3684421)
 * I’m sorry but as you are using a non-WPORG theme, you need to seek support from
   the theme’s developers – paid or otherwise. We only support themes downloaded
   from wordpress.org here.
    Try [http://www.woothemes.com/support/](http://www.woothemes.com/support/)
 *  [vbk100](https://wordpress.org/support/users/vbk100/)
 * (@vbk100)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-problem-3/#post-3684572)
 * Hello Broadleon,
 * I am having the same problem. Tried troubleshooting to fix the issue to check
   if that is a white space issue. But no success.
 * As it has been 4 months, can you tell me if the problem is fixed? Woothemes support
   is awkward sometimes.
 * Any help is appreciated.
 *  Thread Starter [broadleon](https://wordpress.org/support/users/broadleon/)
 * (@broadleon)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-problem-3/#post-3684573)
 * I will have a look tomorrow when i get back to work.
 *  Thread Starter [broadleon](https://wordpress.org/support/users/broadleon/)
 * (@broadleon)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-problem-3/#post-3684579)
 * I ended up rolling back the php version
 *  [vbk100](https://wordpress.org/support/users/vbk100/)
 * (@vbk100)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-problem-3/#post-3684580)
 * broadleon,
 * My issue was fixed by updating the jQuery.

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

The topic ‘php problems? Strict standards.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [vbk100](https://wordpress.org/support/users/vbk100/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/php-problem-3/#post-3684580)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
