Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Something Strange.

Quote Reply
Something Strange.
Something very wierd is happening.

When I update my directory from within admin, everything builds ok. (The Links work fine by the way).
But if I go to
http://mydomain.com/directory

I get an old version of the directory, not showing all the updates I have just made.

If I go to
http://mydomain.com/directory/index.html
It works fine, all the new links are there, and it updated fine.
This is even more annoying as it does it for every page, categories, and sub-categories.
If I leave out the index.html it shows the old, and if I put it in it shows the new.

Also, (this might be to do with this problem) but If I do a search, it will come up with 3 links, but none of them will appear.

Anyone know whats happening? And other people are having the same problem, on my directory that is.

McPhilly

Quote Reply
Re: Something Strange. In reply to
You have either not cleared your browsers cache properly or have not refreshed, or you have recently changed the extension of the built pages and so the old ones are showing first. If that is the case you will need to delete all the old pages.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Something Strange. In reply to
Nope, old pages don't exist. Checked through CuteFTP and all the pages in there are the new ones.
I cleared my cache, cookies and temp internet files, and still have the problem.

And others having the same problem to. They see the old version unless I (or them) type in the index.html extensions.

McPhilly

Quote Reply
Re: Something Strange. In reply to
I was just about to come and show you the two URL's but it seems to have fixed itself (3 Hours late might I add).

But Search still doesn't work. It says
Your search returned 0 categories and 2 Links.

then
Pages:

But no links.

This is real strange, I have a ghost on my ISP.

Any ideas what the first problem could have been, and any ideas how to fix the search results.?
I will go searching now...

McPhilly

Quote Reply
Re: Something Strange. In reply to
Yea...most likely you have hacked the search_results.html file via a WYSIWYG editor, like Front Page or Dreamweaver, without preserving the EXACT format of tags in that file.

You need to use:

Code:

<%if link_result%>
<%link_results%>
<%endif%>


AND

Code:

<%if category_results%>
<%category_results%>
<%endif%>


See...tags on separate lines???

OR you can install the Enhanced Template.pm code hack listed in the Resources section of this site, which allow tags to be placed on one line, like the following:

Code:

<%if link_results%><%link_results%><%endif%>


AND

Code:

<%if category_results%><%category_results%><%endif%>


For more information about this problem, search the forums for tag problems.

----this is definitely a repeat-------------

Regards,

Eliot Lee
Quote Reply
Re: Something Strange. In reply to
Dreamweaver yeh,
And after checking the origional templates I figured that that could be the problem.
Thanks mate,
Still, about the updating problem, you got any ideas?

McPhilly

Quote Reply
Re: Something Strange. In reply to
Make sure that your template files are READABLE and WRITABLE minimally by the Everyone user. You will need to work more closely with your hosting company to make sure that you have the proper permissions on all your files and folders.

Also, if your hosting company has turned off non-parsed header files, then I would suggest implementing the NPH (yes, click on the link) code changes mentioned numerous times in the Links 2.0 Installation forums.

Regards,

Eliot Lee
Quote Reply
Re: Something Strange. In reply to
Urr.. That flew over my head and into the sea.

I use F2S.com, someone else must also use them. I tried making them readable and writable for everyone, didn't work, tried just readable, didn't work.
What is non-parsed header files? Anyone know if F2S have turned them off?
Im going to look at installation forum now.

And another thing, since this morning the problem has reversed.
Directory/ now shows new
Direcotry/index.html shows old.

lol, annoying!!

McPhilly
http://www.floppycd.f2s.com/directory
http://www.floppycd.f2s.com/directory/index.html

It works after a few hours, but you should be able to see the difference for the next hour or so.

Quote Reply
Re: Something Strange. In reply to
Okay...looks like your directory is "re-building"...

Here are some other possible problems:

1) Do you have another default file in your directory folders??? If so, then you need to delete the old default file and leave the index.html files in the folders.

2) Have you edited the files in the directory folder and uploaded them without simply using nph-build.cgi script? If so, then, of course, the files will not be updated properly.

And, yes, other users on FS2 have reported problems. And are you sure that you are on a Windows NT server? Because from what I've read of other people's problem, they are on UNIX servers at FS2.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: Something Strange. In reply to
Hey,

1) No I don't, just double checked to make sure.

2) I use the Site Templates from within Links2.0 admin to change the look of the pages, is that what you meant?

And Yes I use windows, Im not sure if its possible, but I think it is taking a while for the server's to refresh with the new information. Could this be the problem?
On a good day it will be ok within 30 minutes, but on other days it can take 4 hours. Im not totally bothered by it, but as you can imagine, it is an annoying little thing. :)

Well, thanks for all your help,

Regards,
McPhilly

Quote Reply
Re: Something Strange. In reply to
Here are some obvious questions, which have not been asked yet:

1) How many links do you have in your links.db and categories.db files?
2) What is the size of both of the files (e.g, 500 KB, 1.0 MG, what?)??

Because if it is taking "four hours" or "30 minutes" to re-build your directory, then the problem could be is that your database files are too large. Anything above 1.0 MGs will cause problems in administrating, searching, and voting for links in your directory.

Regards,

Eliot Lee
Quote Reply
Re: Something Strange. In reply to
In Reply To:
Im not sure if its possible, but I think it is taking a while for the server's to refresh with the new information. Could this be the problem?
I doubt it. If it is taking 4 hours to update then I'd find a new host - I can't think why it would take this long - it should happen in realtime.

You could always delete your pages directory and rebuild from scratch.

#!/usr/bin/perl

use CGI qw(:standard);

$path = "/PATH/TO/BUILT/PAGES/";

`rm -r $path`;

print header;

print "DONE";

That code will delete the pages for you.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Something Strange. In reply to
In answer to how many links and how large are files:

Categories.db: 2kb
Links.db: 3kb

I have 12 links, lol, just started though, gimme a chance :)

That code, where do I put it? I will try that and see if it works, once I know where to put it :)

And if the problem persists still I may think about moving host, even better, I will test the Links on another host to see if I have the same problem.

Regards,
McPhilly

Quote Reply
Re: Something Strange. In reply to
You put that code into a new file and call it remove.cgi or whatever - then upload it to your server, chmod it to 755 and go to http://www.yourdomain.com/remove.cgi

Make sure you get the path right in $path or you'll end up deleting a whole load of stuff you don't want to delete Smile

If you only have a few category pages then it isn't even worth using that code - just delete them manually.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Something Strange. In reply to
Ok, will try that later or tomorrow and will let you know if it worked. Thanks,

Regards,
McPhilly

P.s, Wierd though isn't it :)

Quote Reply
Re: Something Strange. In reply to
f2s.com host servers's use cobalt machine's and as such use cgiwrap...and as people no cobalt and some scripts don't mix...its a wonder ya got links2 going at all...unless you already remove $nph from nph-build.cgi? anyway the is a faq here about cobalt..suggest you have a look.

Admittedlamb.

Quote Reply
Re: Something Strange. In reply to
First to Paul.

I tried that, deleting the pages and categories etc through FTP. But even though they were not existent on the server according to CuteFTP and Dreamweaver's FTP, the pages still worked online.
So I tested with my site, deleted my site of my server so nothing was there at all. Went to my site (while it wasn't supposed to be there) and it was.
Something real wierd with F2S, not only does the directory take hours and hours to update, the actual site does also. More than 24 hours it took on friday.

Told you it was strange.

To Admittedlamb.

Its a wonder how I got it working, urr... oh.
No I haven't removed $nph from nph-build.cgi should I? Although, I doubt this would solve my problem.
All I can do now, is either live with it, or move host..

Regards,
McPhilly

Quote Reply
Re: Something Strange. In reply to
Hmm sounds strange to me - not normal.

Every server I have used has updated file/directory modifications in real-time.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/