Recent Topics

1 Jan 18, 2007 10:04    

Hello, placed a new post because nobody answers to my former post,
My problem: have installed an About page follwing the instructions from post http://forums.b2evolution.net/viewtopic.php?t=9981
it's all working but my about page displays only a "Warning message"

Warning: main(/home/meditate/public_html/personal-development/blog/skins/Nescafe/_aboutme.php) [function.main]: failed to open stream: No such file or directory in /home/meditate/public_html/personal-development/blog/skins/Nescafe/_main.php on line 205

Fatal error: main() [function.require]: Failed opening required '/home/meditate/public_html/personal-development/blog/skins/Nescafe/_aboutme.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/meditate/public_html/personal-development/blog/skins/Nescafe/_main.php on line 205


By controlling ling 205 in main.php can't find anything different from the instructions of the above hack.
So, what's happen need badly some advice have tried everything.

One more question: Where, in which folder should I upload my robots.txt page for SE's?

Thanks in advance
greetings
bwerner

2 Jan 18, 2007 11:04

Actually it seems your questions were being answered. If no one answers EVERY question it might be because no one has the answers. Also a link to the problem is a good idea, especially when asked for it. Finally, you're mixing up your hacks. You started with John's "disp=about" hack and ended with my "add disp = something" hack.

According to the error message you do not have a file called _aboutme.php in your skins/Nescafe/ folder. That file is called for on line 205 of your skins/Nescafe/_main.php file. The problem is not line 205: it is a problem executing the instruction on line 205.

bwerner in the other thread wrote:

notwithstanding that i've created a html file and edited it with the code of the above hack

That might be your problem. You can't tell line 205 to go get a php page then expect it to get an html page!

Do you have a link where we can see this problem?

As to the robots.txt thing: It's got nothing to to do with b2evolution, so [url=http://www.google.com/search?hl=en&q=robots.txt]googling it[/url] might be a good idea.

3 Jan 18, 2007 14:02

Okay, my link is :
http://personal-development.meditationsession.com/blog
but i doesn't mixed up the instructions, I followed straight this hack
http://forums.b2evolution.net/viewtopic.php?t=9981

If my question were answered i didn't would ask again, it's especially because my question weren't answered to the end, - it was suspendet and nobody answers anymore- , that I ask again.

I've an Aboutme.php in my skin folder, and've tried both - html as text file-, but the warning message is still the same.
The code that I put into my main.php was the same like in the above hack

// 
// MOD: Add a disp=something page 
// 
      case 'something': 
         // this includes the something page if requested 
         require( dirname(__FILE__).'/_something.php'); 
         break; 
// 
// END MOD: Add a disp=something page 
// 


while i've replaced "something page" with "aboutme page".
Have controlled several times the code and it seems all like it were written in the above hack.

Cannot understand what's going on there?

As about the robot.txt page it is not a question of googling this, but instead
a question to know which between that much of folders from my blog is the one that'll be crowled to get the blog indexed.

4 Jan 18, 2007 14:56

Robots.txt will tell good robots to not look in certain folders, but robots follow links - they don't look for folders. So telling them to stay out of /inc/ is pointless unless you happen to link to your inc folder.

Anyway no: in another thread you talked about using John's hack. In this thread you talk about using my hack. They're different, but you consider this thread a continuation of that thread. That doesn't make sense because you can't be using both and expect it to work. No one had an answer in the other thread is why the answer didn't happen. Plus I gotta tell you: it's a lot nicer if you post a reply to the topic for the hack you're trying to use instead of starting a new one, but I digress. Since we're here I'll try to help.

Try renaming your "aboutme.php" file to "_aboutme.php" and see what it gets you. Near as I can tell by poking around your URL (and thank you for the link!) that is the problem. In skins/yourskin/_main.php you call for _aboutme.php, but in reality you have a file called aboutme.php in the correct folder. See http://personal-development.meditationsession.com/blog/skins/Nescafe/aboutme.php for why I think that is the case. If you try to access http://personal-development.meditationsession.com/blog/skins/Nescafe/_aboutme.php you get an error page instead of the "please do not access this page directly" message.

So it should be as simple as renaming "aboutme.php" to "_aboutme.php".

Hope it helps!!!

5 Jan 18, 2007 16:43

Yes, that was the problem, everything is fine now
thank you a lot

I've cited in my other post John's hack by mistake on the Url, but was using everytime your hack, and never considered it a continuation of the other, okay it's over now, my mistake!!!!

I did not know that I've to use to reply to that topic that I want use, sorry for that.
My question about the robot.txt arises because have uploaded it to my skin folder "Nescafe" but get always error messages on my stats from crawlers searching for my robot.txt file, so I get unsure if it is the right place, but it should be.

Thanks again
bwerner

8 Jan 19, 2007 13:40

Glad you got it all straightened out!


Form is loading...