PHP error

Fatal error: Call to undefined function import_request_variables() in /home/vhosts/www.???.com/LittlePoll/lp_admin.php on line 61

any one have any advice to this error?

yep, pretty self exclamatory, its telling you the function doesn’t exist in the code it can see. As far as I know, its not a standard php function. If you have in a functions file or somewhere else, then you need to include or require the file so it can find the function.

import_request_variables() does the same thing as register_globals ini setting. It has been removed as of PHP 5.4 and may have been disabled by your host in earlier versions.

Creig,

Here is further info on this command:
http://php.net/manual/en/function.import-request-variables.php

As AbraCadaver mentioned it is no longer used. But, without seeing the code, we can not tell you if you should delete that line or change it to some other command. to import request variables, you can just use the posted request array. ( $_POST or $_GET ) This depends on what you are trying to do in line #61.

If you can’t figure it out, please post a few lines of code before and after #61 and we will take a peek at it for you. Good luck…

Sponsor our Newsletter | Privacy Policy | Terms of Service