473,395 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

404 errors

I don't know which is the best newsgroup for this, so I put it into three.

I have several sites that are working perfectly. When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000). This is only for sites where I have added the
php coding for the server code. Other sites from this same web company
that do not have php do not have the 404 errors.

Again, there seems to be no error in the operation of the sites where
these errors are being counted. Does anyone have an idea as to what may
be happening here?
Jun 27 '08 #1
12 1025
sheldonlg wrote:
I don't know which is the best newsgroup for this, so I put it into three.

I have several sites that are working perfectly. When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000). This is only for sites where I have added the
php coding for the server code. Other sites from this same web company
that do not have php do not have the 404 errors.

Again, there seems to be no error in the operation of the sites where
these errors are being counted. Does anyone have an idea as to what may
be happening here?
I did a little experiment. Going from page to page on this one site
did not produce any additional 404 errors so long as I stayed with html
pages. When I clicked on a menu item that took me into the shopping
card (Zen Cart), the 404 count increased by 7. If I clicked on a Zen
Cart menu item (different category), then it also increased by 7. Since
Zen Cart is written in php, and this doesn't happen in straight html
pages, and I didn't code the Zen Cart application, I am led to believe:

1 - It has something to do with php
2 - I didn't make an coding error to produce these 404 errors.
Jun 27 '08 #2
Els
sheldonlg wrote:
I did a little experiment. Going from page to page on this one site
did not produce any additional 404 errors so long as I stayed with html
pages. When I clicked on a menu item that took me into the shopping
card (Zen Cart), the 404 count increased by 7. If I clicked on a Zen
Cart menu item (different category), then it also increased by 7. Since
Zen Cart is written in php, and this doesn't happen in straight html
pages, and I didn't code the Zen Cart application, I am led to believe:

1 - It has something to do with php
2 - I didn't make an coding error to produce these 404 errors.
I think your first next step is to check the error logs to see *which*
pages/files are being called that generate a 404. Then find where in
the code they are called, and figure out why they give a 404.

Could be as simple as a certain directory or set of files not having
the right permissions. Some scripts need to generate new files (cache
for example), which are then called from the same script later. If the
permission on the folder didn't allow the file to be created, it will
not be present when it's called again either, generating a 404.

Switching PHP error notification on might also give a clue straight
away if the above is the case.

Another common cause is images. Images you don't miss because you
never saw them, but which are still called by the script.

--
Els http://locusmeus.com/
Jun 27 '08 #3
Scripsit sheldonlg:
I don't know which is the best newsgroup for this, so I put it into
three.
Wrong move. The correct move is to think and study until you know the
right group. You could start from reading the group descriptions, or at
least their names.

Followups trimmed to alt.html, in which this issue is least off-topic
(maybe even on-topic by some definition).
I have several sites that are working perfectly.
But you don't reveal the URL of any of them. Anyway, you have
effectively said just that you are a self-confident and do not see the
problems that your sites have. Nothing about reality, just your
attitude.
When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000).
So is this part of "working perfectly"?

And what _are_ these 404 errors? Any site that really works and is used
to some extent will get 404 errors to some extent, just because people
mistype URLs or set up broken links to your site.

But naturally you can greatly increase their number by "redesigning" the
site and changing all or most URLs. Many organizations do this every two
or three years, spending quite a lot of time, money, and effort in
breaking the site badly. Did you do that?
This is only for sites where I have added
the php coding for the server code.
You're not saying what you have actually done, and you don't even tell
the site URL. Do you _really_ expect to get useful help, or are you just
trolling?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 27 '08 #4
Jukka K. Korpela wrote:
Scripsit sheldonlg:
>I don't know which is the best newsgroup for this, so I put it into
three.

Wrong move. The correct move is to think and study until you know the
right group. You could start from reading the group descriptions, or at
least their names.
I subscribe to these three sites and regularly read and post to these
sites. I don't know whether this best falls into the alt.html or the
comp.lang.php. I also included the javascript on the chance that this
is what is causing it (less likely)
>
Followups trimmed to alt.html, in which this issue is least off-topic
(maybe even on-topic by some definition).
Frankly, I think that the comp.lang.php is the best group for this.
Others in comp.lang.php have offered php reasons for this. This
illustrates my point of not limiting it to one newsgroup.
>
>I have several sites that are working perfectly.

But you don't reveal the URL of any of them. Anyway, you have
effectively said just that you are a self-confident and do not see the
problems that your sites have. Nothing about reality, just your attitude.
Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these 404
s -- that the user does NOT see! Confident? Yes. You want a URL?
Fine. Here is one: www.peglegsurf.com. I don't know how that will
help you, but there it is.
>
>When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000).

So is this part of "working perfectly"?
The user sees what he is supposed to see and doesn't see any 404 errors.
>
And what _are_ these 404 errors? Any site that really works and is used
to some extent will get 404 errors to some extent, just because people
mistype URLs or set up broken links to your site.
See my experiment that I posted as a self-reply. These are not coming
from mis-typing of URLs. Seven are added with each new php page -- and
from within Zen Cart as well.
>
But naturally you can greatly increase their number by "redesigning" the
site and changing all or most URLs. Many organizations do this every two
or three years, spending quite a lot of time, money, and effort in
breaking the site badly. Did you do that?
This was a new site. There was no redesign.
>
>This is only for sites where I have added
the php coding for the server code.

You're not saying what you have actually done, and you don't even tell
the site URL. Do you _really_ expect to get useful help, or are you just
trolling?
Yes, I would hope to bear upon the wide experience of this group to
possibly give or suggest and answer. I don't troll.
Jun 27 '08 #5
Rik Wasmus wrote:
sheldonlg wrote:
>I don't know which is the best newsgroup for this, so I put it into
three.

I have several sites that are working perfectly. When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000). This is only for sites where I have added
the php coding for the server code. Other sites from this same web
company that do not have php do not have the 404 errors.

Again, there seems to be no error in the operation of the sites where
these errors are being counted. Does anyone have an idea as to what
may be happening here?

Just check the URLS of those 404's. Most common is some mod_rewrite
rules going haywire, of just lousy url-creation. The worst case I ever
saw was defaulting to a 404 .php page when calling an html page, and
thus providing a different URL for the content, horrible.

Then again, 404's are about the least interesting errors if everything
works OK for the users. Who cares if spiders can't find robots.txt,
browsers no favicon.ico or no index.html?
Thanks Rik. Once again you were a big help. The problem was the calling
of images that were not there. I really don't want those images. I
will have to muck around in Zen Cart code to not call those images.
Jun 27 '08 #6
sheldonlg wrote:
>>I have several sites that are working perfectly.

Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these 404
s -- that the user does NOT see! Confident? Yes. You want a URL?
Fine. Here is one: www.peglegsurf.com. I don't know how that will
help you, but there it is.
That site isn't working perfectly if you ask me. Right from the start
it's using up half a megabyte for 2 jpg images that don't even appear to
be high quality. They should be about 70KB each and you won't even
notice a loss in quality. Then the page tries to load (and I really
cannot believe this) 3.75MB of .wav file for background sound effects.
Just to really grind the bandwidth down, it tries to load the file
twice. So far we're over 4MB of bandwidth and the page hasn't even
finished loading.

Then at the end, there's a 404 plain as day. How come you're not seeing
it ? If you're producing web pages then you must have a http traffic
sniffer like Fiddler or Charles. You can't release a site to a client
without checking it, surely?

The 404 I got was for favicon.ico which is very common and nothing to
worry about, but it will continue generate server log entries until you
put one up.
Jun 27 '08 #7
sheldonlg wrote:
Jukka K. Korpela wrote:
>Scripsit sheldonlg:
>>I don't know which is the best newsgroup for this, so I put it into
three.

Wrong move. The correct move is to think and study until you know the
right group. You could start from reading the group descriptions, or
at least their names.

I subscribe to these three sites and regularly read and post to these
sites. I don't know whether this best falls into the alt.html or the
comp.lang.php. I also included the javascript on the chance that this
is what is causing it (less likely)
>>
Followups trimmed to alt.html, in which this issue is least off-topic
(maybe even on-topic by some definition).

Frankly, I think that the comp.lang.php is the best group for this.
Others in comp.lang.php have offered php reasons for this. This
illustrates my point of not limiting it to one newsgroup.
>>
>>I have several sites that are working perfectly.

But you don't reveal the URL of any of them. Anyway, you have
effectively said just that you are a self-confident and do not see the
problems that your sites have. Nothing about reality, just your attitude.

Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these 404
s -- that the user does NOT see! Confident? Yes. You want a URL?
Fine. Here is one: www.peglegsurf.com. I don't know how that will
help you, but there it is.
>>
>>When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000).

So is this part of "working perfectly"?

The user sees what he is supposed to see and doesn't see any 404 errors.
>>
And what _are_ these 404 errors? Any site that really works and is
used to some extent will get 404 errors to some extent, just because
people mistype URLs or set up broken links to your site.

See my experiment that I posted as a self-reply. These are not coming
from mis-typing of URLs. Seven are added with each new php page -- and
from within Zen Cart as well.
>>
But naturally you can greatly increase their number by "redesigning"
the site and changing all or most URLs. Many organizations do this
every two or three years, spending quite a lot of time, money, and
effort in breaking the site badly. Did you do that?

This was a new site. There was no redesign.
>>
>>This is only for sites where I have added
the php coding for the server code.

You're not saying what you have actually done, and you don't even tell
the site URL. Do you _really_ expect to get useful help, or are you
just trolling?

Yes, I would hope to bear upon the wide experience of this group to
possibly give or suggest and answer. I don't troll.
No, Jukka is correct. You need to do more troubleshooting to find out
what's going on.

And PHP does not produce 404 errors. Missing resources (pages, or, in
your case, images) produce 404's. It may be because your PHP code is
screwed up - but you need to find the cause - THEN post to the
appropriate newsgroup.

Just because you're calling a PHP page doesn't mean the 404 is a PHP
problem.

Keep posting to inappropriate newsgroups without doing your basic
troubleshooting will soon get you a bad reputation - and people will
stop trying to help you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 27 '08 #8
Jerry Stuckle scribed:
>sheldonlg wrote:
>Jukka K. Korpela wrote:
>>Scripsit sheldonlg:

I don't know which is the best newsgroup for this, so I put it into
three.

Wrong move. The correct move is to think and study until you know the
right group. You could start from reading the group descriptions, or
at least their names.

I subscribe to these three sites and regularly read and post to these
sites. I don't know whether this best falls into the alt.html or the
comp.lang.php. I also included the javascript on the chance that this
is what is causing it (less likely)
>>>
Followups trimmed to alt.html, in which this issue is least off-topic
(maybe even on-topic by some definition).

Frankly, I think that the comp.lang.php is the best group for this.
Others in comp.lang.php have offered php reasons for this. This
illustrates my point of not limiting it to one newsgroup.
>>>
I have several sites that are working perfectly.

But you don't reveal the URL of any of them. Anyway, you have
effectively said just that you are a self-confident and do not see the
problems that your sites have. Nothing about reality, just your attitude.

Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these 404
s -- that the user does NOT see! Confident? Yes. You want a URL?
Fine. Here is one: www.peglegsurf.com. I don't know how that will
help you, but there it is.
>>>
When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000).

So is this part of "working perfectly"?

The user sees what he is supposed to see and doesn't see any 404 errors.
>>>
And what _are_ these 404 errors? Any site that really works and is
used to some extent will get 404 errors to some extent, just because
people mistype URLs or set up broken links to your site.

See my experiment that I posted as a self-reply. These are not coming
from mis-typing of URLs. Seven are added with each new php page -- and
from within Zen Cart as well.
>>>
But naturally you can greatly increase their number by "redesigning"
the site and changing all or most URLs. Many organizations do this
every two or three years, spending quite a lot of time, money, and
effort in breaking the site badly. Did you do that?

This was a new site. There was no redesign.
>>>
This is only for sites where I have added
the php coding for the server code.

You're not saying what you have actually done, and you don't even tell
the site URL. Do you _really_ expect to get useful help, or are you
just trolling?

Yes, I would hope to bear upon the wide experience of this group to
possibly give or suggest and answer. I don't troll.

No, Jukka is correct. You need to do more troubleshooting to find out
what's going on.

And PHP does not produce 404 errors. Missing resources (pages, or, in
your case, images) produce 404's. It may be because your PHP code is
screwed up - but you need to find the cause - THEN post to the
appropriate newsgroup.

Just because you're calling a PHP page doesn't mean the 404 is a PHP
problem.

Keep posting to inappropriate newsgroups without doing your basic
troubleshooting will soon get you a bad reputation - and people will
stop trying to help you.
When I look at a site's error log using cPanel, it informs me which file or
image or whatever was missing and caused the 404 error. Does the OP's error
log provide the same information? Has the OP scrolled the error log to see
the entire log entry? Perhaps he should.
--
Ed Jay (remove 'M' to respond by email)
Jun 27 '08 #9
Stevo wrote:
sheldonlg wrote:
>>>I have several sites that are working perfectly.

Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these
404 s -- that the user does NOT see! Confident? Yes. You want a
URL? Fine. Here is one: www.peglegsurf.com. I don't know how that
will help you, but there it is.

That site isn't working perfectly if you ask me. Right from the start
it's using up half a megabyte for 2 jpg images that don't even appear to
be high quality. They should be about 70KB each and you won't even
notice a loss in quality. Then the page tries to load (and I really
cannot believe this) 3.75MB of .wav file for background sound effects.
Just to really grind the bandwidth down, it tries to load the file
twice. So far we're over 4MB of bandwidth and the page hasn't even
finished loading.

Then at the end, there's a 404 plain as day. How come you're not seeing
it ? If you're producing web pages then you must have a http traffic
sniffer like Fiddler or Charles. You can't release a site to a client
without checking it, surely?

The 404 I got was for favicon.ico which is very common and nothing to
worry about, but it will continue generate server log entries until you
put one up.
I don't do the front-end stuff. I only do the php side, and an occation
bit of javascript as needed, so all those MBs that you talk about, well
I'll pass that info on to the web company that does it. I don't know
why I am not getting a 404 while you are. As for "releasing it tot he
client", he IS the client and HE does all that front end. I just do the
back end for him.
Jun 27 '08 #10
Ed Jay wrote:
Jerry Stuckle scribed:
>sheldonlg wrote:
>>Jukka K. Korpela wrote:
Scripsit sheldonlg:

I don't know which is the best newsgroup for this, so I put it into
three.
Wrong move. The correct move is to think and study until you know the
right group. You could start from reading the group descriptions, or
at least their names.
I subscribe to these three sites and regularly read and post to these
sites. I don't know whether this best falls into the alt.html or the
comp.lang.php. I also included the javascript on the chance that this
is what is causing it (less likely)

Followups trimmed to alt.html, in which this issue is least off-topic
(maybe even on-topic by some definition).
Frankly, I think that the comp.lang.php is the best group for this.
Others in comp.lang.php have offered php reasons for this. This
illustrates my point of not limiting it to one newsgroup.

I have several sites that are working perfectly.
But you don't reveal the URL of any of them. Anyway, you have
effectively said just that you are a self-confident and do not see the
problems that your sites have. Nothing about reality, just your attitude.
Whatever. The sites are perfoming according to spec from a user's
perspective. I am trying to find out why the admin area shows these 404
s -- that the user does NOT see! Confident? Yes. You want a URL?
Fine. Here is one: www.peglegsurf.com. I don't know how that will
help you, but there it is.

When I look at the
statistics for these sites there are huge numbers of 404 errors
tabulated (like 12,000).
So is this part of "working perfectly"?
The user sees what he is supposed to see and doesn't see any 404 errors.

And what _are_ these 404 errors? Any site that really works and is
used to some extent will get 404 errors to some extent, just because
people mistype URLs or set up broken links to your site.
See my experiment that I posted as a self-reply. These are not coming
from mis-typing of URLs. Seven are added with each new php page -- and
from within Zen Cart as well.

But naturally you can greatly increase their number by "redesigning"
the site and changing all or most URLs. Many organizations do this
every two or three years, spending quite a lot of time, money, and
effort in breaking the site badly. Did you do that?
This was a new site. There was no redesign.

This is only for sites where I have added
the php coding for the server code.
You're not saying what you have actually done, and you don't even tell
the site URL. Do you _really_ expect to get useful help, or are you
just trolling?

Yes, I would hope to bear upon the wide experience of this group to
possibly give or suggest and answer. I don't troll.
No, Jukka is correct. You need to do more troubleshooting to find out
what's going on.

And PHP does not produce 404 errors. Missing resources (pages, or, in
your case, images) produce 404's. It may be because your PHP code is
screwed up - but you need to find the cause - THEN post to the
appropriate newsgroup.

Just because you're calling a PHP page doesn't mean the 404 is a PHP
problem.

Keep posting to inappropriate newsgroups without doing your basic
troubleshooting will soon get you a bad reputation - and people will
stop trying to help you.

When I look at a site's error log using cPanel, it informs me which file or
image or whatever was missing and caused the 404 error. Does the OP's error
log provide the same information? Has the OP scrolled the error log to see
the entire log entry? Perhaps he should.
Well (OP here), I learn things all the time. This time I learned how to
track down where the 404s are coming from. Yes, I did it now and it is
coming from missing images coming out out the Zen Cart configuration.
Had I known how before, I wouldn't have had to post -- but that is why
this group is go great. I learn new things all the time.
Jun 27 '08 #11
sheldonlg meinte:
I don't do the front-end stuff. I only do the php side, and an occation
bit of javascript as needed, so all those MBs that you talk about, well
I'll pass that info on to the web company that does it. I don't know
why I am not getting a 404 while you are. As for "releasing it tot he
client", he IS the client and HE does all that front end. I just do the
back end for him.
Is the markup is generated by your PHP scripts? Frankly, it's the pits -
44 warnings,generated by markup like this:

[...]
</HEAD>
<div id="apDiv1">
<div align="center" class="style3 "... </div>
</div>
</BODY>
</HTML></div>
</DIV>
</BODY>
</HTML>
Gregor

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jun 27 '08 #12
Gregor Kofler wrote:
sheldonlg meinte:
>I don't do the front-end stuff. I only do the php side, and an
occation bit of javascript as needed, so all those MBs that you talk
about, well I'll pass that info on to the web company that does it. I
don't know why I am not getting a 404 while you are. As for
"releasing it tot he client", he IS the client and HE does all that
front end. I just do the back end for him.

Is the markup is generated by your PHP scripts?
No, it is not. The PHP is only for the backend stuff. In this
particular case it is basically just the Zen Cart which I configured for
him. I have tried to get him to improve his html......but he is the one
paying the freight, so I just stick to doing what I am paid for after
giving the suggestion two or three times. Any more than that and I
would endanger my getting the php work.
Jun 27 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
2
by: Trev | last post by:
SQL Server 2000 BE, Access 2002 FE. I want to write a stored procedure, that will among other things log errors to a table, I want to be able to report a summary of work done and errors to the...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: doli | last post by:
Hi, I have the following piece of code which iterates through the potential errors: i =0 For Each error_item in myConn.Errors DTSPackageLog.WriteStringToLog myConn.Errors(i).Description...
4
by: johnb41 | last post by:
I have a form with a bunch of textboxes. Each text box gets validated with the ErrorProvider. I want the form to process something ONLY when all the textboxes are valid. I found a solution,...
2
by: Samuel R. Neff | last post by:
Within the past few weeks we've been getting a lot of compiler errors in two classes when no errors actually exist. The error always reports as Name '_stepResizeRelocator' is not declared. ...
24
by: pat | last post by:
Hi everyone, I've got an exam in c++ in two days and one of the past questions is as follows. Identify 6 syntax and 2 possible runtime errors in this code: class demo {
8
by: ImOk | last post by:
I just have a question about trapping and retrying errors especially file locking or database locks or duplicate key errors. Is there a way after you trap an error to retry the same line that...
0
by: clemrock | last post by:
Help w/ errors.add_to_base between controller and model Hello, I'm having trouble in routing some errors between model and controller. The errors produced in the controller...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.