I find that using HTML or a javascript snippet within the information pages does not work. For instance, just putting a simple html table into a page, when viewing this all the formatting is lost and if I go back to the code it has been corrupted. Is there a reason / cure for this?
Yes, it looks fine to begin with, but as I said, when I save and then go back to the code it has been corrupted.
Once I have entered my HTML, whether this be on an 'Information' page or within an HTML Content Mod, after saving the work and viewing it, it is corrupted. If I go back to view the code this:onlinemarketer wrote:paste/screenshot an example of the corruption
<table align="left" border="0" cellpadding="10" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td align="center"><a href="https://www.facebook.com/beersinabottle#" target="_blank"><img alt="Facebook Page" src="http://www.beerinabottle.co.uk/image/da ... cebook.png" style="width: 70px; height: 52px;" /></a></td>
<td align="center"><a href="https://twitter.com/beerinabottle" target="_blank"><img alt="Foolow us on Twitter" src="http://www.beerinabottle.co.uk/image/da ... witter.png" style="width: 70px; height: 52px;" /></a></td>
</tr>
</tbody>
</table>
Ends up as this:
<table style="\"width:" 100%;\"="" align="\"left\"" border="\"0\"" cellpadding="\"10\"" cellspacing="\"1\"">
<tbody>
<tr>
<td align="\"center\""><a href="\"https://www.facebook.com/beersinabottle#\"" target="\"_blank\""><img alt="\"Facebook" page\"="" src="\"http://www.beerinabottle.co.uk/image/da ... cebook.png\"" style="\"width:" 70px;="" height:="" 52px;\"=""></a></td>
<td align="\"center\""><a href="\"https://twitter.com/beerinabottle\"" target="\"_blank\""><img alt="\"Foolow" us="" on="" twitter\"="" src="\"http://www.beerinabottle.co.uk/image/da ... witter.png\"" style="\"width:" 70px;="" height:="" 52px;\"=""></a></td>
</tr>
</tbody>
</table>
Looks like all your speech marks are having a slash added - this is normally a server/htaccess issue.
Does the same slashes appear if you use a speech mark on your product title?
Does the same slashes appear if you use a speech mark on your product title?
This is probably a magic quotes problem as in this topic:
http://forum.opencart.com/viewtopic.php?f=191&t=136206
Long story short: you need to edit .htaccess file and make sure that the following lines are there and they are uncommented:
http://forum.opencart.com/viewtopic.php?f=191&t=136206
Long story short: you need to edit .htaccess file and make sure that the following lines are there and they are uncommented:
Code: Select all
php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off
Thanks for the suggestion, but when I made this change to .htaccess the site was no longer available, pages just came up as 404 errors.
Sorry to hear that.
I am a bit out of my depth here but there is also a setting in php.ini regarding magic quotes.
Also, from what I know this issue is a problem in older versions of php and updating your server to the recent version could help. But sometimes we have no control over our hosting so this may be impossible.
As I mentioned in the linked thread, the temporary solution is to avoid putting quotes in source code and deleting them each time you edit content. It is very inconvenient and time consuming though.
Sorry I can't give more solutions
I am a bit out of my depth here but there is also a setting in php.ini regarding magic quotes.
Also, from what I know this issue is a problem in older versions of php and updating your server to the recent version could help. But sometimes we have no control over our hosting so this may be impossible.
As I mentioned in the linked thread, the temporary solution is to avoid putting quotes in source code and deleting them each time you edit content. It is very inconvenient and time consuming though.
Sorry I can't give more solutions
This issue has now been resolved. After contacting my server hosts they turned off 'magic quotes' for me and that did the trick.
Who is online
Users browsing this forum: No registered users and 158 guests