Icy Phoenix Replaces '"' To '\"' In Every Code. »  Show posts from    to     

Icy Phoenix


Old Support Topics - Icy Phoenix Replaces '"' To '\"' In Every Code.



Danielc [ Fri 02 Jul, 2010 19:59 ]
Post subject: Icy Phoenix Replaces '"' To '\"' In Every Code.
I have a problem with my site.
When i add a code in my page (for example, my Google Analytics code, or the HTML blocks in CMS), Icy Phoenix (i'm not sure if this could be a problem of another thing) adds a backslash \ before every quotation mark ".

For example, i added this in a HTML block:

<script type="text/javascript">

But, in my page, or when i see the block again in my CMS, this is the code:

<script type=\"text/javascript\">

Do know how can i solve this problem?

Thanks!!


TopoMotoV3X [ Fri 02 Jul, 2010 20:34 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Link to your WebSite bro, please.


Danielc [ Fri 02 Jul, 2010 20:53 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
http://www.miiconsola.com

A few minutes ago i edited manually the Google Analytics code (in the database) so the page is valid (in W3C), but the problem still happens when i use the ACP to modify this.

Thanks!


TopoMotoV3X [ Fri 02 Jul, 2010 23:13 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
it seems that everything is ok, you have this problem a long time? I do not know what it is, it never happened


Danielc [ Fri 02 Jul, 2010 23:18 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
I don't know.. Is there any configuration in PHP that could cause this?


TopoMotoV3X [ Sat 03 Jul, 2010 00:06 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Not that I know, You can check if there are errors on the database and fix it with "Check database" which are in the ACP/DB and Security/Database Maintenance/Check database

Ps: I suggest you do a database backup before making any restore operation.


Danielc [ Sat 03 Jul, 2010 01:22 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
There wasn't errors in my DB. Also I tried to change my Database charset but it doesn't worked. I think that IP encodes the URL's or PHP is doing that. I disabled magic_quotes some time ago, is it causing the problem?

Thanks!


TopoMotoV3X [ Sat 03 Jul, 2010 05:39 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Yes! It could be... You can enable and see if it works? Clean cache after it.


Danielc [ Sat 03 Jul, 2010 17:48 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Yes, it was. Icy Phoenix requires magic_quotes_sybase to be On. I don't think this is good. It's Deprecated in PHP 5.3.0

Thanks!

EDIT:

If i just enable magic_quotes_sybase it damages my page's style, so i disabled it till it is corrected in Icy Phoenix. I think i must enable all magic_quotes variables, but i want to avoid that.

Thanks!


Informpro [ Sun 04 Jul, 2010 00:12 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Hum, I think you got problems because you site were with magic_quotes.


Danielc [ Sun 04 Jul, 2010 02:29 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
So, what can i do?

Thanks for your help!


sunwest [ Tue 13 Jul, 2010 14:29 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\' In Every Code.
Has there ever been a resolution to this problem?


sunwest [ Mon 19 Jul, 2010 14:52 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Come on! Someone must have a resolution to this problem. Since magic quotes are no longer supported in php, this problem should not be happening.

Surely this must be serious enough for the author of this application to do something to correct it. If there is a fix, we need to know about it.


buldo [ Thu 22 Jul, 2010 02:14 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Danielc wrote: [View Post]
Do know how can i solve this problem?


Just try this [1] and let me know.

[1] http://www.icyphoenix.it/download.php?id=397


spydie [ Thu 22 Jul, 2010 12:07 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
@buldo . you need to be registrated to view or download


sunwest [ Thu 22 Jul, 2010 14:30 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Well that didn't accomplish anything! Buldo's link is worthless and the problem still exists.


buldo [ Thu 22 Jul, 2010 20:18 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
spydie wrote: [View Post]
@buldo . you need to be registrated to view or download


I have attached it here, this patch was provided directly by MG.


sunwest [ Fri 23 Jul, 2010 14:42 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Thanks buldo, that worked perfectly!


buldo [ Fri 23 Jul, 2010 19:11 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
sunwest wrote: [View Post]
Thanks buldo, that worked perfectly!


You have to say "Thanks" to MG!


spydie [ Fri 23 Jul, 2010 19:55 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
where I still wonder about is, why did´nt he post this here.

he´s suposed to be soporting Icy on it´s main page, I mean, This is his baby

and Bug fixes are suposed to be released on the main page


Danielc [ Sat 24 Jul, 2010 00:44 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Partially works.. It fixes the bug in CMS pages, but not in ACP (try changing Google Analytics code).

Thanks!


spydie [ Sat 24 Jul, 2010 01:49 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
same happens , if you try to put an image as spacer for the signature.

had to do it directly in database


buldo [ Sat 24 Jul, 2010 09:57 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
spydie wrote: [View Post]
where I still wonder about is, why did´nt he post this here.

he´s suposed to be soporting Icy on it´s main page, I mean, This is his baby

and Bug fixes are suposed to be released on the main page


It was a quick patch made nearly "on-the-fly" and, as Danielc notes, it has to be review.
BTW, as also someone noticed in this topic, it isn't properly a bug but depends by some server settings and in the SVN version it has been already fixed some months ago.
Next time, if ever will be , I will post here more quickly!


Danielc [ Sat 24 Jul, 2010 16:52 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
So, just wait?

Thanks!


buldo [ Sun 25 Jul, 2010 16:54 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Danielc wrote: [View Post]
So, just wait?


I think, in general, that the best thing we can do is to give him a detailed description of the problem, screenshots and all the informations that may lead him to understand where/what the issue was, so let's give to him more datails as possible and surely MG will try to help us as soon as he can.


Mighty Gorgon [ Wed 28 Jul, 2010 00:11 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
It should be definitely fixed in SVN, I will have a look as soon as I have some free time on latest stable release.

Thanks.


Danielc [ Thu 29 Jul, 2010 00:48 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Thanks!!! I'll wait!


Mighty Gorgon [ Mon 02 Aug, 2010 23:07 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
You can try to edit adm/admin_board_extend.php

Try to edit this part:
Code: [Hide] [Select]
case 'HTMLVARCHAR':
case 'HTMLTEXT':
//$$field_name = trim(str_replace("\'", "''", $_POST[$field_name]));
$$field_name = trim($_POST[$field_name]);


Code: [Hide] [Select]
case 'HTMLVARCHAR':
case 'HTMLTEXT':
$$field_name = trim(stripslashes($_POST[$field_name]));


Danielc [ Tue 03 Aug, 2010 01:07 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Perfectly.. Seems to be working fine.... One question... Why do you write two "$" in the code? ($$field_name)

Thanks!


spydie [ Tue 03 Aug, 2010 13:48 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Just tested, and still not working , if you try to put an image path into signature separator.

Example this code : <center><img border="0" src="http://www.my_site.com/images/sf.png"></center>

comes out like this: <center><img border=\"0\" src=\"http://www.my_site.com/images/sf.png\"></center>


Danielc [ Wed 04 Aug, 2010 02:53 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Seems like Icy Phoenix DOES like Magic Quotes


Mighty Gorgon [ Thu 05 Aug, 2010 14:35 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
spydie wrote: [View Post]
Just tested, and still not working , if you try to put an image path into signature separator.

Because that is related to a different file.

I'll provide a temporary fix for that as well.


tormentor [ Sun 15 Aug, 2010 17:46 ]
Post subject: Re: Icy Phoenix Replaces '"' To '\"' In Every Code.
Pssst...

the same happpens in the download page (I opened a topic about it )

And, in the album, if a quote or double quote is inserted in the title or a picture's description.

if you upload a file with quotes or double quotes the same mess happens...




Powered by Icy Phoenix