On my web pages, some source code appears overlaying existing objects, what could be the problem and how to solve it?
Iâve never seen that happen before?
Can you take a screenshot to show us? Are you using php to display the page? Its possible that the âsource codeâ is actually a php error. They look the same.
The code in the overlay somehow resembles the HTML source of an error page from the security system. When the cookie validation process fail, it emits an error similar to this one:
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support.
In your case, the HTML page has been parsed as text.
Can you post any screenshot to your developerâs console? Maybe one of the network request failed. Itâs better if you can also provide the details about the âoverlayâ.
I used Crome and Opera, but the error persists.
What is strange is that if I insert all the files in xampp the problem does not exist, and I use the same browser: Crome.
cartelle.php?i=1:419
DELETE https://errors.infinityfree.net/errors/403/ net::ERR_FAILED
clearDataFile @ cartelle.php?i=1:419
initGame @ cartelle.php?i=1:435
window.onload @ cartelle.php?i=1:247Understand this errorAI
cartelle.php?i=1:424 TypeError: Failed to fetch
at clearDataFile (cartelle.php?i=1:419:19)
at initGame (cartelle.php?i=1:435:13)
at window.onload (cartelle.php?i=1:247:13)
(anonymous) @ cartelle.php?i=1:424
Promise.catch
clearDataFile @ cartelle.php?i=1:424
initGame @ cartelle.php?i=1:435
window.onload @ cartelle.php?i=1:247Understand this errorAI
cartelle.php?i=1:239 File resettati con successo: This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
2cartelle.php?i=1:203 Uncaught (in promise) NotAllowedError: play() failed because the user didnât interact with the document first. Autoplay policy in Chrome | Blog | Chrome for Developers
https://tomb.lovestoblog.comâ has been blocked by CORS policy: Response to preflight request doesnât pass access control check: No âAccess-Control-Allow-Originâ header is present on the requested resource. If an opaque response serves your needs, set the requestâs mode to âno-corsâ to fetch the resource with CORS disabled.
I inspected your website using the link from the screenshot. My hypothesis was correct â it turns out to be the source code of the cookie validation error page.
<html>
<body>
<script type="text/javascript" src="/aes.js" ></script>
<script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("dc8368729242b1c2754b8677052ef90d");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://tomb.lovestoblog.com/otom/data.php?i=1";</script>
<noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
</body>
</html>
Youâre not supposed to see that error. I think the issue is currently connected to other recent issues on the browser (cookie) validation system.
I tried to take a quick glance of your website. I can see that youâre trying to fetch some resources (e.g.: data.php
, data.txt
). The code seems to be valid, so I donât think itâs an issue from your Javascript code.
DELETE HTTP requests are not supported on our hosting, only GET and POST calls are allowed.
I checked your web page, but I was unable to reproduce the issue.
I did notice that your website is polling the data.php endpoint multiple times per second. This will very quickly burn through your daily hit allocation and may result in account suspension. So I suggest slowing that down a lot.
I was successful in replicating the issue but it took me 5 minutes before the issue appeared.
Solved.
Not by me because I would not have been able to.
it seems that the problem was in the page code, and on the button that you saw above depicting the ticket.
Which when pressed displayed a code
So replacement of the Button Content:
the logic that inserted the code directly as the inner HTML of the âOpenâ button was removed using a to display the code with an appropriate style. This prevented the HTML source code from appearing messy or overwritten.
thanks to everyone for the help, and the interest in trying to understand what was happening.
As for the repeated requests, you are right, I tried to halve them by helping myself with a local server. Unfortunately, however, when I then have to carry out the general tests these take a long time, I hope that it does not end up having to block me, thanks again, for everything.
I am contacting the administrator:
The problem has reappeared the console displays:
Cause:
CORS (Cross-Origin Resource Sharing) occurs when a domain tries to access a resource on another domain and is not allowed. In this case, your domain tomb.lovestoblog.com is trying to access a resource on errors.infinityfree.net, which is not allowing access.
Can you please share the exact URL of the page youâre having this issue on? Itâs hard to give you specific information if we canât see the error.
Most likely, that error doesnât indicate a CORS issue. The desired behavior is not that your website can successfully load content from errors.infinityfree.net, the desired behavior is that your website is not redirecting to error pages at all.
You can check the Network tab in your browser to see which URLs redirect to errors.infinityfree.net, and what exact error code they redirect to. Then you can determine what those URLs should do, and decide what you need to do to fix it.
This is the address:
https://tomb.lovestoblog.com/to/cartelle.php
To create the error, you have to activate the objects several times.
Sometimes, it also appears when you open the page, sometimes when you click on the button, Ticket sometimes when you click on the button: Curtain.
In the Network tab I see a number of failing requests:
Basically all requests that have status 302 are wrong:
- The
/otom/images/piu.png
file cannot be found. - The DELETE call to
data.txt
is rejected (our servers block all DELETE requests). - The
/otom/suoni/plip.mp3
file cannot be found. - The
/favicon.ico
file cannot be found (but thatâs OK, browsers always look for it on their own). - The
/ot/reset_files.php
file cannot be found.
Please remove the delete call, and check the other files to make sure that the files exist, have the right name, and the code has the correct URLs pointing to the files.
Yes you are right, I was still working on the files and therefore some were no longer present, but these are not the ones that create the problem, in fact on the local server this does not happen.
Anyway sooner or later I will solve it, we will see, instead now I can not use the space, because I tried to insert a page: https://tomb.lovestoblog.com/otom/tombola.html. but it gives me the error page not found.
I also created another space: https://tomb.lovestoblog.com/cart/tombola.html, but this does not work either, have I perhaps deleted important server files?
If so, you can restore everything. Otherwise if I have been suspended let me know.
Finally I have continuous connection drops with filezilla, what could it depend on, it is not my connection, because it works well could it be the software, filezilla, that has problems?
Looking at your websiteâs files, there is no cart
or otom
directory in your htdocs folder anymore. So of course the files within them cannot be found either. Please make sure that the upload locations of your files matches the URLs you want to access them from.
We cannot restore anything. We donât make backups of free hosting account.
If your account was suspended, youâd know. A suspension doesnât manifest itself as random 404 and 403 errors.
It depends on what you mean by that.
Our server closes connections after 20 seconds of inactivity. Thatâs completely normal. If your connection gets kicked out, just reconnect and continue. And note that it only closes inactive connections, any transfer operations already in progress will just keep working.
The tombola.html file was present in both folders, and is present, now only in: https://tomb.lovestoblog.com/cart/tombola.html
but this space does not work if I try to view the page.
But do not worry it was not important, it was only used to perform a test and see if the overlay problem also occurred with another folder.
Anyway, thank you for the assistance, and especially for the free space.
Have a good day and good work.