Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter bergerlaw

    (@bergerlaw)

    Thank you!

    Thread Starter bergerlaw

    (@bergerlaw)

    I think your last message is cut off, and I don’t see any difference in the code.

    Thread Starter bergerlaw

    (@bergerlaw)

    Thanks for this code, however, it generates an error: The code throws the following error: An error of type E_ERROR was caused in line 97 of the file /nas/content/live/allcardsdev1/wp-content/themes/kadence-child/functions.php. Error message: Uncaught ArgumentCountError: Too few arguments to function pm_pagination_trailing_slashes(), 1 passed in /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php on line 326 and exactly 2 expected in /nas/content/live/allcardsdev1/wp-content/themes/kadence-child/functions.php:97

    Thread Starter bergerlaw

    (@bergerlaw)

    The code throws the following error: An error of type E_ERROR was caused in line 97 of the file /nas/content/live/allcardsdev1/wp-content/themes/kadence-child/functions.php. Error message: Uncaught ArgumentCountError: Too few arguments to function pm_pagination_trailing_slashes(), 1 passed in /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php on line 326 and exactly 2 expected in /nas/content/live/allcardsdev1/wp-content/themes/kadence-child/functions.php:97
    Stack trace:
    #0 /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php(326): pm_pagination_trailing_slashes(‘https://allcard…’)
    #1 /nas/content/live/allcardsdev1/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://allcard…’, Array)
    #2 /nas/content/live/allcardsdev1/wp-content/plugins/permalink-manager/includes/core/permalink-manager-core-functions.php(574): apply_filters(‘permalink_manag…’, ‘https://allcard…’, ‘https://allcard…’)
    #3 /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php(326): Permalink_Manager_Core_Functions::control_trailing_slashes(‘https://allcard…’)
    #4 /nas/content/live/allcardsdev1/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://allcard…’, Array)
    #5 /nas/content/live/allcardsdev1/wp-content/plugins/permalink-manager/includes/core/permalink-manager-uri-functions-post.php(120): apply_filters(‘permalink_manag…’, ‘https://allcard…’, Object(WP_Post), ‘https://allcard…’)
    #6 /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php(326): Permalink_Manager_URI_Functions_Post::custom_post_permalinks(‘https://allcard…’, Object(WP_Post))
    #7 /nas/content/live/allcardsdev1/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://allcard…’, Array)
    #8 /nas/content/live/allcardsdev1/wp-includes/link-template.php(308): apply_filters(‘post_link’, ‘https://allcard…’, Object(WP_Post), false)
    #9 /nas/content/live/allcardsdev1/wp-includes/link-template.php(158): get_permalink(Object(WP_Post), false)
    #10 /nas/content/live/allcardsdev1/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(579): get_the_permalink(49769)
    #11 /nas/content/live/allcardsdev1/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(108): RankMath\Replace_Variables\Post_Variables->get_url()
    #12 /nas/content/live/allcardsdev1/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php(171): RankMath\Replace_Variables\Post_Variables->setup_post_variables()
    #13 /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php(324): RankMath\Replace_Variables\Manager->setup(‘plugins.php’)
    #14 /nas/content/live/allcardsdev1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #15 /nas/content/live/allcardsdev1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #16 /nas/content/live/allcardsdev1/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’, ‘plugins.php’)
    #17 /nas/content/live/allcardsdev1/wp-admin/plugins.php(621): require_once(‘/nas/content/li…’)
    #18 {main}
    ?thrown

    Thread Starter bergerlaw

    (@bergerlaw)

    If I set it to remove the trailing slash, the pagination works. Now the question is whether removing the slash creates any other problems.

    Thread Starter bergerlaw

    (@bergerlaw)

    Thanks for the quick reply! It’s currently set to Use default settings.

    Thread Starter bergerlaw

    (@bergerlaw)

    I selected a paragraph and then tried both “Correct Text” and “Enhance Text” and it just kept spinning.

    Thread Starter bergerlaw

    (@bergerlaw)

    Disregard, I see that the color turns red if Insertion is set.

    Thread Starter bergerlaw

    (@bergerlaw)

    Of course! Once the balance gets to $25 for most credit cards, that becomes the final payment. Thank you!

    Thread Starter bergerlaw

    (@bergerlaw)

    Here was my first attempt:

    (function() {
    var balance = fieldname2;
    var monthstopayoff = 0;
    var totalinterest = 0;
    var interestrate = fieldname3 / 100 / 12;
    while (balance > 0) {
        var monthinterest = balance * interestrate;
        totalinterest += monthinterest;
        balance -= (balance * .01);
        monthstopayoff++;
    }
    return monthstopayoff;
    })();

    Note that fieldname2 is the loan balance. I was hardcoding some numbers just to try to get it to work. Ultimately I’m going to want to display how long to pay off the debt and total interest paid.

    Thread Starter bergerlaw

    (@bergerlaw)

    Thank you. It’s interesting that I have been using the Advanced Equations Editor, it doesn’t show any errors, but it’s still not working. I’ll keep trying.

    Thread Starter bergerlaw

    (@bergerlaw)

    I’m trying to create a calculator that determines how long it will take to pay off a credit card making just the minimum payment. The trick is that as the balance gets lower, so does the minimum payment. So I wrote a while loop that I thought would handle this. It’s not working (no results at all and the page dies); perhaps I should try in a code editor that shows errors in the code if any.

    Thread Starter bergerlaw

    (@bergerlaw)

    So it’s javascript, not php?

    Thread Starter bergerlaw

    (@bergerlaw)

    Thank you.

    Thread Starter bergerlaw

    (@bergerlaw)

    When I hover, it shows the group file name followed by “is not registered locally.” Not sure how to upload a screenshot.

Viewing 15 replies - 1 through 15 (of 20 total)