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)
- This topic has 14 replies, 2 voices, and was last updated 3 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
July 1, 2020 at 4:01 pm #207872
gianfrancParticipantBuonasera, 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
SalutiJuly 1, 2020 at 5:53 pm #207899
Elise NoromitMemberHello,
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
July 1, 2020 at 8:22 pm #207933
gianfrancParticipantHo 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.July 2, 2020 at 6:49 am #208006
Elise NoromitMemberHello,
Please provide the correct credentials I cannot log in with these you have provided.
Best Regards
July 2, 2020 at 8:02 am #208049
gianfrancParticipantprova cos^
July 2, 2020 at 9:01 am #208072
Elise NoromitMemberHello,
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
July 2, 2020 at 9:17 am #208079
gianfrancParticipantLa 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.
July 2, 2020 at 9:44 am #208092
gianfrancParticipantCon 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
July 2, 2020 at 9:48 am #208093
gianfrancParticipantJuly 2, 2020 at 9:49 am #208095
gianfrancParticipantJuly 2, 2020 at 9:57 am #208105
Elise NoromitMemberHello,
It seems you have configured the WPML incorrectly. Please refer the WPML documentation or support.
Best Regards
July 2, 2020 at 11:43 am #208159
gianfrancParticipantQuindi per voi si può chiudere qui il topic?
July 2, 2020 at 12:35 pm #208173
Elise NoromitMemberHello,
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
July 2, 2020 at 1:13 pm #208179
gianfrancParticipantThe problem is happening without WPML or any other plugin, in the staging site.
July 2, 2020 at 2:17 pm #208222
Elise NoromitMemberHello,
This issue relates to correct translation of WPML functional pages. Please contact the plugin support.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register