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

hello 

i have this error in my  sitemap error , any help please 

 

Q2A version: latest
by
probably the generated xml has extra chars. can you post the link to your website ?
by
hello

this is my website http://residanat.org/sitemap.xml
by
do you see any error in your error log file ?
by
no any error
by
You have a server side error.
If you go to Admin-->Plugin ---> XML Sitemap ---> options
and **uncheck** all the flags + save changes
does it work ?
by
yes it's work i uncheck  all the flags  and it's ===> donne

 and when i  chack  ''Include question pages '' ====> Error

the source of error is ''Include question pages '' any solution for this ?

and thank you for help
by
if it works, enabling and excluding the flags one by one, you should be able to identify if the issue is on question pages,  user pages or tags.
by
yes i enabling one by one and the problème it's in '' Include question pages ''
by
Replace (temporarily) your qa-plugin\xml-sitemap\qa-xml-sitemap.php file with this one :

https://www.dropbox.com/s/x0zd67u8n8ialoi/qa-xml-sitemap.php

and see if you get some more infos...
Run a test enabling only the "include question pages" flag, then check your error log file.
by
the same problème

when i check  '' include question pages '' i have this error :
This page contains the following errors:

error on line 4 at column 177: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Fatal error: Call to undefined function qa_block_words_to_preg() in /home/adm43162/public_html/qa-include/qa-base.php(510) : eval()'d code on line 19
by
Post the content of your error log file, it has now debug infos
by
by
edited by
1) go to Admin-->posting--->Censored words and delete ALL the words you've inserted there (the textarea must be blank) AND click on "save options" at the bottom
(save them in your blocknotes :-)  )

2) run again the test enabling only the "include question pages" flag, and post again the updated error log file (just replace it in dropbox, the link should not change...)
by
there are any word  in censored words it's blank  

But i  have  '' URL Customizer v1.0 par QA-Themes.com '' plugin (https://github.com/Towhidn/Q2A-URL-Customizer )   and whene i desabled it  the sitemap work perfectly
by
ok, so that's the problem.

You should open an issue here :
https://github.com/Towhidn/Q2A-URL-Customizer/issues

so that the code of the plugin is fixed
by
Fatal error: Call to undefined function qa_block_words_to_preg() in ..... : eval()'d code on line 19

Line 19 :

https://github.com/Towhidn/Q2A-URL-Customizer/blob/f3fd555e71548090846df84897c838ea365227c2/q2a-url-customizer/url-customizer.php#L19
by
Wait...
Just to exclude other issues....
Run one more test :
1) put 1 censored word inside Admin-->posting--->Censored words , save options
2) disable the Q2A-URL-Customizer plugin
3) run a test  enabling only the "include question pages" flag

Does it work or not ?
by
yes it's work perfectly
by
and thank tou very much for your help
by
ok, so (using censored words) we should have excluded an issue relative to the qa-util-string.php and the qa_block_words_to_preg function.

I think that *replacing* the line 19 in this file :
https://github.com/Towhidn/Q2A-URL-Customizer/blob/f3fd555e71548090846df84897c838ea365227c2/q2a-url-customizer/url-customizer.php#L19

 that is the line :

                 $word_list = qa_block_words_to_preg($words);

with these 2 lines :

        require_once QA_INCLUDE_DIR.'qa-util-string.php';
        $word_list = qa_block_words_to_preg($words);

should solve the issue
by
Yeeeeeeeees it's work  
thank you very very much  sir for your help

Please log in or register to answer this question.

...