By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

PHP Theme

P: 57
Please Correct This theme's mistakes:


http://kasya.byethost.com/Crysalis.rar
Jun 26 '06 #1
Share this Question
Share on Google+
6 Replies


Expert Mod 100+
P: 2,324
You need to explain the problem better. You can't really expect people to help if you don't make the effort to explain exactly what your problem is. Post some background information.

- KUB
Jun 26 '06 #2

Banfa
Expert Mod 5K+
P: 8,916
Actually I suspect this is advertising, there appears to be nothing wrong with the pages this link points.

I was going to post as much and give the author a chance to explain though.
Jun 26 '06 #3

P: 57
When i write the render_header(); in the end of file a lot of errors occur.
Jun 27 '06 #4

Banfa
Expert Mod 5K+
P: 8,916
What errors? Give us as much information as you have?

As I saw in a newsgroup recently, imagine you walked into a garage said said the's a problem with my car, what do you think the mechanic would say in response?
Jun 28 '06 #5

P: 57
Warning: Missing argument 1 for render_header() in z:\home\localhost\www\crysalis\theme.php on line 9

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 15

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 16

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 17

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 20

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 28

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 31




Fatal error: Call to undefined function: dbquery() in z:\home\localhost\www\crysalis\theme.php on line 36
Jun 28 '06 #6

Banfa
Expert Mod 5K+
P: 8,916
[play]

Customer: My right hand indicator is not working.

Mechanic: Well that could be the bulb, the switch the relay or the wiring.

Customer: Good, can you fix it?

Mechanic: Certainly where is your car?

Customer: Oh I left it at home.

Mechanic: So it's not here?

Customer: No, is that going to stop you fixing it?

Mechanic: You are a very silly customer!

[/play]


Warning: Missing argument 1 for render_header() in z:\home\localhost\www\crysalis\theme.php on line 9

I'd hope that this is rather obvious, you have called render_header without a required argument. The following example would produce this

[php]

function EchoWithNewLine( $text )
{
echo( $text . "\n" );
}

EchoWithNewLine();
[/php]

Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localhost\www\crysalis\theme.php on line 15

You have used a constant that is not defined, so PHP assumes you mean the name of the constant itself as a string.

[php]
$THEME = "HELLO";

$text = THEME; /* Undefined constant, missing $ */

$array = ( "THEME" => "BLUE", "SIZE" => "BIG" );

$myTheme = $array[THEME];
/* Undefined constant, THEME should have " or '
round it, this will break later if someone
defines the constant THEME */
[/php]


Fatal error: Call to undefined function: dbquery() in z:\home\localhost\www\crysalis\theme.php on line 36

You have called a function that is not defined anywhere

[php]
ThisFunctionDoesNotExist();
[/php]
Jun 28 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.