Fatal error: Uncaught Error: Call to a member function get_id() on null in /var/www/freestylephotography.co.nz/wp-content/themes/freestyle/functions.php:313 Stack trace: #0 /var/www/freestylephotography.co.nz/wp-includes/class-wp-hook.php(307): add_shop_link('') #1 /var/www/freestylephotography.co.nz/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /var/www/freestylephotography.co.nz/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 /var/www/freestylephotography.co.nz/wp-content/plugins/woocommerce/templates/archive-product.php(29): do_action('woocommerce_bef...') #4 /var/www/freestylephotography.co.nz/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/var/www/freest...') #5 /var/www/freestylephotography.co.nz/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template('archive-product...') #6 /var/www/freestylephotography.co.nz/wp-includes/template-loader.php(106): include('/var/www/freest...') #7 /var/www/freestylephotography.co.nz/wp-blog-header.php(19): require_once('/var/www/freest...') #8 /var/www/freestylephotography.co.nz/index.php(17): require('/var/www/freest...') #9 {main} thrown in /var/www/freestylephotography.co.nz/wp-content/themes/freestyle/functions.php on line 313