WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – mor7ifer 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

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


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.