Valhalla Legends Archive

General => General Discussion => Topic started by: lunatic on October 30, 2003, 08:01 PM

Title: i have a php problem
Post by: lunatic on October 30, 2003, 08:01 PM
this is what happens when i try to go to my site..
Fatal error: Call to undefined function: themes_get_language() in /home/lunatic/public_html/reloaded/theme.php on line 30

ok now i went to line 30 it reads
themes_get_language();
any one know what my problem is??
Title: Re:i have a php problem
Post by: iago on October 30, 2003, 08:09 PM
That's the dumbest question I ever heard.  READ THE ERROR!

It says you're missing the function themes_get_language(), and on that line it calls that function!
Title: Re:i have a php problem
Post by: Grok on October 30, 2003, 08:53 PM
POTD.
Title: Re:i have a php problem
Post by: iago on October 30, 2003, 08:58 PM
I win the Post of the Day!  Is it only Oct. 30 that has a post of the day?  
Title: Re:i have a php problem
Post by: j0k3r on October 30, 2003, 09:09 PM
PHP sucks at giving you accurate errors, it's almost never what the error reads, nor is it always on the right line.

It looks like you are trying to use PHP Nuke... If you get that when you try to view your website and it isn't working then you need to change the theme which can be tedious. Your theme can be corrupted, incompatible with your PHP Nuke version, or maybe you were just screwing around with it too much.

Try these:
1. Find a PHP Nuke support site, this site doesn't even run PHP Nuke (then again, I'm an idiot and what do I know), there are PHP Nuke freaks on those sites
2. Look around to make sure the theme actually works (sites that you can download themes from usually have user comments) and if its compatible.
3. Try reuploading the theme
4. Manually change the theme (this is hard, and you should try to find some sites), if this does not work...
5. Completely reupload Nuke with the default theme
Title: Re:i have a php problem
Post by: warz on October 31, 2003, 07:33 AM
+1 to joker for providing help. -1 to iago and Grok for being hypocrites.
Title: Re:i have a php problem
Post by: Grok on October 31, 2003, 08:20 AM
Quote from: warz on October 31, 2003, 07:33 AM
+1 to joker for providing help. -1 to iago and Grok for being hypocrites.

SONOFABITCH.  My karma!
Title: Re:i have a php problem
Post by: Arta on October 31, 2003, 08:41 AM
Quote from: j0k3r on October 30, 2003, 09:09 PM
PHP sucks at giving you accurate errors, it's almost never what the error reads, nor is it always on the right line.

Nonsense. It gives perfectly useful errors. Very few languages will always quote the correct line, and with good reason: The line it quotes is wrong because of an oversight in a previous line which may be syntactically correct. To date, I have never seen PHP give me an error that' just plain wrong.

GJ on the rest though.
Title: Re:i have a php problem
Post by: iago on October 31, 2003, 08:49 AM
Quote from: warz on October 31, 2003, 07:33 AM
+1 to joker for providing help. -1 to iago and Grok for being hypocrites.

I told him his problem; it says it can't find that function on a line that calls the function!  Doesn't get much simpler!
Title: Re:i have a php problem
Post by: Thing on October 31, 2003, 09:01 AM
+1 to Grok for using SONOFABITCH in a sentence.
Title: Re:i have a php problem
Post by: Hitmen on October 31, 2003, 01:53 PM
It wasn't used in a sentence, it was used as a sentence.
Title: Re:i have a php problem
Post by: UserLoser on October 31, 2003, 08:22 PM
Quote from: Grok on October 31, 2003, 08:20 AM
Quote from: warz on October 31, 2003, 07:33 AM
+1 to joker for providing help. -1 to iago and Grok for being hypocrites.

SONOFABITCH.  My karma!

now you know how i felt when my karma got reset :P, well not really, because mine went back to 0
Title: Re:i have a php problem
Post by: Adron on November 01, 2003, 05:24 AM
Well, you were cheating with your karma modifications anyway. And worse, posting links to sucker people into improving your statistics somewhere, which routinely gets people banned from the forum. (i.e. like links to online "games" where you get a point for everyone you fool into visiting your page)
Title: Re:i have a php problem
Post by: Mephisto on November 08, 2003, 12:24 PM
Perhaps you should define your function first?

function themes_get_language()
{
     statements;
}

Then when line 30 calls themes_get_language() function it knows where to retrieve the statements to execute and thus your errors will cease to exist...
(unless you have allready declared this function, then I don't know, nor care)
Title: Re:i have a php problem
Post by: Darkness22k on November 08, 2003, 12:43 PM
In the file somewhere there should be:
function themes_get_language()
{
     include("language.tpl");
}
or something like it (I just made that up). If there isnt, then you need to redownload the theme or change it to a different one.
Title: Re:i have a php problem
Post by: j0k3r on November 08, 2003, 05:31 PM
Mephisto - In PHP(Nuke, as he was using) everything is written already, all you have to do is upload the files, create your database, and configure one file. Any errors you get are probably just errors in the files and 90% re-uploading will fix them.