strange probelm with class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

strange probelm with class

Post by shiznatix »

i have a class and i call a function in this class. easy as that. well somtimes, and it seams very very random (ya ya i know there is no randomness in coding) i get a error that says member called to undefined function (somthin like that, its the error that you get when you call to a function in a class that does not exist). now there is no reason for this error to come up since there IS the function and class and if i just hit f5 or click on any other link then everything goes back to normal. its like the class just disapears for like a half second. any sugestions?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Gremlins? :)

And code may be of much help here, mind to post it?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

i do think that it is gremlins cause they also try to eat my in my sleep. here are the two scripts where i think the error might be located but im not sure. it usually happens when i am loged in as a admin and it happens on line 98 of index.php

http://www.koduleht.net/~andrew/cv/index.txt

http://www.koduleht.net/~andrew/cv/lang.inc.txt

EDIT: I originally had this real werid problem with the session[lang] getting set to the entire array of all of the words (no idea how that was happening) but i fixed that with the session[backup_lang]
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

btw, do you have register_globals on or off?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Register globals are off, still no ideas?
Post Reply