Follow us on

Codestar Support Forum » WordPress Themes » Route WordPress Theme

Child theme did not update when Route updated

  1. I just updated Route theme from 2.6 to 6.7. I needed to update because there was an error showing up and the whole site was broken. It displayed this message:

    ArgumentCountError thrown
    Too few arguments to function add_action(), 1 passed in /nas/content/live/dccindiana/wp-content/themes/route-child/functions.php on line 21 and at least
    2 expected

    I had to ask WP Engine to change the active theme so that I could even log into the WP Admin area.

    Now that I have updated the Route theme I have a child theme that is still showing that it is on version 2.6 and when I try the Live Preview of the child theme, it still displays the same "ArgumentCountError thrown" message. So if I activate the child theme again, I know it will break the site again.

    How do I update the child theme files now that Route is updated, but without losing any modifications in the child theme?

    P.S. Also, the Route update helper plugin did not delete after update for some reason.

    Thank you for your help!

    Posted 4 years ago #

  2. Codestar


    Actually it is normal. as you know, the child theme doesn't update when update main theme for without losing any modifications.

    I logged your wordpress and checked the child theme functions.php but there is a wrong.

    // wrong
    add_action( 'cs_top_bar_module' );
    // correct
    add_action( 'cs_top_bar_module', 'cs_mobile_icon' );CopyCopied!

    Is there another issue ? let me know.

    Regards, Codestar

    Posted 4 years ago #
  3. Awesome! Thanks so much for checking into that.

    Posted 4 years ago #

  4. Codestar

    You're welcome

    Posted 4 years ago #