Reply to Re: Upgarding php4 to php5 leads to: PHP Fatal error: Call to undefined function ...

Your name:

Reply:


Posted by Erwin Moller on 03/08/07 08:43

java@wispa.de wrote:

> Hey Erwin,
>
> I replaced any include_once with require_once but did not notice any
> change in PHP's behaviour - it still starts, dumps all the source and
> terminates PHP Fatal error: Call to undefined function :-(
>
> I even changed php.ini and set error_reporting = E_NOTICE but still
> there is no more information about the failure. The syntax of all php-
> files is ok and checked with php -l and I am totally stuck with this.
> Any further ideas how to locate the source of this very short error-
> message?
>
> Regards,
>
> Christian

Hi Christian,

I had a similar problem a week ago, and I now see how it could be relevant
to your problem too. Maybe they are the same.

An app I made works great. Of course. ;-)
Then somebody wanted to install it on his own laptop, for testingpurposes,
and as it turned out he couldn't get it running.
My app failed on a call to an undefined function.
Since I was sure that function existed, I checked with him the include_path
and stuff like that. All seemed OK.

The most starnge thing was this:
- I asked him to put an
echo "TESTING!";
at the end of the includefile, and THAT did appear on the screen.
But NONE of the functions inside the includefile were found.

I was awestuck, so I jumped into my car and visited him, because actually I
couldn't believe this was happening, and I expected he made some stupid
mistake.
After some edditing in the file, all of a sudden all functions were found,
and things kept working.
Because we had no clue WHAT we changed that could be remotely important, we
placed back the old, original file, but still the problem didn't return.
This was on XP with PHP5.
Very frustrating.

At first I thought the guy didn't get the files in right, with ftp, and
screwed up some end-of-lines somewhere, but placing back the original file
didn't give the problem again.
So I am shooting in the dark with my end-of-line hypothesis.

I am unsure if my story is relevant to your situation, but you might try to
do the same: edit the file e little, safe it, and see if it works.
I know how stupid it sounds, but give it a shot.

Regards,
Erwin Moller

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация