Home Forums Basel support forum Problema con lo shop, errore elenco prodotti (vista vuoto dopo un certo periodo)

Problema con lo shop, errore elenco prodotti (vista vuoto dopo un certo periodo)

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #207872

    gianfranc
    Participant

    Buonasera, ho un problema sulla pagina shop, dopo un breve periodo la pagina non presenta piu l’elenco dei prodotti e restituisce quindi una pagina vuota.
    Ho fatto presente il problema al supporto WPML e dopo vari test, debug mi hanno scritto questo:
    “Ho controllato e il problema arriva dal tema sicuramente, però sul nostro sito di staging ci succede anche senza WPML il che ci indica che il problema è soltanto del tema.

    L’errore è il seguente:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Fatal error
    : Uncaught Error: Call to undefined function basel_get_svg() in /wp-content/themes/basel/inc/functions.php:1054 Stack trace:
    #0 /wp-content/themes/basel/inc/functions.php(1048): basel_get_any_svg(‘/mnt/BLOCKSTORA…’)
    #1 /wp-content/themes/basel/inc/woocommerce.php(31): basel_get_svg_content(‘list-style’)
    #2 /wp-includes/class-wp-hook.php(287): basel_products_view_select(”)
    #3 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /wp-content/themes/b in /wp-content/themes/basel/inc/functions.php
    on line
    1054
    e il codice che sta creando il problema è:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    f( ! function_exists( ‘basel_get_any_svg’ ) ) {
    function basel_get_any_svg( $file, $id = false ) {
    $content = basel_get_svg( $file );
    $start_tag = ‘<svg’;
    if( $id ) {
    $pattern = “/id=\”(\w)+\”/”;
    if( preg_match($pattern, $content) ) {
    $content = preg_replace($pattern, “id=\”” . $id . “\””, $content, 1);
    } else {
    $content = preg_replace( “/<svg/”, “<svg id=\”” . $id . “\””, $content);
    }
    }
    // Strip doctype
    $position = strpos($content, $start_tag);
    $content = substr($content, $position);
    return $content;
    }
    }
    Sembra attivarsi quando aggiungi da qualche parte nel tema un file con formato SVG. Potresti contattare il supporto del tema e chiedergli se possono risolvere questo problema?”
    https://wpml.org/it/forums/topic/problema-con-lo-shop-vista-vuota-dopo-due-giorni-circa/

    Grazie
    Saluti

    #207899

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, if the problem remains, leave the plugins not activated and provide the site admin access to the private area.

    Best Regards

    #207933

    gianfranc
    Participant

    Ho disattivato tutti i plugin extra tranne Yoast SEO e il problema rimane. Lasciato Yoast SEO altrimenti disabilitando va a ricaricare i permalink e quindi sistemerebbe solo provvisoriamente il problema e dopo uno/due giorni si ripresenterebbe.
    Grazie attendo vostre.

    #208006

    Hello,

    Please provide the correct credentials I cannot log in with these you have provided.

    Best Regards

    #208049

    gianfranc
    Participant

    prova cos^

    #208072

    Hello,

    You have two shop pages and real shop page works correctly

    You need to delete this clone and add the proper page to the main menu.

    Best Regards

    #208079

    gianfranc
    Participant

    La seconda pagina è il clone dello shop per la lingua in inglese, ha lo slug come shop-en, disabilitando i plugin WPML viene vista come pagina a se, altrimenti usando il plugin di wpml, si vede una sola pagina dello shop.

    #208092

    gianfranc
    Participant

    Con wpml attivo si ha una sola pagina shop e la principale è /shop, shop-en sarebbe il clone di /shop. Succede questo problema si ripresenta anche con una sola pagina /shop e con tutti i plugin (no tema) disabilitati. Prove le hanno fatte anche l’assistenza tecnica di wpml

    #208093

    gianfranc
    Participant
    #208095

    gianfranc
    Participant
    #208105

    Hello,

    It seems you have configured the WPML incorrectly. Please refer the WPML documentation or support.

    Best Regards

    #208159

    gianfranc
    Participant

    Quindi per voi si può chiudere qui il topic?

    #208173

    Hello,

    I have removed the images as per your request. Please contact WPML support to get assistance in the correct configuration. The shop page works properly you just need to create the translation correctly.

    Best Regards

    #208179

    gianfranc
    Participant

    The problem is happening without WPML or any other plugin, in the staging site.

    #208222

    Hello,

    This issue relates to correct translation of WPML functional pages. Please contact the plugin support.

    Best Regards

Viewing 15 posts - 1 through 15 (of 15 total)