Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.6k views
in Plugins by
edited by

hello 

 

i got this problem after update Q&A Script  and add CKEditor4 Editor and seo plugin

 

i got this msg from email when anyone answer me

 

i think the problem from using CKEditor4 Editor !!

 

 

by
It's not so clear, you should explain *where* that image has been taken, and *how* you arrive at that page (if needed). Furthermore, what do you mean with "after update" ? Which was the situation *before* ? And *after* ?
by
i edit the post again , thnx
by
1) What do you mean with anyone "answer to me" ? Someone is answering to a question you have posted on your q2a ?
2) are you using any "notifications" plugin ? (see the email that you receive from q2a)
by
when someone answer a question on http://soualwjoab.com i got this mail for this answer :)

i am not using notifications plugin
by
which editor were you using before ? did you customize it for rtl ?
can you post the link to the answer corrisponding on your site to the above image ?
by
i was used WYSIWYG Editor , maybe i am not remmber that  !!

http://soualwjoab.com/5467/
by
it is not solve until now :( plz help us
by
Which is exactly the "seo plugin" that you are using ?
by
What is your version of the now Q2A?
by
@sama55 looking at the website (and the URLs invoked) I think it's a 1.6.3. I've tried to reproduce the issue with a new 1.6.3 installation and the CKEditor4 plugin (using the same posts in Arabic language as above, creating them also with the default wysiwyg editor), but everything is ok from my tests....
by
Thanks maxj. Since CKEditor is not related to email encoding, there may be any other conditions. If other plugins become clear, cause may be found. e.g. Q2A-Ultimate-SEO / Q2A-SEO-Links
Keyword for investigation:
overrided qa_sanitize_html() / qa_html_convert_urls() function?
(I do not have confidence...)
by
Perfect. I added and enabled that plugin (Seo-links) to my test-case and I was able to reproduce the issue that you have.
by
Same behaviour using the default wysiwyg editor or the CKEditor4 plugin.

2 Answers

+1 vote
by
edited by

i try to solve it using this config

 config.language = 'ar';

it is work without any html tag

but when i am use any tag like

<p><span style="font-family:tahoma,geneva,sans-serif;">يمكنك تجربة خاصية الانبوكس عبر هالرابط</span></p>

the problem is not solve :(

 

+1 vote
by
edited by

Ok, as said in the comments I've reproduced the issue.

It arises using the current codeline of Q2A-SEO-links, and it's not due to the CKEditor4 plugin.

Solutions :

1) (quick&dirty)

temporarily remove the Q2A-SEO-links plugin from your

[q2a-root]\qa-plugin\

folder

(and wait for a patch for it)

2) apply the following patch (that I've used and seems to work in my test-case) :

change this line inside the qa-seo-links.php file

from :
$safe = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), $dom->saveHTML()));
to :
$safe = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), html_entity_decode($dom->saveHTML(),ENT_QUOTES,'utf-8')));
In my test case it solves the problem.

However keep in mind that I'm not the developer of the plugin ( nor I'm a php developer ! smiley).

So the right way in both cases should be that of waiting for the official patch smiley

 

EDIT :

deleted the previous instruction :

$safe = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), html_entity_decode($dom->saveHTML(),ENT_QUOTES,$encod)));

(see the comments below)

by
some link convert to dofollow other no , it is "Convert all internal link relations to DOFOLLOW " already
by
Thanks, this confirms my findings.
There are 2 different issues :

Issue 1)
the one you opened with this question : notifications sent by email contain wrong chars.

Issue 2)
internal links' relationship conversion : there are some use cases in which it does not work.

Solutions :

Issue 1)
see my comments above. Change line 73 of the  qa-seo-links.php file
from :
$safe = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), $dom->saveHTML()));
to :
$safe = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), html_entity_decode($dom->saveHTML(),ENT_QUOTES,'utf-8')));

Issue 2)
I've not idea :-)

However I'll have a look into issue 2) too, but I think it must be kept *separate* from this "thread", where we are talking about another issue, that in my opinion is now solved :
see the solution above to the "Issue 1)".

If you agree I would close this thread :-)
by
I've updated my answer
by
it is okey ,
thanks for replay
...