Conflit with you version 1.7
-
Hi,
Since I did the update of your plugin (->1.7) I have an issue with the display of my theme. Everything worked very well with the old version.Can you help me solve the problem:
https://www.villamenerbellec.com/tarifs/-> the table is in the page but the menu doesn’t work anymore and some pictures doesn’t appear.
if I deactivate your plugin everything works perfectly but without the table…
Thanks for your support !
-
Hi,
thanks for your post, and sorry for the trouble.
Also, sorry for the long wait for a reply. As a I was on a long vacation without internet access the last couple weeks, I could not reply earlier.From what I can see, you now switched back to TablePress 1.6.1, right? Could you install 1.7 again, so that I can take a direct look at the issue?
Regards,
TobiasHi Tobias,
Thanks for you reply!
Yes, as I didn’t get any reply, I witched back to TP 1.6.1.
I think there is a conflit with the JS fonction but I don’t know to fix it.
I intall 1.7 again, so you can know have a look :
https://www.villamenerbellec.com/tarifs/Please, let me know as soon as possible if you can find a way to fix it.
Many thanks,
Benoit.Hi Benoit,
thanks a lot! It seems that I’m still seeing an old/cached version of the page (probably because you are using a caching plugin), but I can also see something that hints that this is a JS issue.
Basically, your theme is loading an old and outdated version of the jQuery library, which is never a good idea. You are basically affected by https://tablepress.org/faq/js-functions-not-working/
Can you therefore maybe check if you can find the relevant code in the theme files, probably the functions.php?
Regards,
TobiasHi Tobias,
Yes I think we have a JS issue (theme should be loadiing an old version) but I don’t know how to fix it…
I check you link :https://tablepress.org/faq/js-functions-not-working/
But I didn’t understand… Sorry.Hi,
in the “functions.php” file in your theme folder, there are two lines like:
wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ... );
Please change that to
// wp_deregister_script( 'jquery' ); // wp_register_script( 'jquery', ... );
by adding the
//
at the beginning.Regards,
TobiasThanks for you reply but I can’t find this code in the “functions.php” :
<?php /** * Overwrite breadcrumbs() function from Cherry Framework * to fix the issue with https://wpml.org/fr/forums/topic/url-canonique-differente-des-url-crawlee-2/ */ function breadcrumbs() { $showOnHome = 1; // 1 - show "breadcrumbs" on home page, 0 - hide $delimiter = '<li class="divider">'; // divider $home = get_the_title( get_option('page_on_front', true) ); // text for link "Home" $showCurrent = 1; // 1 - show title current post/page, 0 - hide $before = '<li class="active">'; // open tag for active breadcrumb $after = ''; // close tag for active breadcrumb global $post; // $homeLink = home_url(); // Filtered by trailingslashit for https://wpml.org/fr/forums/topic/url-canonique-differente-des-url-crawlee-2/ $homeLink = trailingslashit( home_url() ); if (is_front_page()) { if ($showOnHome == 1) echo '<ul class="breadcrumb breadcrumb__t"> <li><a href="' . $homeLink . '">' . $home . '</a></li> <li>'; } else { echo '<ul class="breadcrumb breadcrumb__t"></li> <li><a href="' . $homeLink . '">' . $home . '</a></li> ' . $delimiter; if ( is_home() ) { $blog_text = of_get_option('blog_text'); if ($blog_text == '' || empty($blog_text)) { echo theme_locals("blog"); } echo $before . $blog_text . $after; } elseif ( is_category() ) { $thisCat = get_category(get_query_var('cat'), false); if ($thisCat->parent != 0) echo get_category_parents($thisCat->parent, TRUE, ' ' . $delimiter . ' '); echo $before . theme_locals("category_archives").': "' . single_cat_title('', false) . '"' . $after; } elseif ( is_search() ) { echo $before . theme_locals("fearch_for") . ': "' . get_search_query() . '"' . $after; } elseif ( is_day() ) { echo ' <li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></li> ' . $delimiter . ' '; echo ' <li><a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a></li> ' . $delimiter . ' '; echo $before . get_the_time('d') . $after; } elseif ( is_month() ) { echo ' <li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></li> ' . $delimiter . ' '; echo $before . get_the_time('F') . $after; } elseif ( is_year() ) { echo $before . get_the_time('Y') . $after; } elseif ( is_tax(get_post_type().'_category') ) { $post_name = get_post_type(); echo $before . ucfirst($post_name) . ' ' . theme_locals('category') . ': ' . single_cat_title( '', false ) . $after; } elseif ( is_single() && !is_attachment() ) { if ( get_post_type() != 'post' ) { $post_id = get_the_ID(); $post_name = get_post_type(); $post_type = get_post_type_object(get_post_type()); // echo ' <li><a>labels->name . '/">' . $post_type->labels->name . '</a></li> '; $terms = get_the_terms( $post_id, $post_name.'_category'); if ( $terms && ! is_wp_error( $terms ) ) { echo ' <li><a>slug, $post_name.'_category') .'">'.current($terms)->name.'</a></li> '; echo ' ' . $delimiter . ' '; } else { // echo ' <li><a>labels->name . '/">' . $post_type->labels->name . '</a></li> '; } if ($showCurrent == 1) echo $before . get_the_title() . $after; } else { $cat = get_the_category(); if (!empty($cat)) { $cat = $cat[0]; $cats = get_category_parents($cat, TRUE, '' . $delimiter . ' <li>'); if ($showCurrent == 0) $cats = preg_replace("#^(.+)\s$delimiter\s$#", "$1", $cats); echo '</li> <li>' . substr($cats, 0, strlen($cats)-4); } if ($showCurrent == 1) echo $before . get_the_title() . $after; } } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) { $post_type = get_post_type_object(get_post_type()); if ( isset($post_type) ) { echo $before . $post_type->labels->singular_name . $after; } } elseif ( is_attachment() ) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); if ( isset($cat) && !empty($cat)) { $cat = $cat[0]; echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); echo '</li> <li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li> '; } if ($showCurrent == 1) echo $before . get_the_title() . $after; } elseif ( is_page() && !$post->post_parent ) { if ($showCurrent == 1) echo $before . get_the_title() . $after; } elseif ( is_page() && $post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = ' <li><a>ID) . '">' . get_the_title($page->ID) . '</a></li> '; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); for ($i = 0; $i < count($breadcrumbs); $i++) { echo $breadcrumbs[$i]; if ($i != count($breadcrumbs)-1) echo ' ' . $delimiter . ' '; } if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; } elseif ( is_tag() ) { echo $before . theme_locals("tag_archives") . ': "' . single_tag_title('', false) . '"' . $after; } elseif ( is_author() ) { global $author; $userdata = get_userdata($author); echo $before . theme_locals("by") . ' ' . $userdata->display_name . $after; } elseif ( is_404() ) { echo $before . '404' . $after; } echo ''; } } // end breadcrumbs()
Hi,
ah, my bad, I should have been more precise. This change will have to be made in the CherryFramework (parent) theme’s “functions.php” and not in your child theme. Can you check that again? Sorry for the confusion.
Regards,
TobiasP.S.: Could a moderator please fix the HTML embed? Thanks!
Hi,
Thanks for your support but I can’t find anything likewp_deregister_script( ‘jquery’ );
wp_register_script( ‘jquery’, … );in the CherryFramework (parent) theme’s “functions.php”…
I’m not sure I can make a copy from the “functions.php” here?
Thanks,
BenoitHi,
ok, if possible, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!
Regards,
TobiasI did it,
Thanks a lot for your support!Hi,
thanks for the email! I was able to log in and could successfully make the necessary changes. In your version of the theme, they needed to be made in the theme’s “includes/theme-scripts.php” file, which explains why you haven’t found the relevant lines.
I made the changes now and everything seems to be working again. If you can confirm that, you can delete the account again.
Regards,
TobiasHi,
You are awesome! It works now perfectly! Thanks!
Great support! 10/10
BenoitI would to understand what did you do to fix it… I’ve a 2nd website (with the same configuration) and I would like to make the same change.
I didn’t see any change in “includes/theme-scripts.php” file…
Thanks
Hi,
no problem, you are very welcome! ?? Good to hear that this helped!
It’s the includes/theme-scripts.php file in the cherry theme directory.
I commented out 4 lines, by adding//
before them.Best wishes,
TobiasAwesome! Get it.
Thanks
- The topic ‘Conflit with you version 1.7’ is closed to new replies.