Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have one last error on my Wordpress blog that I can't solve myself.

The searching for something without any results, the following error occurs

Warning: Missing argument 1 for get_page_id(), called in /var/www/titanen.dk/public_html/spillersmart/wp-content/themes/WPTube4/functions.php on line 262 and defined in /var/www/titanen.dk/public_html/spillersmart/wp-content/themes/WPTube4/functions.php on line 237

My functions.php file can be seen here http://spillersmart.dk/functions.txt

Do you guys know what could be wrong?

Thanks in advance

share|improve this question
    
What theme are you using? –  m0r7if3r Feb 16 '12 at 12:46
    
Not shure if I close vote with off topic or too localized. –  kaiser Feb 16 '12 at 14:29

1 Answer 1

You call $page_current_id = get_page_id(); in tube_getcustomfield(). Add a name to this call.

This isn’t exactly a WordPress question. ;)

share|improve this answer
    
I didn't know where else to ask, sorry :-) What do you mean by add a nem to my call? –  Torben Feb 16 '12 at 13:04
    
You cannot call a function with a required parameter without parameters. You could use get_page_id( get_the_title() ); or something similar, but leaving the call blank cannot work. The best place to ask PHP syntax questions is still Stackoverflow, I guess. –  toscho Feb 16 '12 at 13:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.