Results 1 to 2 of 2

Thread: Call to a member function get_var() on a non-object

  1. #1
    Thread Starter
    Senior Member bbuster79's Avatar
    Join Date
    Jan 2011
    Location
    United States
    Posts
    106
    Thanks
    5
    Thanked 10 Times in 7 Posts

    Call to a member function get_var() on a non-object

    Any thoughts on why I'm getting this error? I've set up the required $wpdb global.

    Here's the line that's generating the error:

    PHP Code:
    $existing_job $wpdb->get_var($wpdb->prepare("SELECT post_id FROM " $wpdb->prefix ."postmeta WHERE meta_key = 'external_job_ad_id' AND meta_value = %d"$external_job_ad_id)); 
    I'm calling it from a script in /themes/jobroller/includes.

    Someone had suggested on another forum it might be wordpress is not finding the file needed to instantiate $wpdb;

    I'm using the most current versions of both JR and Wordpress.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,387 Times in 3,258 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fatal error: Call to undefined function mb_strlen()
    By tisoy in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: July 2nd, 2011, 08:57 AM
  2. Call to undefined function error
    By tariqali in forum Report Clipper Bugs
    Replies: 5
    Last Post: April 4th, 2011, 10:37 AM
  3. Fatal error: Call to undefined function get_box_textfield() in
    By unoichy in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 24th, 2010, 02:20 PM
  4. Can't Call New Function File
    By scarstens in forum Help Using ClassiPress
    Replies: 0
    Last Post: April 27th, 2010, 04:10 AM