title: Fatal error: Uncaught Error: Call to undefined function, when the function is defined in the require
body: <p>I'm currently making a wordpress plugin and I am getting this error.</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Call to undefined function
    rate_my_stuff_calc() in
    C:\Users\desbest\Documents\UniServerZ\www\wordpress\wp-content\plugins\rate-my-stuff\rate-my-stuff.php:44</p>
  </blockquote>
  
  <p>However I am including the function because I have a line of code above where the function is called called </p>
  
  <p><code>require_once( plugins_url('rate-my-stuff/core.php' ));</code></p>
  
  <p>and in core.php the function is called on Line 10 of core.php with <code>function rate_my_stuff_calc($stars) {</code></p>
  
  <p>What is going on? Are functions declared in files that are required, not used in the overall plugin file?</p>