Search This Blog

Thursday, March 19, 2009

Failed opening required 'wp-blog-header.php' while using cformsII wordpress plugin


All right, so I was trying to insert a cforms II contact form in Wordpress 2.7.0 Installation and was facing this error in a pop-up dialog box:
Warning: require_once(wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/wisdom/public_html/prashna/wp-content/plugins/cforms/js/insertdialog25.php on line 9

Fatal error: require_once() [function.require]: Failed opening required 'wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wisdom/public_html/prashna/wp-content/plugins/cforms/js/insertdialog25.php on line 9

I ignored it for a little while, but a point came when I had to really get it going. As everyone else, I googled it. The first 3-5 pages of it are sheer nonsensical links of websites facing the same error, but without solution. Then finally, I hit upon a support forum of cforms II, which suggested many things.


This is what worked for me. Apparently, the abspath.php was MISSING from the cforms plugin directory: [~]# find . -name abspath.php
./public_html/mantra/wp-content/plugins/cforms/abspath.php [~]# find . -name cforms

# cp ./public_html/mantra/wp-content/plugins/cforms/abspath.php \

And everything was golden..

Thanks to that, I was able to have a contact form like this in the wordpress page:


No comments:

Post a Comment