• Resolved wfandrea

    (@wfandrea)


    After putting shortcode for Pie Calendar in shortcode-element from Bricks Builder, the page shows an error when loading in front as well as in builder:

    Fatal error: Uncaught InvalidArgumentException: The INTERVAL rule part must be a positive integer (> 0) in /var/www/wordpress/wp-content/plugins/pie-calendar/vendor/php-rrule/RRule.php:254 Stack trace: #0 /var/www/wordpress/wp-content/plugins/pie-calendar/includes/utils/PiecalRRuleUtil.php(76): RRule\RRule->__construct() #1 /var/www/wordpress/wp-content/plugins/pie-calendar/includes/piecal-pro.php(820): Piecal\Utils\RRuleUtil::expandOccurrencesWithinRange() #2 /var/www/wordpress/wp-includes/class-wp-hook.php(324): piecalExpandOccurrencesInView() #3 /var/www/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #4 /var/www/wordpress/wp-content/plugins/pie-calendar/includes/shortcode.php(94): apply_filters() #5 /var/www/wordpress/wp-includes/shortcodes.php(433): piecal_render_calendar() #6 [internal function]: do_shortcode_tag() #7 /var/www/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback() #8 /var/www/wordpress/wp-content/themes/bricks/includes/elements/shortcode.php(96): do_shortcode() #9 /var/www/wordpress/wp-content/themes/bricks/includes/elements/base.php(2290): Bricks\Element_Shortcode->render() #10 /var/www/wordpress/wp-content/themes/bricks/includes/ajax.php(315): Bricks\Element->init() #11 /var/www/wordpress/wp-content/themes/bricks/includes/builder.php(2124): Bricks\Ajax::render_element() #12 /var/www/wordpress/wp-content/themes/bricks/includes/builder.php(2030): Bricks\Builder::query_content_type_for_elements_html() #13 /var/www/wordpress/wp-content/themes/bricks/includes/builder.php(288): Bricks\Builder::builder_data() #14 /var/www/wordpress/wp-includes/class-wp-hook.php(324): Bricks\Builder->enqueue_scripts() #15 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #17 /var/www/wordpress/wp-includes/script-loader.php(2262): do_action() #18 /var/www/wordpress/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #19 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #20 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #21 /var/www/wordpress/wp-includes/general-template.php(3052): do_action() #22 /var/www/wordpress/wp-content/themes/bricks/header.php(7): wp_head() #23 /var/www/wordpress/wp-includes/template.php(790): require_once(‘…’) #24 /var/www/wordpress/wp-includes/template.php(725): load_template() #25 /var/www/wordpress/wp-includes/general-template.php(48): locate_template() #26 /var/www/wordpress/wp-content/themes/bricks/template-parts/builder.php(2): get_header() #27 /var/www/wordpress/wp-includes/template-loader.php(106): include(‘…’) #28 /var/www/wordpress/wp-blog-header.php(19): require_once(‘…’) #29 /var/www/wordpress/index.php(17): require(‘…’) #30 {main} thrown in /var/www/wordpress/wp-content/plugins/pie-calendar/vendor/php-rrule/RRule.php on line 254

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jonathan Jernigan

    (@apexws)

    Hi @wfandrea,

    I just fired up a new Bricks install to check and don’t get this error message. Have you tried disabling other plugins to check for conflicts?

    If you have, can you please share other troubleshooting steps you’ve tried?

    Thread Starter wfandrea

    (@wfandrea)

    Hi Jonathan @apexws, I deactivated all plugins one by one and tried reloading te page with a [piecal] shortcode on it. To no avail… The fatal error keeps popping up.
    I then deactivated all plugins but pie calendar and tried reloading the page. No fatal error, but also no calendar visible on the page. I then created a new page and added shortcode as in 4 minute video and documentation. Page loads, but no calendar shown.
    Deactivated Bricks theme also. And activated Twenty Twenty-Four theme. Recreated page with [piecal] shortcode and viewed page: fatal error again.
    I am out of investigating options…

    Plugin Author Jonathan Jernigan

    (@apexws)

    We managed to fix this error via private chat. The problem was that with Pie Calendar Pro installed, an event post with the “interval” field set to “0” caused the fatal error and on a different post, there was a post with “This event repeats” checked, but “interval” was blank.

    I removed the 0 from the interval and un-checked the event repeats on the two posts and the website came back online, fully functional.

    We will better handle these edge cases in a future release to ensure it doesn’t cause fatal errors.

    Thanks for letting me dig into this on your site, @wfandrea!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    MOderator note: @apexws

    It’s good that the OP’s problem was solved, but I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us escalating this to the plugins team.

    It’s never necessary to do that. Here’s why.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    • Ask for a link to the https://pastebin.com/ or https://gist.github.com log of the user’s web server error log.
    • Ask the user to create and post a link to their phpinfo(); output.
    • Ask the user to install the Health Check plugin and get the data that way.
    • Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
    • Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again.
    • Ask the user for the step-by-step on how they can reproduce the problem.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.

    Thread Starter wfandrea

    (@wfandrea)

    @sterndata While I completely agree that these forums need to be a safe place for all users, I’d like to put out my decision in “lending out the keys” to @apexws.

    1. I made a separate development environment of the site in casu, where I could replicate the issue I was discussing with the plugin author. This was done because the other actions (like the one you mention) were already taken. Any damage done to this environment, would not implicate the other development envorinment nor production environment;
    2. I’ve come to know Jonathan from his informational blog and YouTube-channel. Also the co-author of the plugin is a rather well established name in the WP-community. Also, the email-address provided could be verified as legit. My calculated risc assessment in this case scored rather low therefor;
    3. Not only will I take the development environment down now the issue is solved, I also think the person who is lending out the key (me) bears responsibility in doing so. You should have addressed me on that point likewise as you did @apexws

    To be clear: I completely agree with all things you mention. And completely understand the action you took in sending your reply. But safety and security is the responsibility of both parties I strongly belief. Thanks for volunteering and keeping WP Forums the nice and worthfull place it is.

    Best regards, Wim

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Regardless, you may not offer a login to ANY site here. You are not the exception. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pie Calender breaks front end and Bricks Builder’ is closed to new replies.