PDA

View Full Version : A lot of search engines are finding this page


kd6lor
20th of October 2004 (Wed), 19:22
A lot of search engines are finding this page and others like it and sending people to it. As you can see, it doesn't look good with all the errors. Any ideas about fixing the code so a direct link won't show up all these errors?

Here is the page so you can see the errors.
http://www.melor.com/gallery/lens.php?lens=14&exhibition=24

Paul


btw, I download my raw server logs, run them through a macro I created in Excel to sort the data to my preference, then scan through them looking for direct links and referrers. It is a lot of fun to see the search engine page that led a surfer to your site. I am amazed how high some of my pages are getting in the searches.

PJ

Pekka
24th of October 2004 (Sun), 11:51
There is uncookied variable array missing because the page is not opened by clicking a link in EE.

You can get rid of the notices by adding @ in front of each variable mentioned on error messages, e.g.

Notice: Undefined variable: sortby_off in /home/melor02/public_html/gallery/lens.php on line 75

is fixed by changing lens.php's line 75 from

"sortby_off" => $sortby_off,

to

"sortby_off" => @$sortby_off,

kd6lor
24th of October 2004 (Sun), 12:04
changed the code to:


$uncookied = array(
"sortby_off" => @$sortby_off,
"sort_row" => $sort_row,
"order" => $order,

Didn't seem to make a difference

Paul