I uploaded my files in, HTML file, but they no longer work

I uploaded my files in, HTML file, but they no longer work. The files are Christmas lights on my website. The lights worked 10 days and then stopped and gives me the following error. http://error404.000webhost.com/cpu-limit-reached.html

What caused the problem and how to fix it?

read the end…

the problem is that you “reached cpu limit”

This likely means your script has a bad loop or something that is causing it to use an unusual amount of resources, likely javacript.

review the script & follow all the loops & find the problem, you can use this script to time the processing…

put the top part at the top & the bottom part at the end of your page & change the extension to .php

    <?php
    // Insert this block of code at the very top of your page:
    $time = microtime();
    $time = explode(" ", $time);
    $time = $time[1] + $time[0];
    $start = $time;



    $time = microtime();
    $time = explode(" ", $time);
    $time = $time[1] + $time[0];
    $finish = $time;
    $totaltime = ($finish - $start);
    printf ("Page Processed in <b> %f seconds </b>", $totaltime);
    ?>

Yes this is the javascript code to Christmas lights on my site. I do not understand from the JavaScript code and do not know where to look bad line. Code you gave me where to put it, I do not understand?

Can you still access your files/account? If so take a backup of them and visit 000webhost.com, create a new email, signup a new account and reupload your data, keep regular backups and make sure your scripts don’t exceed any limits or parameters set by 000webhost.

Make sure you have closed all of your HTML tags. If you need help, you can use Markdown here to display your code and we can help review it. (Use the 3 backticks around your code to display it inline as code, as the Markdown Cheatsheet shows.)
We won’t be able to see what you see with your link. That link indicates a file stored locally on your computer.

1 Like

These are the files. http://dox.bg/files/dw?a=9dba89e8fb
If you can tell me what the problem is and how to fix it.

I uploaded the files you’ve uploaded to my site

http://james2.000webhostapp.com/

And it seems to work?

When you login to your control panel what is the status of your hosting?

Can you upload/download files?

Try signing up to 000webhost.com with a new email and make a new account then try your script on a new account.

1 Like

As I boarded the files they worked 10 days and then began to give error. http://error404.000webhost.com/cpu-limit-reached.html

If I make a new account what is the guarantee that it will again become the same? :neutral_face:

psp
Here’s my test forum. At the top shows what appears in place of the Christmas lights.

Whatever you are placing at the top of the forum there is cpu error limit reached

So you’ve breached limits on an account you are hosting the lights from

You’ll need to make a new account, keep regular backups and if you breach limits again then premium is unlimited @ only $3.99 which is nothing really.

1 Like

File size is 282kb. Why, I violated the limit?

The account looks to be suspended for violating CPU usage limit.

i.e. too many concurrent connections, so too many users loading the page at the same time or in your case the christmas lights.

So if you do a new account will still be blocked?

I don’t know about the new panel accounts if there is still a usage limit in place or not, if you continue to breach limits you are better off using premium.

1 Like

I uploaded files only lights in my account. They are not a big amount when will I remove the restriction?

Yeah but how many visitors you think you are getting? If you embed those lights on a forum with 50 members and those 50 members all come online at once, your account could get suspended, or if you have 10 members online browsing the forum, that is a lot of embeds of the lights therefore again usage…

Sometimes the restriction will go away within a few hours - other times it will stay forever as it may have happened before - if you want that account back odds are you’ll need to upgrade.

1 Like

I’m a little confused now I can access http://hl-club.net16.net/ but not http://hl-club.net16.net/lights

Have you tried uploading your script into another directory i.e. /xmas

Else opening your lights directory and making sure that the correct files are there?

Already two weeks do not work lights. Apparently not remove the restriction. What can I do about it?

Can you access control panel?
Or FTP?

Browse to public_html and rename lights to xmas and then try to load http://hl-club.net16.net/xmas, if it loads then lights must be limited never seen them limit a directory usually the whole website will be limited.

1 Like

James

I have access to FTP.
I changed the folder name, but did not show lights on my website.

Okay can you make a new folder and re-upload the files?

:slight_smile:

Or delete the index.html that will be in lights and re-upload your own one incase that error page is spawning from some code injected into index.html

1 Like