The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel hates PHP

Discussion in 'General Discussion' started by NMWD, Oct 13, 2007.

  1. NMWD

    NMWD Registered

    Joined:
    Oct 13, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I have just recently updated my server (cPanel, Server software, Apache etc) and for some reason, the Edit feature which I use for about 4 hours a day minimum, no longer likes PHP.

    The only reason why I presume this is the fact it was working perfectly well before the update, and now it appears on every PHP file I open when using the Edit feature in the File manager X3.

    it says:

    "You are not using a utf-8 language file. You should not save utf-8 data or you will get corrupted results. Click here to change your language file."

    Well, it saves fine and its how I have always coded it in ISO-8859-1 (2 years). It doesnt do it to any other file I have tested it on, only PHP. Even the most basic php file it does it.

    Any thoughts cPanel tech guys?
     
  2. NMWD

    NMWD Registered

    Joined:
    Oct 13, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    update

    It has become even more ridiculous...

    When I create a new file using the File Manager and open it with Edit, it still says it even though it is blank!


    Any thoughts?
     
  3. TheHeartSmasher

    TheHeartSmasher Active Member

    Joined:
    Jul 14, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Have you tried using the legacy editor and vi through shell?
     
  4. NMWD

    NMWD Registered

    Joined:
    Oct 13, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    no go

    Yeah, just tried it... does the same thing in the Legacy File Manager.
     
  5. markfrompf

    markfrompf Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    176
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles, CA
    The File Editor has always hated PHP files. It's a good thing that it's not letting you open PHP files now because it has always just corrupted them.

    I would have a PHP file with some contents but after I would save it, all of the PHP contents would be gone! So it's fortunate that it's protecting you from opening them.
     
  6. NMWD

    NMWD Registered

    Joined:
    Oct 13, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    No, it opens fine... it also saves fine. thats the point of this topic... for some reason it comes up with an error, yet... there is no error

    I'm writing in the right character encoding, it opens and saves normally... like it always has. but for some reason, possibly a bug in the system?? it says to use UTF-8, i dont want to... im using the same method i always have.

    Please fix this cPanel tech guys!
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you desire direct involvement by the cPanel Staff, I would recommend you submit a support ticket regarding this issue.

    Remember, these are community forums, not support forums. As a result, our support staff do not routinely monitor these forums for support requests.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It's not an error. It's warning you that you are using an ISO language encoding file. Attempting to save Unicode characters when using an ISO language encoding file will result in corrupted data.

    To remove the warning, change your language encoding to english-UTF8 with the following steps:

    1. Login to cPanel
    2. Click the icon labeled "Change Language"
    3. From the "Set Language to" drop down, select english-UTF8
    4. Click Change

    Now, when you edit files, the warning about unicode will not display. As a note: the only ISO encoded language provided by cPanel is English. All the other languages use utf8
     
Loading...

Share This Page