Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Who's Online shows everyone on page_not_found

Who's Online shows everyone on page_not_found

Locked

Started by shirster on 24 Jul 2007, 10:39 AM · Views: 2,805

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
24 Jul 2007, 10:39 AM
#1
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Post #1 by shirster

Hi all,

Since a few days ago the Who's Online page in my admin has been showing everyone on the page_not_found page, although it cannot be true because my friend and I were both on some product info pages at the time.

I can only remember adding a couple of pages (namely, popup_image, popup_image_additional, popup_search_help and product_reviews_write) to the ROBOTS_PAGES_TO_SKIP section in my meta_tags.php file before this happened. But it could also be something else that I don't remember.

Where should I look to see what caused this problem?

The site in question is http://www.HelpTheAbandoned.com

Thanks in advance !
Shirley :)

24 Jul 2007, 11:14 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

shirster:

I can only remember adding a couple of pages (namely, popup_image, popup_image_additional, popup_search_help and product_reviews_write) to the ROBOTS_PAGES_TO_SKIP section in my meta_tags.php file before this happened.Why not try undoing those changes and see whether that helps? (ie: put back the original line)

shirster:

But it could also be something else that I don't remember.

Where should I look to see what caused this problem?If you've not kept a list of things you've changed, or haven't been taking regular backups between changes, then you may have to figure it out with a comparison tool, using a process similar to this one:
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Jul 2007, 12:16 PM
#3
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Post #3 by shirster

Hmmm something strange is going on here...

This problem seems to be happening with Safari only...

  1. When I'm using Safari and I have one tab on the who's online page and one tab on any shop page, the who's online list shows that I'm on page_not_found.

  2. Still using Safari, I open a new tab and browse to any shop page, the who's online list shows that I'm on the correct shop page. But if I refresh the list, it would now say that I'm on the page_not_found page, although the new tab is still on the same shop page.

  3. Using Firefox, everything works fine.

  4. I tried undoing the changes I did in the meta_tag.php file and did not solve the problem.

  5. I now remember another change that I did before this happened. I used to set all 404s to return to the index page. And a few days ago I set all 404s to go to the page_not_found page.

I'll keep trying to figure it out and report back.

Shirley

28 Jul 2007, 12:53 PM
#4
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Post #4 by shirster

Haven't solved my problem yet, and it looks like the problem happens to visitors using IE too... :(

(Which means that my Who's Online List only works for Firefox visitors or bots...)

Shirley

27 Aug 2007, 5:23 PM
#5
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #5 by stillrowing

shirster:

Haven't solved my problem yet, and it looks like the problem happens to visitors using IE too...
(Which means that my Who's Online List only works for Firefox visitors or bots...)

I am using v1.3.7

I have been trying to resolve this issue since the end of July, when I launched my site, but without success; my observations are:

IE
All hits recorded as page_not_found.

FIREFOX AND OPERA
All pages which include a product listing (all my subcategories and one listing under a main category page) are recorded as page_not_found.

The remaining main category pages, the products pages and all the 24 "defined" pages are recorded correctly.

I see that the last posting on this subject was about a month ago. Does anyone have a solution or a pointer?

The pages are at www.iangrantofedinburgh.com

27 Aug 2007, 5:39 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

What redirects have you configured in your .htaccess files ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Aug 2007, 10:25 PM
#7
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #7 by stillrowing

DrByte:

What redirects have you configured in your .htaccess files ?

Rewrites that deal only with the defined pages and which correctly record in the whos online report (in Firefox and Opera). There are no rewrites/redirects for the category or product pages.

28 Aug 2007, 1:57 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

Can you be more specific ? ie: post them

Or turn them all off altogether and report back whether the whos-online suddenly starts showing things properly again ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Aug 2007, 10:42 AM
#9
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #9 by stillrowing

DrByte:

Can you be more specific ? ie: post them

Or turn them all off altogether and report back whether the whos-online suddenly starts showing things properly again ?

Rewrite rules below.

I have :

  1. altered site so that all internal links operate without the htaccess rewrites
  2. temporarily turned off the rewrite rules

No change in who online: page_not_found is still being recorded for all IE hits and for all Firefox/Opera hits on pages with product listing.

# html pages now incorporated in zen-cart
RewriteRule ^index_about\.html$ index.php?main_page=index_about_ig
RewriteRule ^index_qc\.html$     index.php?main_page=index_qc
RewriteRule ^index_lk\.html$    index.php?main_page=index_lk
RewriteRule ^price_list\.html$    index.php?main_page=pricelist
RewriteRule ^cw\.html$            index.php?main_page=page_2
RewriteRule ^tos\.html$         index.php?main_page=page_3
RewriteRule ^returns\.html$     index.php?main_page=page_4
RewriteRule ^contact_us\.html$    index.php?main_page=contact_us
RewriteRule ^heraldry\.html$    index.php?main_page=heraldry
RewriteRule ^hy_bs\.html$        index.php?main_page=hy_bs
RewriteRule ^hy_cb\.html$        index.php?main_page=hy_cb
RewriteRule ^hy_oa\.html$        index.php?main_page=hy_oa
RewriteRule ^engraving\.html$    index.php?main_page=engraving
RewriteRule ^en_pd\.html$        index.php?main_page=en_pd
RewriteRule ^en_mg\.html$        index.php?main_page=en_mg
RewriteRule ^en_he\.html$        index.php?main_page=en_he
RewriteRule ^en_hy\.html$        index.php?main_page=en_hy
RewriteRule ^en_cb\.html$        index.php?main_page=en_cb
RewriteRule ^en_rg\.html$        index.php?main_page=en_rg
RewriteRule ^en_cw\.html$        index.php?main_page=en_cw
RewriteRule ^prin_th_ck\.html$    index.php?main_page=prin_th_ck
RewriteRule ^prin_th_th\.html$    index.php?main_page=prin_th_th
RewriteRule ^prin_th_za\.html$    index.php?main_page=prin_th_za
RewriteRule ^prin_th_ac\.html$    index.php?main_page=prin_th_ac
RewriteRule ^prin_th_ag\.html$    index.php?main_page=prin_th_ag
28 Aug 2007, 12:28 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

Peculiar.
I'd be inclined to suspect something "else" in your .htaccess besides just the rewrites.

Were all your additional "pages" built by adding language files, header_php.php module files and extra template files ?

Could it be that your custom stylesheet rules for IE browsers might be pointing to a non-existent file and thus is throwing the page-not-found whenever IE browsers trigger them ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Aug 2007, 3:55 PM
#11
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #11 by stillrowing

DrByte:

I'd be inclined to suspect something "else" in your .htaccess besides just the rewrites.
...
All the additional "pages" have the full quota of supporting files and I could not identify any issues with the IE stylesheet rules.

So I then removed everything in my htaccess file and then started to rebuild it. The "something else" was:

ErrorDocument 404 http://www.iangrantofedinburgh.com/page_not_found.php
Removing this, and only this, had solved the problem with IE, Firefox and Opera. I then replaced it with
ErrorDocument 404 /page_not_found.php
... and the problem remains solved, but I wonder why?

Many thanks for your help

28 Aug 2007, 5:40 PM
#12
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #12 by stillrowing

DrByte:

I'd be inclined to suspect something "else" in your .htaccess besides just the rewrites.
...
All the additional "pages" have the full quota of supporting files and I could not identify any issues with the IE stylesheet rules.

So I then removed everything in my htaccess file and then started to rebuild it. The "something else" was:

ErrorDocument 404 http://www.iangrantofedinburgh.com/page_not_found.php
Removing this, and only this, had solved the problem with IE, Firefox and Opera. I then replaced it with
ErrorDocument 404 /page_not_found.php
... and the problem remains solved, but I wonder why?

Many thanks for your help

28 Aug 2007, 7:48 PM
#13
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #13 by website_rob

stillrowing:

Rewrite rules below.

I have :

  1. altered site so that all internal links operate without the htaccess rewrites
  2. temporarily turned off the rewrite rules

No change in who online: page_not_found is still being recorded for all IE hits and for all Firefox/Opera hits on pages with product listing.

html pages now incorporated in zen-cart

RewriteRule ^index_about.html$ index.php?main_page=index_about_ig
RewriteRule ^index_qc.html$ index.php?main_page=index_qc
RewriteRule ^index_lk.html$ index.php?main_page=index_lk
RewriteRule ^price_list.html$ index.php?main_page=pricelist
RewriteRule ^cw.html$ index.php?main_page=page_2
RewriteRule ^tos.html$ index.php?main_page=page_3
RewriteRule ^returns.html$ index.php?main_page=page_4
RewriteRule ^contact_us.html$ index.php?main_page=contact_us
RewriteRule ^heraldry.html$ index.php?main_page=heraldry
RewriteRule ^hy_bs.html$ index.php?main_page=hy_bs
RewriteRule ^hy_cb.html$ index.php?main_page=hy_cb
RewriteRule ^hy_oa.html$ index.php?main_page=hy_oa
RewriteRule ^engraving.html$ index.php?main_page=engraving
RewriteRule ^en_pd.html$ index.php?main_page=en_pd
RewriteRule ^en_mg.html$ index.php?main_page=en_mg
RewriteRule ^en_he.html$ index.php?main_page=en_he
RewriteRule ^en_hy.html$ index.php?main_page=en_hy
RewriteRule ^en_cb.html$ index.php?main_page=en_cb
RewriteRule ^en_rg.html$ index.php?main_page=en_rg
RewriteRule ^en_cw.html$ index.php?main_page=en_cw
RewriteRule ^prin_th_ck.html$ index.php?main_page=prin_th_ck
RewriteRule ^prin_th_th.html$ index.php?main_page=prin_th_th
RewriteRule ^prin_th_za.html$ index.php?main_page=prin_th_za
RewriteRule ^prin_th_ac.html$ index.php?main_page=prin_th_ac
RewriteRule ^prin_th_ag.html$ index.php?main_page=prin_th_ag


You cannot use **RewriteRule** directives without including this line first: **RewriteEngine ON**
 - by default it is OFF

Without that line you will get strange things happening, such as what has been described. 

It is also customary to use a full URL for redirecting to: 
<http://yourdomain.com/index.php?main_page=index_about_ig>


You do not normally need to setup anything special for 404 pages. Hosters usually have automatic redirection to an 'shtml' page -- which you can find out more from your Hoster -- but  Zen Cart includes code for using a default, ZC supplied 404 page.

The learning is in the doing.

Potent Products

28 Aug 2007, 9:38 PM
#14
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #14 by stillrowing

Website Rob:

You cannot use RewriteRule directives without including this line first: RewriteEngine ON

  • by default it is OFF

You do not normally need to setup anything special for 404 pages. Hosters usually have automatic redirection to an 'shtml' page --

RewriteEngine On is in place - I just did not include that in my summary.

Without the 404 redirect line I was getting the standard Apache page

28 Aug 2007, 10:07 PM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #15 by website_rob

stillrowing:

Without the 404 redirect line I was getting the standard Apache page
Not sure what you mean by that?

And don't forget, use a full URL like I mentioned previously, instead of the short form you use now.

RewriteRule ^index_about.html$ http:/yourdomain.com/index.php?main_page=index_about_ig

The learning is in the doing.

Potent Products

31 Aug 2007, 11:39 AM
#16
fred9v avatar

fred9v

New Zenner

Join Date:
Nov 2006
Location:
Quebec, Canada
Posts:
32
Plugin Contributions:
0

Post #16 by fred9v

I'm having the same issue. Any real user online will appear as being on the page_not_found except for spiders.

For the info, the whos_online page will work just fine if I remove the ErrorDocument 404 line but then I get default Apache error page...

Here's the content of my .htaccess

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.anaddondomain.com



Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.(.*)
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mysite.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3)$ - [F,NC]



ErrorDocument 404 http://www.mysite.com/index.php?main_page=page_not_found

Note that I've removed Frontpage extensions a while ago from my server but since I almost know nothing about .htaccess files, I just let the line there. If anyone could tell me what's wrong, that would be greatly appreciated!

Again, I have no clue about what those codes all mean except for the FollowSymLinks and the ErrorDocument 404. If someone feels in the mood to explain it to me or suggest that I delete unnecessary content, I'll be glad to try any suggestions so that I can get the whos_online page working again!

1 Sep 2007, 10:01 AM
#17
stillrowing avatar

stillrowing

New Zenner

Join Date:
Jun 2007
Posts:
28
Plugin Contributions:
0

Post #17 by stillrowing

Fred9V:

I'm having the same issue. Any real user online will appear as being on the page_not_found except for spiders.

For the info, the whos_online page will work just fine if I remove the ErrorDocument 404 line but then I get default Apache error page...

Re-writing the ErrorDocument line to read as below solved my problem:

ErrorDocument 404 /index.php?main_page=page_not_found

1 Sep 2007, 6:41 PM
#18
fred9v avatar

fred9v

New Zenner

Join Date:
Nov 2006
Location:
Quebec, Canada
Posts:
32
Plugin Contributions:
0

Post #18 by fred9v

I'm afraid this solution doesn't work for me...

Anyone else?

25 Nov 2007, 2:15 AM
#19
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Post #19 by pixelpadre

wow this just started to happen to me for no reason and I fixed using the advice from stillrowing. thank you.

The question now is why did it start

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

25 Nov 2007, 2:22 AM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #20 by ajeh

What version of Zen Cart are you running?

Clean install or an Upgrade?

How did you install? How did you Upgrade?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!