Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jtpeterson64

    (@jtpeterson64)

    Thank you.

    jtpeterson64

    (@jtpeterson64)

    Darian,
    
    I appreciate the way to save my modifications that work for “my site” so I don’t have to repeat my modification (or upload a saved file) each time the plugin is updated.
    
    Before following your directions, I created a staging site. I then did the suggestions you made in the staging folders.? FYI, I created each of the “theme” folders one at a time.? I then copied my “modified” view-more.php file (with the hard-coded events list url) to the specified folder.? I then renamed the unaltered original file in the original plugin folder back to view-more.php.
    
    This works “for the most part”.? I say it like that because when I click on the “View Calendar” in the widget in the staging site, it takes me to the live site events instead of the staging list (because that is the hard-coded location in my modified file).
    
    I’m trying to help diagnose and verify where the problem is.
    
    Is there a simple way for me to add a “display and pause” in the original “view-more.php” file to be able to see the content of $view_more_link as the request is running thru view-more.php?
    
    Without being able to see the $view_more_link variable contents, I believe the main problem is probably in the “Events URL slug”, it does not display the / (slash) I referenced which is needed to get to the proper folder.? When I click on the “Events URL slug” in the plugin settings, it takes me to the list of events.? However, in the browser address bar it “adds” (includes) the / (slash) so it finds the correct events list.
    
    Therefore, I believe the esc_url( $view_more_link ) variable is not getting the proper “location” and the routine defaults back to the home page.? I’m guessing at this because $view_more_link apparently is not “empty” since the view-more.php file continues to the modified code instead of “returning”.
    
    One other thought: could the esc_url function be removing the / because it is at the beginning of the “?post_type=tribe_events”
    
    Let me know if I can do anything else to help with this issue.
    
    Jim
    Thread Starter jtpeterson64

    (@jtpeterson64)

    Like several others have said in another thread, before modification, clicking on the “View Calendar” link at the bottom of the widget takes you back to the home page.

    I have the current version of this plugin 6.0.9.

    I am not using Pretty Permalinks either and have not changed for fear of causing other problems.

    I found that the “View Calendar” link is called from the widget-events-list/view-more.php file.

    I previously found a brute force “modification that works for me”. If I change the href= in that file from href=”<?php echo esc_url( $view_more_link ); ?> to my_website_domain/?post_type=tribe_events then clicking on the View Calendar link works.

    The sad part is that each time the plugin is updated, I have to manually go back in and change this href.

    I am not sure where the $view_more_link is set or what value it has when it gets to this point. I don’t believe it is empty because the code I changed is after the empty / return condition statement.

    SPECIAL NOTE: One last note I just discovered. On the plugin General “settings” page the Events URL Slug shows the location as domain?post_type=tribe_events. There is NO / after the domain name and before the ? (question mark). The settings page says the slug cannot be edited because I am not using pretty permalinks. However, as I stated above, my manual fix includes the / before the ? and it works. Hopefully, the plugin authors can fix the “settings” and make this work for all of us without needing to modify any code.

    jtpeterson64

    (@jtpeterson64)

    On a “resolved” post. I posted the below.

    Like several others have said, before modification, clicking on the “View Calendar” link at the bottom of the widget takes you back to my home page.

    I have the current version of this plugin 6.0.9.

    I am not using Pretty Permalinks either and have not changed for fear of causing other problems.

    I found that the “View Calendar” link is called from the widget-events-list/view-more.php file.

    I found a brute force “modification that works for me”. If I change the href= in that file from href=”<?php echo esc_url( $view_more_link ); ?> to my_website_domain/?post_type=tribe_events then clicking on the View Calendar link works.

    The sad part is that each time the plugin is updated, I have to manually go back in and change this href.

    I am not sure where the $view_more_link is set or what value it has when it gets to this point. I don’t believe it is empty because the code I changed is after the empty / return condition statement.

    NOTE: One last note I just discovered. On the plugin General “settings” page the Events URL Slug shows the location as domain?post_type=tribe_events. There is NO / after the domain name and before the ? (question mark). The settings page says the slug cannot be edited because I am not using pretty permalinks. However, as I stated above, my manual fix includes the / before the ? and it works. Hopefully, the plugin authors can fix the “settings” and make this work for all of us without needing to modify any code.

    jtpeterson64

    (@jtpeterson64)

    Like several others have said, before modification, clicking on the “View Calendar” link at the bottom of the widget takes you back to my home page.

    I have the current version of this plugin 6.0.9.

    I am not using Pretty Permalinks either and have not changed for fear of causing other problems.

    I found that the “View Calendar” link is called from the widget-events-list/view-more.php file.

    I found a brute force “modification that works for me”. If I change the href= in that file from href=”<?php echo esc_url( $view_more_link ); ?> to my_website_domain/?post_type=tribe_events then clicking on the View Calendar link works.

    The sad part is that each time the plugin is updated, I have to manually go back in and change this href.

    I am not sure where the $view_more_link is set or what value it has when it gets to this point. I don’t believe it is empty because the code I changed is after the empty / return condition statement.

    NOTE: One last note I just discovered. On the plugin “settings” page the Events URL Slug shows the location as domain?post_type=tribe_events. There is NO / after the domain name and before the ? The settings page says the slug cannot be edited because I am not using pretty permalinks. However, as I stated above, my manual fix includes the / before the ? and it works. Hopefully, the plugin authors can fix the “settings” and make this work for all of us without needing to modify any code.

    I will add this to my previous support request post also.

    Thread Starter jtpeterson64

    (@jtpeterson64)

    My website auto updated today with The Events Calendar version 6.0.7. I am running WordPress 6.1.1 and theme Twenty Twenty-One. I also have a number of plugins, including some WooCommerce and other plugins. I am NOT using multi-language; and everything is defaulted to English.

    I am back to where I was when I sent my original bug fix request. Evidently the $view_more_link variable is not getting the correct value (or is empty so it just returns to the same page). Below is more details.

    My website is https://lookingglasscorvetteclub.com . On the main page, I used Elementor to insert the Events Calendar WIDGET, in the main body of the page, showing the next five (5) events. It displays them fine. At the bottom of this block it has a link to “View Calendar”. Clicking on this link reloads or returns to the main page.

    Using “Inspect” in MS Edge, after the update, it showed the following for this link:

    <a href="https://lookingglasscorvetteclub.com" class="tribe-events-widget-events-list__view-more-link tribe-common-anchor-thin" title="View more events."> View Calendar </a> == $0

    My previous manual fix was to change the href in the above to “https://lookingglasscorvetteclub.com/?post_type=tribe_events” which is the link to my events calendar page.

    I use “Plain” Permalinks, NOT Pretty Permalinks. The default language is English.

    Under The Events Calendar plugin settings, under Viewing, Events URL slug shows the correct location of “https://lookingglasscorvetteclub.com/?post_type=tribe_events&#8221;

    Please research further.

    In the mean time, I have temporarily changed the “view more” href again so viewers get to the Events Calendar page. If you need me to restore the original file so you can see what happens yourself, please let me know.

    I have the same issues as previously stated in this thread. Times show correct in month view but not when hovering over or opening the event (it then shows UTC times even if I enter a new event with local time).
    I have The Events Calendar version 5.11.0 installed and using Theme Twenty Twenty-one.

    I did a “New” event and entered the date of 12/01/2021 with start time of 8:00 am (America/Chicago) and End Time of 5:00 pm. The “preview” of the event shows
    “December 1 @ 2:00 pm – 11:00 pm CST” (which would be UTC time).

    Due to a similar issue with another plugin (WPS Visitor Counter) I went in and changed the date / timezone setting in all the WordPress .ini locations, as well as in WordPress General Setting, that I could find, to America/Chicago.
    When I check the timezone setting in our WordPress General setting, it shows UTC and Local times correctly. When I query the MySQL with select now() it shows the actual server time which is America/Eastern instead of America/Central.

    I believe the dates / time were working correctly prior to the latest The Events Calendar update and the other changes to timezone settings I made.

    Where is The Events Calendar getting / calculating the date/time/timezone?
    I have tried both settings in The Events Calendar for Time Zone and neither made a difference.

    I created a staging site and deactivated all the plugins except The Events Calendar but that did not make a difference either.

    Thread Starter jtpeterson64

    (@jtpeterson64)

    The fix apparently took care of the issues with accessing stats and logs in IP Location Blocker and my JetPack stats are now loading again as well.

    Thank you for your rapid response.

    Thread Starter jtpeterson64

    (@jtpeterson64)

    Your prompt attention is much appreciated.
    Thank You.

    I am having the same issue with server time. My daily stats reset 5 hours before midnight local time; this equates to UTC.

    I have my WordPress site set to U.S. Central Time (Chicago time). The “server time” is showing two hours earlier when I check it in Cpanel.

    Is there a way to adjust / incorporate Local Time offset?

    When displaying the stats, the “Server Time” is only showing the date (no time is displayed).

    Thread Starter jtpeterson64

    (@jtpeterson64)

    After deactivating the IP Location Block, the JetPack stats loads fine.

Viewing 11 replies - 1 through 11 (of 11 total)