Menu

Notepad++ 4.5 won't load .php files

2007-10-29
2012-11-13
  • Nobody/Anonymous

    I installed 4.5 and tried to open a config.php file and got the following error:

    Notepad++ : a free (GNU) source code editor has encountered a problem and needs to close.  We are sorry for the inconvenience.

    I got the same error on an earlier version I was using, so I upgraded to the current version and I'm still not able to open some files.

    Help!

    Thanks,

    David Bell

     
    • [GO]Doc

      [GO]Doc - 2007-11-09

      Any answers to this yet?  Did you get the files Ok?

      Thanks,

      David Bell

       
    • Don HO

      Don HO - 2007-10-29

      Did you try to not load plugins (rename the folder "plugins") on the launch time?
      If possible, zip your whole %APPDATA%\Notepad++ then send it to me :
      don . h @ free . fr

      Don

       
    • Nobody/Anonymous

      I'm having a similar issue, but I don't think it's with only .php files. I think the problem is with Windows and the text files not having a CR/LF pair. I can open all kinds of files on my Windows system without any trouble. But when I download a file from a Unix system and try to open it in Notepad++ in Windows, it crashes.

      I tried renaming the plugins directory, but it still crashes. Since no one else seems to be having this issue, I'm wondering whether it's a problem with my installation of Windows.

       
      • Don HO

        Don HO - 2007-10-30

        Notepad++ deals with the different eol.

        Download v4.5 ziped release, unzip it to a clean folder, then redo the actions.
        It should work.

        Could you zip the %Appdata%\Notepad++ and send it to me to :
        don . h @ free . fr

        Don

         
        • Ashwan

          Ashwan - 2007-11-05

          I uninstalled Notepad++ and removed all mention of it from the registry (including things such as MRUs)

          I then downloaded the ZIP version, unzipped it to a folder on my Desktop and ran Notepad++ from there. I could open and close any files that I had created on Windows without any problem. But when I tried to open the .php, .css or other files that I had downloaded in a ZIP archive, it crashes. (I should mention that these same files are opening without any trouble in Notepad and Wordpad)

          I then created a file using vi on a shell account and downloaded that. It opened in Notepad++ without any trouble. But this file had CR LF characters as the EOL. So now I'm even more confused! (I used WinSCP to download the file from the server.)

          The ZIP version doesn't seem to create any folder in Application Data, so can you let me know which files I should email to you?

          Thanks!

           
          • Don HO

            Don HO - 2007-11-05

            There's nothing to do with EOL.
            Please unzip them in a local folder then try to open them again.
            Please confirm me that you can open all of them.
            So I can be sure there's bug for opening from the zip files.

            Don

             
          • Ashwan

            Ashwan - 2007-11-05

            Did some more testing... I zipped the text file I had created earlier on the server and then downloaded the ZIP.

            Upon uncompressing the ZIP, the text file crashed Notepad++. Also this file had only the LF as the EOL. (When opened in Windows Notepad, it doesn't recognise that as a new line.)

             
            • Don HO

              Don HO - 2007-11-05

              Now I know the reason of crash.
              Could you tell me which compressor you use, and how did you open a zipped php file in Notepad++?

              Don

               
              • Ashwan

                Ashwan - 2007-11-07

                ZIP 2.31 and also gzip 1.3.5 running on Debian Linux to compress them.

                I was downloading the ZIP and .gz files created, uncompressing using jZIP v1.1 to my desktop and trying to open with Notepad++.

                The text file I created contained four lines and tellingly, the uncompressed version I downloaded using WinSCP was 4 bytes longer than the ones I uncompressed locally.

                Unzipping it using Windows' built-in "Compressed folders" and then trying to open with Notepad++ still crashes the app. [I'm using Windows XP SP2]

                 
        • Don HO

          Don HO - 2007-10-30

          > But when I download a file from a Unix system and try to open it in Notepad++ in Windows,
          > it crashes.

          BTW, did you download Unix file to your local drive, then open it with Notepad++?

          Don

           
    • [GO]Doc

      [GO]Doc - 2007-11-01

      I am sending you the zipped file system you asked for, and a little more information.

      I ran XAMPP on my Windows XP Pro workstation and started an Apache server and MySQL.  I've been testing an installation of PostNuke prior to putting it on a live site.  When I drag any of the .php files from within my PostNuke install to my Notepad++ icon on my desktop, I get the 'sorry' error and it closes and brings up the window to make a report to Microsoft.

      However, I just noticed that I can drag the index.php file from my C:\xampp\htdocs directory to the Notepad++ icon and it opens fine.

      Dragging the admin.php file from C:\xampp\htdocs\PostNuke\html directory does NOT work.

      Thanks for any help with this issue.

      David Bell