• Resolved caesarsamsi

    (@caesarsamsi)


    I can’t install any of the starter templates. The install always fail at Site Content import process. If I install the site without site content it succeeds just fine.

    I’ve tried this with the other site templates and the same error happens.

    Is it an environment issue? A setting? I installed/followed Astra’s troubleshooting guide about resources, etc. already, no joy.

    The environment seems well enough as I can install OceanWP demo sites just fine, all working.

    { “message”: “There was an error on your website.”, “stack”: { “error-message”: “Uncaught Error: Typed property DOMElement::$tagName must not be accessed before initialization”, “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-wxr-importer.php”, “line”: 1613,

    “trace”: [ { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-wxr-importer.php”, “line”: 310, “function”: “parse_author_node”, “class”: “WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-astra-wxr-importer.php”, “line”: 445, “function”: “get_preliminary_information”, “class”: “WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-astra-wxr-importer.php”, “line”: 419, “function”: “get_data”, “class”: “Astra_WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/classes/class-astra-sites-importer.php”, “line”: 559, “function”: “get_xml_data”, “class”: “Astra_WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “prepare_xml_data”, “class”: “Astra_Sites_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/class-wp-hook.php”, “line”: 348, “function”: “apply_filters”, “class”: “WP_Hook”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/plugin.php”, “line”: 517, “function”: “do_action”, “class”: “WP_Hook”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-admin/admin-ajax.php”, “line”: 188, “function”: “do_action” } ] } }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @caesarsamsi,

    Sorry for the inconvenience. I am consulting the error message you shared with the team. Once I get something, I will share it here.

    I will keep you posted.

    Kind regards,
    Herman ??

    Thread Starter caesarsamsi

    (@caesarsamsi)

    Well, no thanks to BrainStorm support or in this forum I found the problem.

    JSON was not enabled on Apache. You can issue this URL https://yourwebsite/wp-json.

    JSON is enabled if the response looks something like this:

    name”Your wordpress site name”
    description””
    url”https://yourwordpresssiteURL”

    JSON is not enabled if the response is a 404 Page Not Found error.

    To fix this problem, edit your apache2.conf and make the following change to the <Directory /var/www section:

    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    Note that AllowOverride defaulted to None which disabled wp-json.

    • This reply was modified 9 months, 1 week ago by caesarsamsi.
    • This reply was modified 9 months, 1 week ago by caesarsamsi.
    • This reply was modified 9 months, 1 week ago by caesarsamsi.
    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi,

    Thank you for the update. Good to know that you have figured it out.

    Feel free to start a new thread if there’s anything else related to this plugin, we can help you with.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JSON error when importing site content’ is closed to new replies.