code cut off on a page

Asked by:
scarsd5 / 17 Points
Time:
2013-08-05 10:49 am EST
Category:
File Management
Hits:
433
when I view the code on http://www.scarsdaleaikido.com/instructor.html to edit it, it is cut off fairly early on. however, when I check the page in a browser it displays properly. when I check the source code from the page in the browser, it also shows the full code correctly. what's up with that?

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2013-08-05 4:42 pm EST
Hello scarsd5,

Thank you for your question. The code editor in File manager may cut-off after so many characters, in which case I recommend using FTP to download the file, then edit it using something like Notepad++. Upload the file back to your account using FTP, when you are done.

We are happy to assist you, but we need more information to provide a detailed answer to your question.

When the code is cut-off, where are you viewing the code to edit it?

Are you using an editor, such as notepad++, ipage, or dreamweaver?

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

i used ftp to upload the full file and this was the result.
scarsd5
17 Points

2013-08-05 6:17 pm EST
Hello scarsd5,

We need more information respond to your question in detail, such as:

Where are you viewing the code when it is getting cut off?

File manager Code editor? Filezilla? Notepad++? iWeb? Dreamweaver?

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-whh2
12,339 Points
Staff
2013-08-05 7:15 pm EST
I go into file manager - code edit. on the page referenced above the code was cut off at line 158. in the file I upload, or if I call the page up in a browser and look to view source code, the full code is there.
scarsd5
17 Points

2013-08-05 7:17 pm EST
Hello Scarsd5,

I reviewed the issue with John-Paul, checked with our Systems team, and also went hunting in the cPanel forums. This appears to be an issue with the cPanel, and not something we can correct unfortunately. The best way to get around this problem is to download the file using an FTP client and then editing the file using an editor like Notepad ++. You don't have to use FTP, you can also do the following:


  • 1. Go the Cpanel File Manager

  • 2. Locate your file and right-click on it. Select DOWNLOAD at the top of the menu that appears

  • 3. Download the file, then find where you downloaded it, right-click on it and then open it in your favorite editor

  • 4. After you have finished editing the file, go back to the cPanel File Manager and then select the folder where the file came from (left-click on public_html), then click on UPLOAD in the menu bar in the top of the file manager.

  • 5. Select your file, upload it and you're done!


  • I hope this helps to clarify the issue. Please let us know if you have any further questions or comments.

    Regards,
    Arnel C.
arnelc
17,314 Points
Staff
2013-08-05 8:03 pm EST
I don't think that was a cogent answer. other pages have the complete file uploaded. however, I checked a second page () and found the code was cut off by the exact same word. again, the both pages seem to display properly. then when I copy the balance of the code and put it in the file manager, it simply does not accept the full code. can you take another look and see what is really going on?
scarsd5
17 Points

2013-08-05 8:21 pm EST
Hello scarsd5,

The code editor in cPanel is for basic coding, that is why we recommend using a local code editor.

I just want to clarify:

The problem you are experiencing is: The full code of your page is not displaying in the code editor in File manager. The code is there (since the site "displays properly"), it is just not displaying all the code in your file.

The reason: This is a very common cPanel issue, as many browsers have trouble handling the script for the Code Editor . Essentially cpanel loads up the code of your page using Javascript, and passes it to your browser. You browser must then parse the information, but browsers cut a script off after so many seconds, or if it becomes unresponsive, etc. This varies due to the size of the file, the amount of characters in the file, etc.

The solution: Is to use a different code editor for that file, such as notepad++(which is free and includes helpful code editing tools). Then upload the file via FTP.

You can even use Filezilla (the FTP program) for editing/viewing files.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-whh2
12,339 Points
Staff
2013-08-05 9:00 pm EST
so you are saying the problem is in the code editor and not in the file? the file uploads fine, displays fine in a browser, but I just can't view all the code properly in the code editor?
scarsd5
17 Points

2013-08-05 9:20 pm EST
Hello scarsd5,

Yes, exactly: "the problem is in the code editor and not in the file? the file uploads fine, displays fine in a browser, but I just can't view all the code properly in the code editor?"

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-whh2
12,339 Points
Staff
2013-08-05 9:42 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}