| Enjoy reading this post and subscribe to Bontb RSS Feeds |
This question came from Diana via Ask Bontb Email
Today I was trying to install TNX in my wordpress account. By following your
tutorial “http://www.bontb.com/2007/10/how-to-install-tnx-code-in-wordpress/“.But I got this error
Warning: main(’tnxphp’) [function.main]: failed to open stream: No such
file or directory in
…..artegami.com/wp-content/themes/diana_notso_fresh_sp/sidebar.php
on line 112Line 112 is were I placed <?php include(’tnx.php‘) ?>
Any idea why I am getting this error?
If you can help me with this, I’ll be more than happy to place a link to your
blog.
Answer:
Diana as it looks like the sidebar.php does not know where the tnx.php file is, also your file might have “thxphp” name without any extension.
1. Make sure tnx.php file is in the theme directory in your case /themes/diana_notso_fresh_sp/tnx.php
2. Make sure when you created file that name is tnx.php, or you can even name it diana.php file as long as the name matches in the include php code
Examples:
Filename:tnx.php should be <?php include(’tnx.php‘) ?>
Filename:diana.php should be <?php include(’diana.php‘) ?>
Hope this helps resolving your problem.


1 person has left a comment
Hey, tnx for this post!I was having problems to, but now i see you wrote a nice post about installing tnx.net, gonna check it.