Forum Moderators: open

Message Too Old, No Replies

mozilla composer mangled my code

arragh! don't use it on php

         

Receptional Andy

8:21 pm on Mar 20, 2003 (gmt 0)



I was looking at local pages for a website i'm playing with, and I right clicked on one and clicked 'edit'. It was a PHP include file for a site's navigation. Normally I manage pages from within editors, so I didn't realise that Composer was the default for this. So I thought I'd give it a go...

I added a <noscript> bit to a hefty javascript section saved the file and (doh!) closed composer. I uploaded the inc section and went to the site to see how my efforts to increase user-friendliness turned out.

Aaaarghh! Composer had totally rewrote major sections of the file so that the page was just one mess of errors. Well, because it was an include file the whole SITE was just a messs of errors :(

Every PHP section was mangled beyond recognition, and there were also </body></html> tags added at the end (what was actually the middle of a page).

It's lucky this site is just personal homepage-ish and definitely the last time I use Composer :)

Because I had closed the program after the edit I couldn't undo the changes. I had a frantic scramble to find older/backed up versions of the code...

Composer: Don't try this at home ;)

The moral of the story:
If we don't change direction, we'll end up where we're headed.

4eyes

9:30 pm on Mar 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hoowee - glad it wasn't me

There is a preferences option for 'retain source formatting' which might (or might not) solve the problem for future instances.

4serendipity

4:05 am on Mar 25, 2003 (gmt 0)

10+ Year Member



Sorry that you found out the hard way, but I've found that Composer just isn't ready for prime time yet.

I'm still hoping that it'll come into its own some day, so I can recommend it as a nice, free visual editor to non-techies.