Categories > TinyButStrong general >

sometime error sometime is not

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: srabutdotcom
Date: 2013-01-21
Time: 03:42

sometime error sometime is not

Dear Skrol.

My website at http://erozashop.com sometime show an error like
TinyButStrong Error in field [onshow...] : the file 'http://www.erozashop.com/js//treeviewfast/FramelessHiliNodes4erozashop.js' given by parameter file is not found or not readable. This message can be cancelled using parameter 'noerr'.

but sometime no error.

Could anyone help me what is wrong.?

Rgds

By: Sarah
Date: 2013-01-21
Time: 19:46

Re: sometime error sometime is not

Is there any way that that file sometimes doesn't exist? Have you tried loading the file directly when you are seeing the error? When you say sometimes it gives an error, do you mean a single page load will error and the next will be fine, or that you have outage periods when you will get the error several times in a row?

If the file is non-essential, you can always hide the error with parameter 'noerr':

By: Skrol29
Date: 2013-01-21
Time: 23:46

Re: sometime error sometime is not

Another thing to check: the TBS field uses parameter "file" but the file path is an URL. This makes PHP to open a file using an HTTP request, this is strange and not optimized. Your file path should better be a local path, from the point of view of the server.
By: srabutdotcom
Date: 2013-01-23
Time: 21:21

Re: sometime error sometime is not

Thanks all,

Skrol advise is good but i have to use a full path using

"http://".$_SERVER['HTTP_HOST']."/js/"

so every different path of html loaded php call the same source of path instead relative to path of html opened.

Do you have a better idea.?

regards
By: Skrol29
Date: 2013-01-27
Time: 01:39

Re: sometime error sometime is not


>so every different path of html loaded php call the same source of path instead relative to path of html opened.
>Do you have a better idea.?

You can use a static path but for Linux, not for an HTTP request.
Something like "/httpdocs/js/".
By: handoko
Date: 2013-01-27
Time: 01:45

Re: sometime error sometime is not

Yes it work for

./js/
but not with this
/js

thanks anyway Skrol