title: Wordpress Fatal error: Cannot access empty property
body: <p>Hy,</p>
  
  <p>This piece of code worked local, but as soon as i uploaded it to an test server, it was buggy. I'm new to wordpress plugins, but i know how php works.</p>
  
  <p>I get this error:</p>
  
  <pre><code>Fatal error: Cannot access empty property
  </code></pre>
  
  <p>And this is the line that gives the error (the last line):</p>
  
  <pre><code>global $wpdb;
  $wpdb -&gt; show_errors();
  $dbPrefixHere = $wpdb -&gt; $prefix;
  </code></pre>
  
  <p>Am i'm doing something wrong here? Or is there en better / nicer way to get the db prefix?</p>
  
  <p><strong>edit 1</strong>
  alright, i've got that working, but now there is no db table created...</p>
  
  <p>I'm using this part of code for that:</p>
  
  <pre><code>$sQueryCheckProjectDB = "CREATE TABLE ".$dbPrefixHere."automaticthesiswriter_projects (
                            projectID int(11) NOT NULL AUTO_INCREMENT,
                            userID int(11) NOT NULL,
                            shareID int(11) NOT NULL,
                            projectName mediumtext NOT NULL,
                            projectDescription mediumtext NOT NULL,
                            PRIMARY KEY  (projectID)
                          ) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
  dbDelta($sqlUseOnPageSQLCreate);
  </code></pre>
  
  <p>But the table isn't created, and there is no error showed...</p>