( ! ) Fatal error: Uncaught Error: Call to a member function get_attribute() on null in /home/spaziogallery.it/public_html/wp-content/plugins/oxygen_old/component-framework/components/classes/code-block.class.php(133) : eval()'d code on line 25 |
( ! ) Error: Call to a member function get_attribute() on null in /home/spaziogallery.it/public_html/wp-content/plugins/oxygen_old/component-framework/components/classes/code-block.class.php(133) : eval()'d code on line 25 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0003 | 359048 | {main}( ) | .../index.php:0 |
2 | 0.0004 | 359408 | require( '/home/spaziogallery.it/public_html/wp-blog-header.php' ) | .../index.php:17 |
3 | 3.3811 | 170722144 | require_once( '/home/spaziogallery.it/public_html/wp-includes/template-loader.php' ) | .../wp-blog-header.php:19 |
4 | 3.4393 | 172072704 | include( '/home/spaziogallery.it/public_html/wp-content/plugins/oxygen_old/component-framework/oxygen-main-template.php' ) | .../template-loader.php:106 |
5 | 3.4395 | 172073456 | wp_head( ) | .../oxygen-main-template.php:10 |
6 | 3.4395 | 172073456 | do_action( ) | .../general-template.php:3052 |
7 | 3.4395 | 172073832 | WP_Hook->do_action( ) | .../plugin.php:517 |
8 | 3.4395 | 172073832 | WP_Hook->apply_filters( ) | .../class-wp-hook.php:348 |
9 | 3.5590 | 173577568 | oxy_print_cached_css( ) | .../class-wp-hook.php:324 |
10 | 3.5603 | 173625672 | do_action( ) | .../component-init.php:1218 |
11 | 3.5603 | 173626048 | WP_Hook->do_action( ) | .../plugin.php:517 |
12 | 3.5603 | 173626048 | WP_Hook->apply_filters( ) | .../class-wp-hook.php:348 |
13 | 3.6916 | 173672728 | ct_templates_buffer_start( ) | .../class-wp-hook.php:324 |
14 | 3.6916 | 173674456 | ct_template_output( ) | .../templates.php:183 |
15 | 3.6951 | 173843632 | do_oxygen_elements( ) | .../templates.php:109 |
16 | 3.8742 | 174621304 | CT_Section->add_shortcode( ) | .../templates.php:76 |
17 | 3.8761 | 174656824 | do_oxygen_elements( ) | .../section.class.php:70 |
18 | 3.8762 | 174657456 | CT_DIV_Block->add_shortcode( ) | .../templates.php:76 |
19 | 3.8778 | 174693208 | do_oxygen_elements( ) | .../div-block.class.php:48 |
20 | 3.8796 | 174760536 | Oxygen_VSB_Dynamic_List->add_shortcode( ) | .../templates.php:76 |
21 | 3.8844 | 174955088 | do_oxygen_elements( ) | .../dynamic-list.class.php:884 |
22 | 3.8845 | 174955720 | CT_DIV_Block->add_shortcode( ) | .../templates.php:76 |
23 | 3.8863 | 174991616 | do_oxygen_elements( ) | .../div-block.class.php:48 |
24 | 3.8863 | 174992248 | CT_DIV_Block->add_shortcode( ) | .../templates.php:76 |
25 | 3.8880 | 175028912 | do_oxygen_elements( ) | .../div-block.class.php:48 |
26 | 3.8924 | 175038576 | CT_Code_Block->add_shortcode( ) | .../templates.php:76 |
27 | 3.8946 | 175089184 | eval( ' ?>
get_attribute('taglia');
if (!empty($size_attribute)) {
$terms = wc_get_product_terms($product->get_id(), 'pa_taglia', array('fields' => 'names'));
echo '';
foreach ($terms as $term) {
$variation_id = $product->get_variation_id(array('attribute_pa_taglia' => sanitize_title($term)));
$stock_status = $variation_id ? get_post_meta($variation_id, '_stock_status', true) : 'outofstock';
$link = esc_url(add_query_arg('add-to-cart', $product->get_id(), get_permalink($product->get_id())));
$link = esc_url(add_query_arg('variation_id', wc_get_product_id_by_sku($term), $link));
$link = esc_url(add_query_arg('attribute_pa_taglia', sanitize_title($term), $link));
$class = ($stock_status === 'outofstock') ? ' class="product-size-link unavailable"' : ' class="product-size-link"';
echo ' ' . $term . '';
}
echo ' ';
}
?>
) | .../code-block.class.php:133 |