• Brent

    (@colourstone)


    Hi, I’m sure hoping you can help me. I love this plugin! I am not a php developer, I just wing it. I’m more of a CSS guy.

    Anyway here’s my issue. This works fine on the page which is great but my problem is that when I add and invite a new user to WP and my client clicks on the link to join from their email we get the following error message on the page ==>

    ****** error message *******
    Fatal error: Call to undefined function company_upper_quote() in /home/bestmo10/public_html/wp-content/themes/choices/functions.php on line 91
    ****************************

    I created a shortcode function below:

    ****** in header.php ********

    <div class='infotext'>
    <?php my_upper_quote(); ?>
    </div>

    ****** in functions.php *******
    //my addition of the upper quote from company info shortcode

    function my_upper_quote() {
    
    if(company_upper_quote()) {
      echo company_upper_quote();
    } else {
      echo 'You forgot to enter your upper company quote';
    }
    
    }

    *************************

    So where am I going wrong?

    I originally used this code only in the header page: (it worked fine but I also got the error!)

    ****** in header.php ********

    <div class='infotext'>
    <?php
    if(company_upper_quote()) {
      echo company_upper_quote();
    } else {
      echo 'You forgot to enter your upper company quote';
    }
    ?>
    </div>

    ****************************

    Can you please help me?
    It’s GREATLY APPRECIATED IN ADVANCE!

    Thank you,
    Brent Wallace

    [Please post code & markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    http://wordpress.org/extend/plugins/my-company-menu/

  • The topic ‘Help with error message for new users.’ is closed to new replies.