Forum Replies Created
-
AuthorPosts
-
February 9, 2018 at 1:49 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1448651
Rivet
ParticipantNow, this goes beyond our level of support for your theme so if this doesn’t work we hope you are able to find a new theme or solution to update your theme.
I thought I had access to premium support with my license key?
My theme works fine, no problem on the site except with the event calendar plugin and this option list view.
Thanks, P.
February 9, 2018 at 1:32 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1448641Rivet
ParticipantHello, I tried. So when I put a version of jquery (*1) it still does not work.
BUT, when I remove the link to the Jquery library (*2) it works, but it disables the tool to switch to month view or choose a date in the calendar
(*1)
wp_register_script('jquery','https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', false, '');(*2)
wp_register_script('jquery','', false, '');February 5, 2018 at 9:31 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1444303Rivet
Participantfunction o() {
var u = a("#tribe-events-header");
if (n.ajax_running = !0, !n.popping) {
n.filter_cats && (r.cur_url = u.data("baseurl"));
var o = a("#tribe-events-list-hash").val();
n.params = {
action: "tribe_list",
tribe_paged: n.paged,
tribe_event_display: n.view,
featured: s.is_featured()
}, n.url_params = {
tribe_paged: n.paged,
tribe_event_display: n.view
};
var v = t.location.pathname;
if ((v.match(/\/all\/$/) || r.cur_url.match(/tribe_post_parent=[0-9]+/)) && (n.url_params.tribe_event_display = "all", n.params.tribe_post_parent = parseInt(u.closest("#tribe-events-content").find("[data-parent-post-id]:first").data("parent-post-id"), 10)), "" === tribe_js_config.permalink_settings && (n.url_params.eventDisplay = "all" === n.url_params.tribe_event_display ? "all" : "list"), o.length && (n.params.hash = o), r.default_permalinks && !n.url_params.hasOwnProperty("post_type") && (n.url_params.post_type = _.events_post_type), n.category && (n.params.tribe_event_category = n.category), a(i).trigger("tribe_ev_serializeBar"), s.invalid_date_in_params(n.params))
return void (n.ajax_running = !1);
a("#tribe-events-content .tribe-events-loop").tribe_spin(), n.params = a.param(n.params), n.url_params = a.param(n.url_params), a(i).trigger("tribe_ev_collectParams"), n.pushstate = !1, n.do_string = !0
}February 5, 2018 at 9:26 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1444293Rivet
ParticipantHello, actually there is a problem with this script. But when I take it off it does not solve our story.
And when I click on the link “previous events” this is displayed in the console:
TypeError: a (“# tribe-events-content .tribe-events-loop”). Tribe_spin is not a function. (In ‘a (“# tribe-events-content .tribe-events-loop”). ) ‘,’ a (“# tribe-events-content.tribe-events-loop”). tribe_spin ‘is undefined)
An idea ?
Thanks, P.
January 29, 2018 at 8:16 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1438884Rivet
ParticipantHello,
There is no plugin named Piwik on the site. Maybe it’s WP Statistics that I think uses Piwik.
I disabled WP Statistics but it did not change anything.
I do not understand why the request in code above does not work? Or a few seconds …
Thanks, P.
January 25, 2018 at 9:19 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1436070January 25, 2018 at 9:17 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1436065Rivet
ParticipantI just tried the code below and it does not work:
if( !is_admin() && tribe_is_list_view()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};So, after i tried the code below and the link works for 1 or 2 seconds then it bug again ?? :
if( !is_admin() AND tribe_is_list_view() || tribe_is_showing_all()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/3/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};Here is a link to the page:
https://viacampesina.org/fr/evenements/Thanks, P.
-
This reply was modified 8 years, 3 months ago by
Rivet.
January 24, 2018 at 3:51 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1434461Rivet
ParticipantHello, I wish to target only the type of page that is problematic, the type list view. But when I try the code below it does not work, while with !is_admin() it works. An idea ?
if( tribe_is_list_view()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};Thanks, P.
January 18, 2018 at 5:45 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1429333Rivet
Participanthello,
actually when I paste this piece of code into my functions.php file the plugin works again.
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
wp_enqueue_script('jquery');
};But how do I target only the list view page? Because for the moment this solution breaks the other plugins (revolution slider).
Thanks, P.
January 15, 2018 at 7:02 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1426515Rivet
ParticipantNo. In addition, the multisite is online, is not this a problem ?
Would you have another proposal? A tool to detect Jquery error or conflict?
January 12, 2018 at 6:31 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1424597Rivet
ParticipantHello,
I did it but it did not change anything.
January 11, 2018 at 3:30 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1423353Rivet
ParticipantHello,
Yes I tried.
I noticed several error messages in attachments. That would come from there?
December 8, 2017 at 6:19 am in reply to: After / Problem with the function tribe_get_listview_prev_link () #1401176Rivet
ParticipantHello
I’m not sure I can do that but I’ll let you know.Also, please share with us your complete system information by following this guide > https://theeventscalendar.com/knowledgebase/sharing-sys-info/
These info are on the previous topic. The link is above
-
This reply was modified 8 years, 4 months ago by
Rivet.
October 27, 2017 at 6:13 am in reply to: Problem with the function tribe_get_listview_prev_link () #1369972Rivet
ParticipantHello,
And I forgot to specify that I have another site with the same theme and with Events Calendar and there is not this problem.
October 27, 2017 at 6:04 am in reply to: Problem with the function tribe_get_listview_prev_link () #1369965Rivet
ParticipantSite URL / https://viacampesina.org/fr
Multisite / Yes 1
Site Language / fr_FR
Character Set / UTF-8
WordPress version / 4.8.2
PHP version / 5.6.30-0+deb8u1PHP /
max_execution_time = 30
memory_limit = 512M
upload_max_filesize = 128M
post_max_size = 128MWP Date Format / j F Y
WP Time Format / G\hi
Week Starts On / 1
Common Library Dir /var/www/viacampesina.org/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe
Common Library Version / 4.6.2I disabled all the plugins and the problem persists.
By cons when I put a theme by default it works again.
An idea of where this can come from?
Thank you for your help.
-
This reply was modified 8 years, 3 months ago by
-
AuthorPosts
