News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

File does not exist

Started by fuz2013, December 08, 2013, 04:35:27 PM

Previous topic - Next topic

fuz2013

Quote from: Arantor Beeblebrox the First on December 08, 2013, 06:59:42 PM
I'm confused. I'm using Chrome's Inspector with that test account to observe all the requests made by the browser to the server and none of them are invalid. None of them contain smf_images_url in the URL itself, they're all as they should be.

Since I've been poking around, have there been any new errors in the log, especially from an IP address beginning with 92.7 ?
nope, only error was when i reset the category view to collapsible when you mentioned to do it. after making the test account.
the errors happen when a post is made or a reply to one.

Arantor

And what is the referrer listed as, exactly?

The referrer should be the page that causes the error (by causing it to try to load an image that is invalid)

See, if you're getting an error from while in the admin panel, you shouldn't have a referrer of index.php?action=post;board=1.0

fuz2013

#22
Quote from: Arantor Beeblebrox the First on December 08, 2013, 07:08:07 PM
And what is the referrer listed as, exactly?
the exact message was :
QuoteFile does not exist: /home/user/public_html/hp1/smf/' + smf_images_url + ', referer: http://hp1.the-fuz.com/smf/index.php?action=post;board=1.0

QuoteThe referrer should be the page that causes the error (by causing it to try to load an image that is invalid)
Correct , and in this case its the index.php making a call for
Quote+ smf_images_url +
which is an invalid file name or folder name so it returns the not found error in cpanel (like a silent 404 error message).

Kindred

except it's not actually an invalid filename when it is working...    because that code is normally used in the javascript and should be replaced with the ACTUAL images directory...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

That's the point, though, it IS invalid when it is being sent to the server as part of a URL. Something is making the request without doing the substitution, but I can't replicate it with a browser and nothing appears to be set up incorrectly.

Kindred

right....   we're saying the same thing. :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Yup - though in this case I tried to replicate it with my browser observing all the requests and I don't see an invalid one being generated, not even by the JS :/

fuz2013

#27
Quote from: Arantor Beeblebrox the First on December 08, 2013, 08:17:01 PM
Yup - though in this case I tried to replicate it with my browser observing all the requests and I don't see an invalid one being generated, not even by the JS :/

Like ive mentioned though, it is only generated if you post or reply to a post, and if the collapse category is enabled. when your just viewing it it works normal no errors at all.

this is why i suggested or assumed it had something to do with the code smf uses for collapsing categories.
like its not set properly,  i just presumed that because when you turn off the collapse
feature there is no more errors when posting or replying, only if you turn it on..

edit- FYI.. i turned on posting for guests for now so others can see that post page source. Also, the referred page IS the Post page (when you click new topic or reply) when i view source it even says
Quotesmf/index.php?action=post;board=1.0
there is a line of code in there that has
Quote<img src="' + smf_images_url + '/english/new.gif"
i dont know if thats anything to look at or not.. im not a code guru, but id presume the img_scr= should point to a valid image folder shouldn't it ? just taking stabs at it here to.

Kindred

That s what we are saying...   In the CODE, that line is acceptable, because it gets replaced with the VALUE of the actual path to the images directory when the code is being run.

The fact that you are seeing the error that you are seeing indicates that, at some point, the variable is not being resolved correctly.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

That code is stock SMF, and it works absolutely normally for me - I just created a post and I don't see any errors occurring in my browser.

fuz2013

#30
Quote from: Kindred on December 08, 2013, 08:54:37 PM
The fact that you are seeing the error that you are seeing indicates that, at some point, the variable is not being resolved correctly.
Ok, i tried a few things, like removing all categories, starting with a new fresh one , but getting same errors anyway.

aside from reinstalling smf, anything i can try on my end ?

fuz2013

Quote from: Arantor Beeblebrox the First on December 08, 2013, 09:03:00 PM
That code is stock SMF, and it works absolutely normally for me - I just created a post and I don't see any errors occurring in my browser.

The post you made did not generate an error in my cpanel, which is odd because i replied to it and it did then i saw 1 error, showing my IP.(for the reply) but if i post and reply to myself i get 2 errors.

fuz2013

ok further research, i looked at my "latest visitors" and the urls that showed
i have like 6, 404 error status messages for
Quote/smf/%27%20+%20smf_images_url%20+%20%27/english/new.gif
which kind of verifies the error i am getting about the
Quote+ smf_images_url +

maybe that will help figure this out..

Arantor

So I did a search on that code. It occurs precisely once in SMF, in the Post.template.php file (which fits in with everything else, as it occurs on index.php?action=post which loads that page)

The fragment of code in question is an echo statement, which outputs some JavaScript:
<img src="\' + smf_images_url + \'/', $context['user']['language'], '/new.gif" alt="', $txt['preview_new'], '" id="image_new_\' + newPosts[i].getAttribute("id") + \'" />

The user language would have been output into the raw JS, as it should (giving you the english/ part of the URL)

So, what browser are you using and what modifications does it have?

fuz2013

Quote from: Arantor Beeblebrox the First on December 08, 2013, 10:24:55 PM
So, what browser are you using and what modifications does it have?
i use firefox 3.6.22  but i cant see it being my browser when its generated in the Cpanel on my server.
i found a similar situation referencing the same message, and they were suspecting the language file.
http://www.simplemachines.org/community/index.php?topic=372538.0;nowap
its an old post but ironically you posted there to about same thing.

Arantor

Quotebut i cant see it being my browser when its generated in the Cpanel on my server.

No, it's not generated in the cPanel. The cPanel error log is telling you about a request made by a browser that wasn't valid.

You're also using a very, very, very old browser (Firefox is currently on version 25), but I'm still willing to bet it's a browser add-on you have that is trying to 'optimise' the browsing experience by scanning the current page looking for URLs to grab in the background.

This would explain why I wasn't getting any errors when on the same page because my browser isn't trying to optimise requests in the background.

fuz2013

i even updated java and flash, also disabled all my firefox plugins, but did not make any difference.
i still got same error message.
i know my firefox is old but its the only version i "normally" don't have issues with.
ive tried newer versions and either had plugin issues or issues with settings not staying set.
3.6.22 is only one that normally behaves for me.




Arantor

Even if you stay on the 3.6 series, there are still 6 releases after 3.6.22 which are all bug fixes and may be security related.

I will ask you a third time: do you have any add-ons installed? The fact you mention having add-on trouble suggests that you do.

fuz2013

Quote from: Arantor Beeblebrox the First on December 09, 2013, 12:12:29 AM
Even if you stay on the 3.6 series, there are still 6 releases after 3.6.22 which are all bug fixes and may be security related.

I will ask you a third time: do you have any add-ons installed? The fact you mention having add-on trouble suggests that you do.
As i said before, they have all been disabled. and only time i used to have add-on troubles was with any newer versions of firefox, not my 3.6.22 which is why i stayed with it this long, did not have problems until now with this version of smf.

Burke ♞ Knight

It could be due to the web host doing server updates that your out-of-date browser is having issues with.

Advertisement: