8 reputation
15
bio website
location
age
visits member for 3 years, 2 months
seen Feb 28 '13 at 20:06

Aug
14
awarded  Notable Question
Nov
9
awarded  Popular Question
Feb
25
awarded  Scholar
Feb
25
accepted Is it possible to read a result if wp_update_user or update_user_meta fails?
Feb
25
awarded  Student
Feb
25
asked Is it possible to read a result if wp_update_user or update_user_meta fails?
Feb
17
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
I agree, I just needed a slap upside the head and someone to tell me go RTFM!!!! I got it fixed and working great after I read every plugin/ajax related doc page in the support section. Thank you so much for all your hard work helping me! That goes for everyone who tried to help me with this problem!
Feb
15
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
I think this is what you wanted: PHP Notice: Undefined variable: wpdb in /var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/wp-content/themes/s‌​martone/functions.php on line 942, referer: mysubdomain.mydomain.com/?page_id=10
Feb
15
awarded  Commentator
Feb
15
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
By stock code I mean the code originally placed there by the creators of WP. The OS path to the script file is '/var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/wp-content/themes/‌​smartone/functions.php' and wordpress is installed in '/var/www/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs/'
Feb
15
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
I understand that it is looking for wp-admin because that is what is in the source code, but I don't want to mess up the stock code. I assume I just need to run that require line in such a way that makes it run as if the current directory was ABSPATH, but don't know how.
Feb
15
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
The exact error is "Failed opening required 'ABSPATHwp-load.php' (include_path='.:')"
Feb
15
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
Ok, so your code will probably help. When I use require_once( ABSPATH . 'wp-load.php' ); I get an error about loading ABSPATHwp-load.php but when I change it to ../../../wp-load.php then I get an error saying /httpdocs/wp-content/themes/smartone/wp-admin doesn't exist. I assume wp-load is trying to load files based on the current directory which isn't working right. How do I make it load properly?
Feb
14
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
In the conversation above the 2 guys figured out that I was using ajax and that was the root of the problem...now I just have to figure out how to properly either use ajax or rewrite my code to be able to pass text from my editbox...
Feb
14
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
I know, if I add the "global $wpdb;" line it adds "[wpdb] => " at the bottom of the list I uploaded.
Feb
14
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
Ok that must be it, I am using ajax. Can I not use AJAX? If I am able to, what do I need to do to make it work? The function is in the themes function.php file. I wasn't sure the best way to call the function without using ajax, since I need to pass the text from my editbox as a variable.
Feb
14
awarded  Editor
Feb
14
revised Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
added 125 characters in body
Feb
14
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
Sorry I didn't reply earlier I didn't see your answer. I tried it without globalizing $wpdb, globalizing via " $GLOBALS['wpdb'] = $wpdb;", and globalizing via "global $wpdb". The result was always the same: bool(false). Could it be a permissions issue or something? In order to make the theme files editable inside of WP I had to set them chmod 767, wonder if I need to "reset" the permissions somehow or do some more modifications?
Feb
13
comment Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
Ok I did it, I have uploaded the results to link. If I have the "$GLOBALS['wpdb'] = $wpdb;" line uncommented it adds "[wpdb] => " at the bottom of the list I uploaded.