Error message with non-existent file

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error message with non-existent file

Jussi Hirvi-2
On my Lasso 8.x site, when I searched

www.mydomain.com/index.html/

or

www.mydomain.com/index.html/you-can-write-anything-here

I get an error message

> Recursion depth limit (50) exceeded. at: include with params:
> 'inc/defaults.inc' at: /index.html/inc/defaults.inc on line: 2 at
> position: 1

Needless to say, index.html is a file, not directory.

There is no .htaccess, and nothing unusual in the Apache conf for this
domain. The only allowed option is FollowSymLinks.

BTW, the offending line in /inc/defaults.inc contains
include('gen/config.inc');

...but this should not be important. The question is, why don't I get a
404 error code (file not found) in the first place.

- Jussi
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Error message with non-existent file

Bil Corry-3
How is defaults.inc being called? Because it's being called recursively somehow, where defaults.inc is causing itself to be called, which causes itself to be called, etc.

- Bil

On May 16, 2014, at 3:10 AM, Jussi Hirvi <[hidden email]> wrote:

> On my Lasso 8.x site, when I searched
>
> www.mydomain.com/index.html/
>
> or
>
> www.mydomain.com/index.html/you-can-write-anything-here
>
> I get an error message
>
>> Recursion depth limit (50) exceeded. at: include with params:
>> 'inc/defaults.inc' at: /index.html/inc/defaults.inc on line: 2 at
>> position: 1
>
> Needless to say, index.html is a file, not directory.
>
> There is no .htaccess, and nothing unusual in the Apache conf for this domain. The only allowed option is FollowSymLinks.
>
> BTW, the offending line in /inc/defaults.inc contains
> include('gen/config.inc');
>
> ...but this should not be important. The question is, why don't I get a 404 error code (file not found) in the first place.
>
> - Jussi
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Error message with non-existent file

Jussi Hirvi-2
/index.html contains
        include('inc/defaults.inc');

If I add / to make it
        include('/inc/defaults.inc');

the error message changes. Adding / to my all include statements might
solve the problem, but I cannot do that because in a certain situation
the files at the root of my site are also called from a subdirectory
(secure.my-isp.com/mysite).

The site should in this case just display "file not found" error, and I
would like to know why it does not. How come it even finds my /index.html?

  -Jussi

On 16.5.2014 13.44, Bil Corry wrote:

> How is defaults.inc being called? Because it's being called recursively somehow, where defaults.inc is causing itself to be called, which causes itself to be called, etc.
>
> - Bil
>
> On May 16, 2014, at 3:10 AM, Jussi Hirvi <[hidden email]> wrote:
>
>> On my Lasso 8.x site, when I searched
>>
>> www.mydomain.com/index.html/
>>
>> or
>>
>> www.mydomain.com/index.html/you-can-write-anything-here
>>
>> I get an error message
>>
>>> Recursion depth limit (50) exceeded. at: include with params:
>>> 'inc/defaults.inc' at: /index.html/inc/defaults.inc on line: 2 at
>>> position: 1
>>
>> Needless to say, index.html is a file, not directory.
>>
>> There is no .htaccess, and nothing unusual in the Apache conf for this domain. The only allowed option is FollowSymLinks.
>>
>> BTW, the offending line in /inc/defaults.inc contains
>> include('gen/config.inc');
>>
>> ...but this should not be important. The question is, why don't I get a 404 error code (file not found) in the first place.
>>
>> - Jussi

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Error message with non-existent file

Jussi Hirvi-2
I tried the same with a simple php site.

        http://www.my-php-site.com/index.php/write-anything

That also resulted in cryptic error messages. The problem seems to be
Apache-related and could probably be fixed by adjusting httpd conf. I
just don't know how.

BTW, in the Apache conf, directory indexes (Options Indexes) is off,
like it should.

- Jussi
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Error message with non-existent file

Bil Corry-3
It really depends on how you have Apache configured.  Typically, Apache
won't load a file (e.g. index.html) that is embedded into the middle of a
URL path, unless you are rewriting the URL and stripping off the trailing
"write-anything" text.

Are you using mod_rewrite?  Or how are you expecting Apache to know to load
index.html and ignore the trailing stuff?

- Bil



On Fri, May 16, 2014 at 4:57 PM, Jussi Hirvi <[hidden email]>wrote:

> I tried the same with a simple php site.
>
>         http://www.my-php-site.com/index.php/write-anything
>
> That also resulted in cryptic error messages. The problem seems to be
> Apache-related and could probably be fixed by adjusting httpd conf. I just
> don't know how.
>
> BTW, in the Apache conf, directory indexes (Options Indexes) is off, like
> it should.
>
>
> - Jussi
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>