[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

Fatal error: Call to undefined function:

I have php 4.1.2, apache 1.3, mysql 3.23 installed in my xp pro machine.

I have met many errors like:
Warning: Failed opening '../header.inc.php' for inclusion (include_path='.;C:\php\pear') in e:\egroupware2\manual\index.php on line 20
Fatal error: Call to undefined function: is_a() in e:\crm\log4php\config\LoggerPropertySetter.php on line 108

or simply:

Fatal error: Call to undefined function: execmethod() in e:\egroupware2\manual\index.php on line 22

etc.

My php config (fragement) is:

Configuration File (php.ini) Path      C:\WINDOWS\php.ini
include_path      .;C:\php\pear

The pear folder is the default folder when I downloaded and installed php, I did not change anything.

One more, all those scripts that do not work properly are said to be run on php 4.3+. I do can run some scripts properly, like Invision Power Board 1.3

Another weird issue is that, I was using IIS 5 yesterday and I can successfully install and run those scripts that cannot install & run today in apache.

Another problem is when I tried to install EZ publish, I got this problem:

when I tried to install the 1st time (the 1st time to visit the install URL) , I got this:
<link rel=\"stylesheet\" type=\"text/css\" href=

But if I try this URL again, I get this:

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\5333a6c365d6268e16c21e911be41344.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\codepages\36e48c5d322c489dd3ee4e51ffda1494.php on line 271

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\33f42fe2d66540e837a4b316cf649710.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\3c8ad8ce08531dfeba6caf9522ae1883.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\624c2b076ca52fb456afc8e03de2ce4c.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\c4ff96e5160a5c9d983aa46ebbe674e8.php on line 3
<link rel=\"stylesheet\" type=\"text/css\" href=

php files like 624c2b076ca52fb456afc8e03de2ce4c.php are automatically generated in the ini or codepages folders.
0
tiger0516
Asked:
tiger0516
  • 2
  • 2
2 Solutions
 
tiger0516Author Commented:
I can connect to MySQL correctly.
0
 
tiger0516Author Commented:
By the way, my MySQL is running (I can see a process named mysqld-nt.exe) and in php.ini mysql.allow_persistent is set to be On
0
 
davebytesCommented:
"Another weird issue is that, I was using IIS 5 yesterday and I can successfully install and run those scripts that cannot install & run today in apache."

IIS 5 with PHP 4.1.2?   Or different version?  Have you tried yourself running with a newer PHP (like 4.3, that you mentioned, or PHP5)?

IIS and apache set certain host-path globals differently.  I'd be shocked with newer scripts having problems with >apache<, most would have issues with IIS given PHP is more used in LAMP environments...  But that could foil certain tricky include setups.

The first error:
Warning: Failed opening '../header.inc.php' for inclusion (include_path='.;C:\php\pear') in e:\egroupware2\manual\index.php on line 20
There should be a file e:\egroupware2\header.inc.php...  If it isn't there, something is wrong to begin with.
0
 
blue_hunterCommented:
check for the location for all inclusion file in your program.
if the file location is not reachable from your scripts, you are unable to call the function in the inclusion files.
Hence, the system will dump you the "call to undefined function" error.

furthermore, If you are trying to call a function which is not currently supported by your php version, the system will throw such error for you too.

cheers


0
 
davebytesCommented:
Do you mind, for future readers, explaining what your solution was?

-d
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now