Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    Angry cPanel hates PHP

    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. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    Default 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. #3
    Member
    Join Date
    Jul 2006
    Posts
    28

    Default

    Have you tried using the legacy editor and vi through shell?

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    Default no go

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

  5. #5
    Member markfrompf's Avatar
    Join Date
    Mar 2006
    Location
    Los Angeles, CA
    Posts
    179

    Default

    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.
    -----------------------------------------------------------
    | Mark A. Mutti: PhireFast Website Hosting
    | E: Mark.mutti@phirefast.com - P: (866) 350-4456 Ext. 100
    | 24/7 Support, 15 Minute Average Response Time
    | cPanel, Fantastico, Webmail & More!
    -----------------------------------------------------------

  6. #6
    Registered User
    Join Date
    Oct 2007
    Posts
    4

    Default

    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. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by NMWD View Post
    ...

    Please fix this cPanel tech guys!
    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. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

Similar Threads & Tags
Similar threads

  1. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  2. Updating cpanel PHP changed main server php.ini
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2009, 02:46 PM
  3. /usr/local/cpanel/php/cpanel.php error
    By bsolano in forum cPanel Developers
    Replies: 5
    Last Post: 10-17-2008, 03:30 PM
  4. Yahoo mail hates my cPanel server.
    By larryl in forum Database Discussions
    Replies: 11
    Last Post: 03-12-2007, 12:35 PM
  5. iptables hates me
    By SchultzNY in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-18-2003, 09:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube