The requested URL/gbook.php was not found on this server

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
catnhat
Posts: 5
Joined: Tue Dec 11, 2012 4:04 am

The requested URL/gbook.php was not found on this server

Post by catnhat »

Script URL: ?
Version of script: 1.6 or 1.7
Hosting company: www.limedomains.com
URL of phpinfo.php: URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: "php file not found"

Write your message below:

After a small change in the layout of my Guestbook page, I uploaded just the HTML of that page and found that I had lost my guest entries.

http://www.pleasuresofthepipes.info/gbook.html

The php file is still in its proper place, nothing has changed.

http://www.pleasuresofthepipes.info/gbook/gbook.php

What is wrong with the path? I upgraded from 1.6 to 1.7 (I use WYSIWYG Web Builder) but still the same. I made back-ups and deleted all guestbook files from the server and re-installed the guestbook files.. still the same. Help! Thanks!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: The requested URL/gbook.php was not found on this server

Post by Klemen »

Your layout is trying to open
http://www.pleasuresofthepipes.info/gbook.php

And not
http://www.pleasuresofthepipes.info/gbook/gbook.php

You will need to correct the iframe URL.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
catnhat
Posts: 5
Joined: Tue Dec 11, 2012 4:04 am

Re: The requested URL/gbook.php was not found on this server

Post by catnhat »

How do I correct the iframeURL?

Both the iframe Properties box and the settings.php file show the following, see TEST page:

http://www.pleasuresofthepipes.info/TEST.html

Where else do I correct the path?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: The requested URL/gbook.php was not found on this server

Post by Henrie »

in the gbook.html page is this code

Code: Select all

<iframe style="border-color:#000000;border-style:solid;border-width:1px;position:absolute;left:253px;top:392px;width:600px;height:400px" src="./gbook.php" frameborder="0"></iframe>
It does not reflect the screenshot you show. You must change the src="./gbook.php" to src="http://www.pleasuresofthepipes.info/gbook/gbook.php" . Better to not use relative paths in iframes.
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
catnhat
Posts: 5
Joined: Tue Dec 11, 2012 4:04 am

Re: The requested URL/gbook.php was not found on this server

Post by catnhat »

Hello Henrie, The code did not reflect the screenshot I showed as it was a quickie clone of the Guestbook page with the guestbook extension deleted. Just a page to drop on the two .png images. However, I opened the Guestbook HTML in Notepad and corrected the path as you suggested and uploaded it. All is fine now. Thanks!!
(Henrie, formerly from Holland, in Canada since 1966)
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: The requested URL/gbook.php was not found on this server

Post by Henrie »

Great yhat you got it working.
I have some family in Canada. The sister of my granddmother lives there. I don't know when she moved there. But it was a long time ago. My father and mother go visit family there every four years.

Groeten,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
catnhat
Posts: 5
Joined: Tue Dec 11, 2012 4:04 am

Re: The requested URL/gbook.php was not found on this server

Post by catnhat »

Hi Henrie,

I am still puzzled why my guestbook did not show up in the iframe. Following the instructions that came with the zipfile, I opened the iframe properties box and filled in all required info, including the path to the guestbook.php file. Then I opened the settings.php and filled in all required info there, including the path to the guestbook.php file. Should that not have been enough? I did not think I would have to open up my Guestbook HTML page in Notepad to correct the path. And I'm sure I saved every step. Still puzzled. Henrie
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: The requested URL/gbook.php was not found on this server

Post by Klemen »

That is indeed enough if you use guestbook directly, for example if open this URL:
http://www.pleasuresofthepipes.info/gbook/gbook.php

But in your case you were calling it from an iframe and the URL there was wrong. The iframe is not something that comes with GBook, it was in your website.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
catnhat
Posts: 5
Joined: Tue Dec 11, 2012 4:04 am

Re: The requested URL/gbook.php was not found on this server

Post by catnhat »

That explains it. Thanks!
Post Reply