Call to undefined function of get option wordpress

I've got a Wordpress installation, last version 3. Whenever my code calls that function, I get a Weird, cause the code of a plugin should be called from within the Wordpress framework Make it even more weird: Also maybe worth to mention: I've got a class that wraps the actual plugin, and in the bottom of that. I added following code at the top of the page. I just wanted to add a note here for anyone getting the "PHP Fatal error: I did a google search for this error and found this question.

I used Sumith's Code but edited it a little - It was the only code that worked amongst the codes mentioned here. By posting your answer, you agree to the privacy policy and terms of service. By subscribing, you agree to the privacy policy and terms of service.

Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: I've searched almost everywhere, but proposed answers didn't help me. So, for example, this works: Anyone has a clue?

call to undefined function of get option wordpress

Try re-uploading all files and folders - except the wp-content folder - from a fresh download of latest WordPress. AmalMurali I already tried that three times.

Topic: Fatal error: Call to undefined function wp() ยท ybevosapoyud.web.fc2.com

The content in all those files are exactly the same on the server as they are in a fresh download. MarcB the error log just says PHP Fatal error: Apparently I'm not in the Wordpress framework in my plugin. So I added that include, now the error is PHP Fatal error: Also, you need plugin. When I check for those included files in my constructor, it also prints the same results.

When I check for these files from another function, I get only my own PHP file as a result.

plugins - Fatal error: Call to undefined function wp_cache_get() in /home/thes/public_html/wp-includes/ybevosapoyud.web.fc2.com on line - WordPress Development Stack Exchange

I got the same Fatal Error and then I call to undefined function of get option wordpress the wp-config. Sumith Harshan 3, 1 15 I tried something like that, but then I just got different errors about files required by wp-config. I re-installed Wordpress to fix the problem, I guess some files were corrupted. Did you try to include wp-config. I'm not sure which files I included, but I'm pretty sure I tried wp-config and I think also wp-load.

get option - Fatal error: Call to undefined function get_option() - WordPress Development Stack Exchange

Anyway, I figured it was my code that wasn't working as I did a fresh re-install of Wordpress and refactored my plugin completely and now everything works: You aftermarket stock for remington 700 sps tactical test to see if options.

In any case I shouldn't get a when I try to retrieve a non-existent option from my Wordpress database, and certainly not a "call to undefined function". But to be complete: Or you could always try a fresh install of WP on a sub-domain with the theme. This pretty much takes things back to basics. You then install your plugin and see what happens. If exactly the same then the problem is the plugin not WP.

Sorry for the waffly answer but going back to basics is often the best way to track down issues. Have you got a customised htaccess? That can throw up errors. But it looks more and more like a DB issue.

call to undefined function of get option wordpress

A fresh install on a sub domain will help narrow down the problem. It's possible that your development has corrupted the DB which is why you get the error.

call to undefined function of get option wordpress

Also try the clean options plugin to again reset everything. I already thought it wouldn't be WP, as I re-uploaded the wp-admin and wp-includes from a fresh download multiple times It's gotta be something in my code that is not working: Nicolas Wynkoop 1 1. Van Leo Adrivan 61 1 4. Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers.

Stack Overflow works best with JavaScript enabled. Regards share improve this answer. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system