Errors after editing template HTML

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
webified
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Aug 21, 2012 7:51 am

Errors after editing template HTML

Post by webified » Tue Aug 21, 2012 8:10 am

Hi all,

I have recently installed Joomla 2.5 after 5 yrs absence. I'm trying to edit the Beez5 template via the Admin area (Template Manager, "Templates" tab, select the Beez5 "Details and Files" link, then finally the "Edit Main Page Template" link.

I basically want to use a different image file so I change "fruits.jpg" to "myimage.jpg" and click Save.

When it saves it is adding extra escape characters to the HTML (backslashes). For example:
Near the top of the file

Code: Select all

defined('_JEXEC') or die;
becomes

Code: Select all

defined(\\\\\\\'_JEXEC\\\\\\\') or die;
this is repeated throughout the HTML.

Any suggestions on how to prevent this?

In the meantime I've just replaced the underlying resource (fruits.jpg) but I'd like to fix this so my client can make their own changes.

Mab7
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Mon Jul 11, 2011 8:43 am

Re: Errors after editing template HTML

Post by Mab7 » Thu Aug 23, 2012 9:47 am

Hi Webified.
Welcome back :)
What you can try - is copy all the code to a txt editor (eg Notepad)
Do your changes there then copy (replace all) code back to the template manager.

PS - it's also a good idea to save a "backup" of the piece of code you editing - just in case something goes wrong.
Regards
Marianna Brown

webified
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Aug 21, 2012 7:51 am

Re: Errors after editing template HTML

Post by webified » Thu Aug 23, 2012 11:04 am

Thanks. Any idea what the cause of this may be?

No problem for me to make changes this way but would rather not ask my client to.


Locked

Return to “Templates for Joomla! 2.5”