Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Notepad++ and PHP code errors

    I hope somebody with Notepad++ experience can help. I edited the email messages and experienced problems using Notepad++ with word wrap enabled. I think some extra code ended up in the file that gave me errors when uploaded. I got frustrated and started over again with TopStyle. Now it works. Don't know if I had some settings wrong.

    Did anybody else have problems with word wrap enabled? Is this not recommended? I know it is not Zencarts fault but maybe this info can profit somebody else with limited editing knowledge.

    First I thought it was me missing some code but I then saw in topstyle that some extra space and line brakes were added. Don't know if this could matter for the function of the php code?
    Live and learn... the Zen way.

  2. #2
    Join Date
    Jun 2007
    Posts
    145
    Plugin Contributions
    0

    Default Re: Notepad++ and PHP code errors

    Unix and Windows have different expectations for CR and LF. Although I'm not a Mac person I understand that they're different again.

    Depending on what your server is on, and what you're running Notepad++ on, you'll need to make sure the settings in Notepad++ are correct.

    Yes - I got caught out at first, but realised what was going on and made the necessary adjustments.
    We're now settled in at our final home - http://www.swiftbooks.co.uk - where you'll find an eclectic collection of used books. Still a lot of work to do, though!

  3. #3
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Notepad++ and PHP code errors

    Pc is win xp server is Linux Apache and so forth...

    I guess I have to make the right settings under Format menu.

    What do you set encoding on ASCI or UTF-8 and should I choose to convert to UNIX format?
    Live and learn... the Zen way.

  4. #4
    Join Date
    Jun 2007
    Posts
    145
    Plugin Contributions
    0

    Default Re: Notepad++ and PHP code errors



    This works for me.
    We're now settled in at our final home - http://www.swiftbooks.co.uk - where you'll find an eclectic collection of used books. Still a lot of work to do, though!

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Notepad++ and PHP code errors

    I've used regular old Notepad (RON?) to edit Zencart files for years without any of the problems I've read about on the forum.

    One trick that works for me is - if you open a file in Notepad, and it seems garbled (usually all the text jammed together), open the file in Wordpad, then save as a .txt file. Should open OK in Notepad after that.

 

 

Similar Threads

  1. v151 PHP warnings and fatal errors
    By hillbillyanns in forum General Questions
    Replies: 3
    Last Post: 25 Nov 2015, 11:46 AM
  2. Replies: 3
    Last Post: 23 Jul 2010, 08:33 AM
  3. can't get notepad to open my PHP files
    By karenkte in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2008, 04:25 PM
  4. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg