Prosite site confirmation page is not showing

Prosite site confirmation page is not showing. We have the loading "Processing.." and the confirmation is not load.
We receive the emails, the new blog and new user is create but we don't have the confirmation page.

  • Kasia Swiderska

    Hello Kamy,

    From what I observed there is a problem with parsing XML:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://www.we--------.one/ajax
    Line Number 2, Column 1: ajax:2:1
    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://www.we--------.one/pro-sites/?blog_template=1&action=new_blog
    Line Number 2, Column 1: pro-sites:2:1

    Usually, this is caused by white spaces (or other 'invisible' characters in PHP files). This can be caused by having closing PHP tags followed by spaces or tabs or newline at the end of the included files.

    You would need to check on site where Pro Site is installed if there are spaces or enters at the beginning or after closing tag ?> of the files (not on staging where the iframe is).
    Files like wp-config.php or functions.php are usually the culprits but if those are not there then it can be any PHP file from theme or plugin - so I would recommend running full plugin/theme test as described in getting support manual E. Plugin Conflict Test
    https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-2 - if after checking few files you will not find anything. (Make sure you have a backup of the site making any changes).

    kind regards,
    Kasia

  • Kamy

    Hello Kasia,

    Thanks for your answer. We have found the error. We have add a custom plugin to inject MixPanel (tracking code) and this code create the conflit with the processing of ProSite confirmation page.

    // MixPanel linked FrontEnd
    function mixpanel_frontend()
    {
    ?>
    <!-- start Mixpanel --><script type="text/javascript">
    ::: SCRIPT CODE GIVE BY MIXPANEL:::: </script><!-- end Mixpanel -->
    <?php
    }
    add_action('wp_head', 'mixpanel_frontend');

    // MixPanel linked to Backend
    function mixpanel_backend()
    {
    ?>
    <!-- start Mixpanel --><script type="text/javascript">::: SCRIPT CODE GIVE BY MIXPANEL:::: </script><!-- end Mixpanel -->
    <?php
    }
    add_action('admin_head', 'mixpanel_backend');

    Do you know why these add_action to inject JS create this bug with Pro Site ?
    Witch way to use MixPanel tacking code with Pro Site ?

    Thx

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.