Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #438486

    I am using the lastest version of your theme 3.1.5 and get error on yoast plugin when creating sitemap:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://www.psweb-test1.com/sitemap_index.xml
    Line Number 7, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//www.psweb-test1.com/main-sitemap.xsl”?>

    I have also disabled all plugins and still get issue, can you please help. I think this is to do with the amount of whitespace before the declaration.

    site is at http://www.psweb-test1.com

    Many Thanks

    Peter

    • This topic was modified 9 years, 7 months ago by condonpb.
    #439266

    Hey condonpb!

    Try activating just Enfold instead of your child theme to see what happens. Be sure to keep all plugins deactivated while testing.

    If that does not help then try completely deleting Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest.

    Best regards,
    Elliott

    #439282

    Hey!

    Try it now, that whitespace was caused by the code you have in the child theme functions.php.

    Cheers!
    Josue

    #439530

    Josue,

    I have tried this but still get error the only files I know that have been modified are the child functions.php file and also in the main enfold theme theme the Edit config-woocommerce > config.php,was replaced replace it with this code: http://pastebin.com/hjiKP5Jx which was suggested by Ismael.
    Can you please help

    Many thanks

    Peter

    #439835

    Does it get fixed if you revert that modification?

    Regards,
    Josue

    #439872

    Josue,

    I will try later tonight and get back to you.

    Pete

    #439876

    We looking forward to hearing from you :)

    Regards,

    Josue

    #440014

    Josue,

    I have done some testing and it looks as though the culprit is the child function.php file causing the issue. Could you help please as my php skills are somewhat lacking and I dont know how to detect any white space issues.
    Many Thanks

    Pete

    #441020

    Hey!

    so what happens if you remove Ismael’s code from your functions.php? does the issue goes away? after your testing which part of the code in your functions.php is causing the issue?

    Cheers!
    Andy

    #441149

    I was asking Josue for some help with the issue as I am unsure what part of the code is causing the problem. As I explained my php skills are very limited and was asking for help.

    • This reply was modified 9 years, 7 months ago by condonpb.
    #441209

    This is normally out of scope as it involves debugging something not made by us, however i managed to remove all unnecessary whitespace in your child functions.php, check if it got fixed.

    Regards,
    Josue

    #441259

    Josue,

    Many thanks that has done the trick, very much appreciated. Have a great weekend.

    Pete

    #441262

    You too Pete, glad to help :)

    Regards,
    Josue

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.