View unanswered posts | View active topics It is currently Sat Oct 25, 2014 11:02 pm



Reply to topic  [ 4 posts ] 
Call to undefined function: import_request_variables 
Author Message

Joined: Mon Oct 13, 2003 6:55 pm
Posts: 1
Post Call to undefined function: import_request_variables
Just got done installing, but get this error when trying to get to zm.php. Done with a clean RH7.2 install. Any ideas?


Mon Oct 13, 2003 6:56 pm
Profile
Site Admin
User avatar

Joined: Wed Jul 09, 2003 3:07 pm
Posts: 5221
Location: Bristol, UK
Post Re: Call to undefined function: import_request_variables
Hi Joe,

The import_request_variables function is a PHP function added in PHP 4.1. It sounds like you have an earlier version so you can either install a later version or provided you have register_globals set to on in your php.ini file I think you can just delete (or comment out) this call.

Regards,

Phil,


Wed Oct 15, 2003 10:36 am
Profile ICQ YIM WWW

Joined: Mon Mar 29, 2004 3:25 am
Posts: 43
Post Re: Call to undefined function: import_request_variables
I am having precisely the same issue as above, but when I comment the “import_request” line in zm.php, it only leads to a similar issue in zm_db.php.

Warning: Undefined variable: bandwidth in /home/.sites/28/site1/web/zone/zm_html.php on line 21
Fatal error: Call to undefined function: mysql_pconnect() in /home/.sites/28/site1/web/zone/zm_db.php on line 21

I have verified that php.ini has register_globals = yes. Are there other tweeks to this file I should look at?

Following the advice to upgrade PHP instead is scary to me as I am running a cobalt box, and I am afraid of causing an issue with the systems management interface that depends on the version of PHP this is installed.

I am brand new to this app, and just need a nudge in the right direction to get it going. Any thoughts?

-WAM


Mon Mar 29, 2004 3:55 am
Profile
Site Admin
User avatar

Joined: Wed Jul 09, 2003 3:07 pm
Posts: 5221
Location: Bristol, UK
Post Re: Call to undefined function: import_request_variables
Hi William,

A couple of things spring to mind here. Firstly I notice you are getting udnefined variable warnings. These would not normally get output, as there are a few places where they are unavoidable. Did you explicitly switch them on, which is fine in the circumstances of trying to find problems, or does you site have them on all the time? If it's the latter you should edit the error_reporting line in zm.php to switch off 'notice' messages by including this line

<i>error_reporting (E_ALL ^ E_NOTICE);</i>

Secondly I notice that mysql_pconnect does not appear to be defined. This may be because some older installations did not have it, in which case you would have to edit zm_db.php to use mysql_connect instead, see <a href="http://uk.php.net/function.mysql-pconnect">here</a> for details of these functions. Alternatively, and perhaps more likely, it may be that your php is not built with mysql support. To test this create a simple script called maybe debug.php and include the following

<i><?php

phpinfo();

?></i>

Then access that and look for references to mysql. If it's built with mysql shared then you may be able to just install the module otherwise you will probably have to build a new php.

Phil,


Mon Mar 29, 2004 10:04 am
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group