Category: Blog Tips Tricks — BONTB @ 9:20 pm — Comments (1)
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 112

Line 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.

Diana’s Blog

1 person has left a comment

#1

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.

MG wrote on December 12, 2007 - 1:31 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.