Can not edit products after update
-
I can not edit any products. I can enter the product, but what has to do with editing woocommerce parameters i can not do anything…i click on the fields and i get nothing.
I also get the following errors in error log
[04-Apr-2017 19:12:17 UTC] PHP Warning: Illegal string offset ‘taxonomy’ in /home/ulook/public_html/wp-content/themes/basel-child/functions.php on line 573
[04-Apr-2017 19:12:48 UTC] PHP Warning: Illegal string offset ‘url’ in /home/ulook/public_html/wp-content/themes/basel/inc/template-tags.php on line 1077
[04-Apr-2017 19:12:54 UTC] The woocommerce_get_page_id function is deprecated since version 3.0. Replace with wc_get_page_id.I my child’s functions on line 559-611 i have
/** * Count products within certain terms, taking the main WP query into consideration. * @param array $term_ids * @param string $taxonomy * @param string $query_type * @return array */ protected function get_filtered_term_product_counts( $term_ids, $taxonomy, $query_type ) { global $wpdb; $tax_query = WC_Query::get_main_tax_query(); $meta_query = WC_Query::get_main_meta_query(); if ( 'or' === $query_type ) { foreach ( $tax_query as $key => $query ) { if ( $taxonomy === $query['taxonomy'] ) { unset( $tax_query[ $key ] ); } } } $meta_query = new WP_Meta_Query( $meta_query ); $tax_query = new WP_Tax_Query( $tax_query ); $meta_query_sql = $meta_query->get_sql( 'post', $wpdb->posts, 'ID' ); $tax_query_sql = $tax_query->get_sql( $wpdb->posts, 'ID' ); // Generate query $query = array(); $query['select'] = "SELECT COUNT( DISTINCT {$wpdb->posts}.ID ) as term_count, terms.term_id as term_count_id"; $query['from'] = "FROM {$wpdb->posts}"; $query['join'] = " INNER JOIN {$wpdb->term_relationships} AS term_relationships ON {$wpdb->posts}.ID = term_relationships.object_id INNER JOIN {$wpdb->term_taxonomy} AS term_taxonomy USING( term_taxonomy_id ) INNER JOIN {$wpdb->terms} AS terms USING( term_id ) " . $tax_query_sql['join'] . $meta_query_sql['join']; $query['where'] = " WHERE {$wpdb->posts}.post_type IN ( 'product' ) AND {$wpdb->posts}.post_status = 'publish' " . $tax_query_sql['where'] . $meta_query_sql['where'] . " AND terms.term_id IN (" . implode( ',', array_map( 'absint', $term_ids ) ) . ") "; if ( $search = WC_Query::get_main_search_query_sql() ) { $query['where'] .= ' AND ' . $search; } $query['group_by'] = "GROUP BY terms.term_id"; $query = apply_filters( 'woocommerce_get_filtered_term_product_counts_query', $query ); $query = implode( ' ', $query ); $results = $wpdb->get_results( $query ); return wp_list_pluck( $results, 'term_count', 'term_count_id' ); } <code></code> In template-tags line 1043-1153
// **********************************************************************//
// ! Header blocks
// **********************************************************************//if( ! function_exists( ‘basel_header_block_logo’ ) ) {
function basel_header_block_logo() {$header_color_scheme = basel_get_opt( ‘header_color_scheme’ );
// Get the logo
$logo = BASEL_IMAGES . ‘/logo.png’;
$logo_white = BASEL_IMAGES . ‘/logo-white.png’;$protocol = basel_http() . “://”;
$logo_uploaded = basel_get_opt(‘logo’);
$logo_white_uploaded = basel_get_opt(‘logo-white’);
$logo_sticky_uploaded = basel_get_opt(‘logo-sticky’);if(isset($logo_white_uploaded[‘url’]) && $logo_white_uploaded[‘url’] != ”) {
$logo_white = $logo_white_uploaded[‘url’];
}
if(isset($logo_uploaded[‘url’]) && $logo_uploaded[‘url’] != ”) {
$logo = $logo_uploaded[‘url’];
}if( $header_color_scheme == ‘light’ ) {
$logo = $logo_white;
}$logo = $protocol. str_replace(array(‘https://’, ‘https://’), ”, $logo);
?>
<div class=”site-logo”>
<div class=”basel-logo-wrap<?php if( $logo_sticky_uploaded[‘url’] ) echo ” switch-logo-enable”; ?>”>
” class=”basel-logo basel-main-logo” rel=”home”>
<?php echo ‘‘; ?>
<?php if ( isset( $logo_sticky_uploaded[‘url’] ) && ! empty( $logo_sticky_uploaded[‘url’] ) ): ?>
<?php
$logo_sticky = $protocol . str_replace( array( ‘https://’, ‘https://’ ), ”, $logo_sticky_uploaded[‘url’] );
?>
” class=”basel-logo basel-sticky-logo” rel=”home”>
<?php echo ‘‘; ?>
<?php endif ?>
</div>
</div>
<?php
}
}if( ! function_exists( ‘basel_header_block_widget_area’ ) ) {
function basel_header_block_widget_area() {
?>
<div class=”widgetarea-head”>
<?php$header_text = basel_get_opt( ‘header_area’ );
if( $header_text != ” ) {
echo do_shortcode( $header_text );
} else if( is_active_sidebar( ‘header-widgets’ ) ) {
dynamic_sidebar( ‘header-widgets’ );
}
?>
</div>
<?php
}
}if( ! function_exists( ‘basel_header_block_wishlist’ ) ) {
function basel_header_block_wishlist() {
if ( basel_woocommerce_installed() && class_exists( ‘YITH_WCWL’ ) && basel_get_opt(‘header_wishlist’) ): ?>
<div class=”wishlist-info-widget”>
get_wishlist_url()); ?>”><?php esc_html_e( ‘Wishlist’, ‘basel’ ) ?> <span><?php echo YITH_WCWL()->count_products(); ?></span>
</div>
<?php endif;
}
}if( ! function_exists( ‘basel_header_block_cart’ ) ) {
function basel_header_block_cart() {
$position = basel_get_opt(‘cart_position’);
$design = basel_get_opt(‘shopping_cart’);
$extra_class = ‘basel-cart-icon’;if( basel_get_opt(‘shopping_icon_alt’) ) {
$extra_class .= ‘ basel-cart-alt’;
}if( $position == ‘side’ ) {
$extra_class .= ‘ cart-widget-opener’;
}if ( basel_woocommerce_installed() && $design != ‘disable’ ): ?>
<div class=”shopping-cart basel-cart-design-<?php echo esc_attr( $design ); ?> <?php echo esc_attr( $extra_class ); ?>”>
cart->get_cart_url()); ?>”>
<span><?php esc_html_e(‘Cart’, ‘basel’); ?> (<span>o</span>)</span>
<span class=”basel-cart-totals”>
<?php basel_cart_count(); ?>
<span class=”subtotal-divider”>/</span>
<?php basel_cart_subtotal(); ?>
</span>
<?php if ( $position != ‘side’): ?>
<div class=”dropdown-wrap-cat”>
<div class=”dropdown-cat”>
<?php### WordPress Environment ###
Home URL: https://ulook.gr
Site URL: https://ulook.gr
WC Version: 3.0.0
Log Directory Writable: ?
WP Version: 4.7.3
WP Multisite: –
WP Memory Limit: 384 MB
WP Debug Mode: –
WP Cron: ?
Language: el### Server Environment ###
Server Info: Apache
PHP Version: 5.6.28
PHP Post Max Size: 80 MB
PHP Time Limit: 1200
PHP Max Input Vars: 10000
cURL Version: 7.38.0
OpenSSL/1.0.1eSUHOSIN Installed: –
MySQL Version: ? 5.5.54 – Προτε?νουμε ω? ελ?χιστη ?κδοση τη? MySQL την 5.6. Δε?τε: Απαιτ?σει? WordPress
Max Upload Size: 80 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 3.0.0
WC Database Prefix: mn_
woocommerce_sessions: ?
woocommerce_api_keys: ?
woocommerce_attribute_taxonomies: ?
woocommerce_downloadable_product_permissions: ?
woocommerce_order_items: ?
woocommerce_order_itemmeta: ?
woocommerce_tax_rates: ?
woocommerce_tax_rate_locations: ?
woocommerce_shipping_zones: ?
woocommerce_shipping_zone_locations: ?
woocommerce_shipping_zone_methods: ?
woocommerce_payment_tokens: ?
woocommerce_payment_tokenmeta: ?### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (28) ###
Redux Framework: απ? τον/την Team Redux – 3.6.4
Autoptimize: απ? τον/την Frank Goossens (futtta) – 2.1.0
XTEMOS Post Types plugin: απ? τον/την – 1.1
Payment Gateway Based Fees and Discounts for WooCommerce Pro: απ? τον/την Algoritmika Ltd – 2.1.1
Payment Gateway Based Fees and Discounts for WooCommerce: απ? τον/την Algoritmika Ltd – 2.1.1
CMB2: απ? τον/την WebDevStudios – 2.2.4
Contact Form 7: απ? τον/την Takayuki Miyoshi – 4.7
Enhanced E-commerce for Woocommerce store: απ? τον/την Tatvic – 1.0.19
Table Rate Shipping: απ? τον/την Amit Sidhpura – 1.0.0
MailChimp for WordPress: απ? τον/την ibericode – 4.1.0
WooCommerce Alphabank e-Commerce: απ? τον/την T.C. van der Veer – 0.4.0
Recent Posts Widget Extended: απ? τον/την Satrya – 0.9.9.6
Slider Revolution: απ? τον/την ThemePunch – 5.2.1
Optimize Database after Deleting Revisions: απ? τον/την CAGE Web Design | Rolf van Gelder
Eindhoven
The Netherlands – 4.2.1ShortPixel Image Optimizer: απ? τον/την ShortPixel – 4.2.8
Simple Twitter Tweets: απ? τον/την Ashley Sheinwald – 4.4
WooCommerce Skroutz Analytics: απ? τον/την Skroutz – 1.0.6
Woocomerce Brands Pro: απ? τον/την Proword – 4.2.0
Woo Checkout Field Editor Pro: απ? τον/την ThemeHiGH – 1.1.4
Woo to XML: απ? τον/την NETSTAR-GR Ltd – 3.9
Woocommerce Advanced Bulk Edit: απ? τον/την George Iron – 4.1.1
WooCommerce jQuery Cookie Fix: απ? τον/την Splashing Pixels (Roy Ho) – 1.0
WooCommerce PDF Invoices & Packing Slips: απ? τον/την Ewout Fernhout – 1.6.1
WooCommerce Shipping Tracking: απ? τον/την Lagudi Domenico – 8.9
WooCommerce: απ? τον/την Automattic – 3.0.0
WooCommerce Helper: απ? τον/την WooCommerce – 1.7.2 – Ενεργοποιημ?νο δ?κτυο
WP Fastest Cache Premium: απ? τον/την Emre Vona – 1.3.7
WP Fastest Cache: απ? τον/την Emre Vona – 0.8.6.7### Settings ###
API Enabled: ?
Force SSL: ?
Currency: EUR (€)
Currency Position: left
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)### WC Pages ###
Β?ση καταστ?ματο?: #155 – /shop/
Καλ?θι: #156 – /cart/
Ταμε?ο: #157 – /checkout/
Ο λογαριασμ?? μου: #158 – /my-account/### Theme ###
Name: Basel Child
Version: 1.0.0
Author URL: https://xtemos.com
Child Theme: ?
Parent Theme Name: Basel
Parent Theme Version: 3.1.0
Parent Theme Author URL: https://themeforest.net/user/xtemos
WooCommerce Support: ?### Templates ###
Overrides: basel/woocommerce/archive-product.php
basel/woocommerce/cart/cart.php
basel/woocommerce/cart/cross-sells.php
basel/woocommerce/cart/mini-cart.php
basel/woocommerce/checkout/form-checkout.php
basel/woocommerce/checkout/thankyou.php ?κδοση 2.2.0 ε?ναι ληγμ?νο. Η βασικ? ?κδοση ε?ναι η 3.0.0
basel/woocommerce/content-product.php
basel/woocommerce/content-product_cat.php
basel/woocommerce/content-single-product.php
basel/woocommerce/global/breadcrumb.php
basel/woocommerce/global/quantity-input.php
basel/woocommerce/loop/loop-end.php
basel/woocommerce/loop/loop-start.php
basel/woocommerce/loop/no-products-found.php
basel/woocommerce/loop/orderby.php
basel/woocommerce/loop/pagination.php
basel-child/woocommerce/loop/sale-flash.php ?κδοση – ε?ναι ληγμ?νο. Η βασικ? ?κδοση ε?ναι η 1.6.4
basel/woocommerce/myaccount/form-login.php
basel/woocommerce/product-searchform.php
basel/woocommerce/single-product/add-to-cart/variable.php
basel/woocommerce/single-product/meta.php
basel/woocommerce/single-product/product-image.php
basel/woocommerce/single-product/product-thumbnails.php
basel/woocommerce/single-product/related.php
basel-child/woocommerce/single-product/sale-flash.php
basel/woocommerce/single-product/tabs/tabs.php
basel/woocommerce/single-product/title.php
basel-child/woocommerce/single-product/up-sells.php
basel/woocommerce/single-product.phpOutdated Templates: ?Μ?θετε πω? να κ?νετε ενημ?ρωση
`Any help will be greatelly appreciated!
- The topic ‘Can not edit products after update’ is closed to new replies.