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´m using WPAlchemy which is a helper class for metabox creation. I´m trying to include it through my functions.php but I´m getting strange errors when I have WP_Debug set to true.

For some reason Wordpress is including a lot of stuff in the url that it shouldn't, this is the warning I get.

Warning: include_once(/customers/d/d/4/mydomain.com/httpd.www/nysida/wp-content/themes/aaa/WPAlchemy/MetaBox.php): failed to open stream: No such file or directory in /customers/d/d/4/mydomain.com/httpd.www/nysida/wp-content/themes/aaa/functions.php on line 58 Warning: include_once(): Failed opening ‘/customers/d/d/4/mydomain.com/httpd.www/nysida/wp-content/themes/aaa/WPAlchemy/MetaBox.php’ for inclusion (include_path=’.:/usr/share/php’) in /customers/d/d/4/mydomain.com/httpd.www/nysida/wp-content/themes/aaa/functions.php on line 58 Notice: Use of undefined constant   – assumed ‘ ’ in /customers/d/d/4/mydomain.com/httpd.www/nysida/wp-content/themes/aaa/header.php on line 53

What´s up with the strange url?

share|improve this question
Can you post your include code as well? And maybe some background on your WP install? – Zach Lysobey Jun 11 '12 at 14:27
and can you maybe break that Warning: code up onto multiple lines to make it easier to read? – Zach Lysobey Jun 11 '12 at 14:28
that URL isn't a URL, it's the server path – Milo Jun 11 '12 at 14:31

When I've used WPAlchemy, the instructions have me put the WPAlchemy directory directly into the wp-content folder - not the theme folder. It looks like your include code points to your theme directory. All the other stuff in the path is specific to your host, and probably not part of the problem.

share|improve this answer

I trialed-and-errored my way to a solution that worked. Still don´t know exactly why this error occured, I did have the WPAlchemy class in the wp-content folder. Anyway it seems to work now and I´m not getting any errors.

Thanks for answering.

share|improve this answer

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.