• Resolved Lovro Hrust

    (@lovor)


    Hi, live preview does not work and produces error both in Chrome and Firefox;
    log:

    [15-Jan-2025 18:14:43 UTC] JavaScript Debug: Number of open Playground tabs is: 1
    [15-Jan-2025 18:14:44 UTC] JavaScript Warn: The “pluginZipFile” option of the “installPlugin” step is deprecated. Use “pluginData” instead.
    [15-Jan-2025 18:14:44 UTC] JavaScript Warn: The “pluginZipFile” option of the “installPlugin” step is deprecated. Use “pluginData” instead.
    [15-Jan-2025 18:15:02 UTC] JavaScript Warn: The “pluginZipFile” option is deprecated. Use “pluginData” instead.
    [15-Jan-2025 18:15:03 UTC] PHP Fatal: PHP.run() failed with exit code 255 and the following output: Error: PHP.run() failed with exit code 255 and the following output:
    at PHP.run (https://playground.wordpress.net/worker-thread-4d378c80.js:53:1888)
    at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-4d378c80.js:4:9449)
    [15-Jan-2025 18:15:03 UTC] JavaScript Error: PHP.run() failed with exit code 255 and the following output:
    Error: PHP.run() failed with exit code 255 and the following output:
    at PHP.run (https://playground.wordpress.net/worker-thread-4d378c80.js:53:1888)
    at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-4d378c80.js:4:9449)
    [15-Jan-2025 18:15:03 UTC] JavaScript Error: Error when executing the blueprint step #0 ({“step”:”installPlugin”,”pluginZipFile”:{“resource”:”wordpress.org/plugins”,”slug”:”domain-mapping-system”},”options”:{“activate”:true},”pluginData”:{“resource”:”wordpress.org/plugins”,”slug”:”domain-mapping-system”}}) : PHP.run() failed with exit code 255 and the following output:
    Error: Error when executing the blueprint step #0 ({“step”:”installPlugin”,”pluginZipFile”:{“resource”:”wordpress.org/plugins”,”slug”:”domain-mapping-system”},”options”:{“activate”:true},”pluginData”:{“resource”:”wordpress.org/plugins”,”slug”:”domain-mapping-system”}}) : PHP.run() failed with exit code 255 and the following output:
    at Object.run (https://playground.wordpress.net/assets/index-7eeeccac.js:905:146713)
    at async Vu (https://playground.wordpress.net/assets/index-7eeeccac.js:905:148232)
    at async nc (https://playground.wordpress.net/assets/index-7eeeccac.js:905:149113)
    at async https://playground.wordpress.net/assets/main-eaa04db9.js:151:2437
    [15-Jan-2025 18:15:03 UTC] WordPress database error

    MySQL query:

    SELECT * FROM wp_dms_mappings WHERE 1 AND host = ‘example.com:443’

    Queries made or created this session were:

    1. Executing: BEGIN | (no parameters)
    2. Executing: SELECT * FROM wp_dms_mappings WHERE 1 AND host = :param0 | parameters: example.com:443
    3. Executing: ROLLBACK | (no parameters)

    Error occurred at line 4164 in Function handle_error. Error message was: SQLSTATE[HY000]: General error: 1 no such table: wp_dms_mappings.

    Backtrace: #0 /internal/shared/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-db.php(287): WP_SQLite_Translator->get_error_message() #1 /wordpress/wp-includes/class-wpdb.php(3): WP_SQLite_DB->query(‘SELECT * FROM ...') #2 /wordpress/wp-content/plugins/domain-mapping-system/includes/data-objects/class-dms-data-object.php(143): wpdb->get_results('SELECT * FROM…’, ‘ARRAY_A’) #3 /wordpress/wp-content/plugins/domain-mapping-system/includes/data-objects/class-dms-mapping.php(139): DMS\Includes\Data_Objects\Data_Object::wpdb_where(Array, 1, 0, ”, ‘ASC’) #4 /wordpress/wp-content/plugins/domain-mapping-system/includes/frontend/class-dms-frontend.php(289): DMS\Includes\Data_Objects\Mapping::where(Array) #5 /wordpress/wp-content/plugins/domain-mapping-system/includes/frontend/class-dms-frontend.php(183): DMS\Includes\Frontend\Frontend->define_whether_is_dms_hosted() #6 /wordpress/wp-content/plugins/domain-mapping-system/includes/frontend/class-dms-frontend.php(337): DMS\Includes\Frontend\Frontend->__construct(‘http://playgrou…’, ‘domain-mapping-…’, ‘2.2.3’, ‘/wordpress/wp-c…’) #7 /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms.php(295): DMS\Includes\Frontend\Frontend::get_instance(‘http://playgrou…’, ‘domain-mapping-…’, ‘2.2.3’, ‘/wordpress/wp-c…’) #8 /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms.php(106): DMS\Includes\DMS->define_frontend() #9 /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms.php(307): DMS\Includes\DMS->__construct() #10 /wordpress/wp-content/plugins/domain-mapping-system/dms.php(53): DMS\Includes\DMS::get_instance() #11 /wordpress/wp-content/plugins/domain-mapping-system/dms.php(59): DMS() #12 /wordpress/wp-admin/includes/plugin.php(2): include_once(‘/wordpress/wp-c…’) #13 /wordpress/wp-admin/includes/plugin.php(2): plugin_sandbox_scrape(‘domain-mapping-…’) #14 /internal/eval.php(20): activate_plugin(‘domain-mapping-…’) #15 {main}

    for query SELECT * FROM wp_dms_mappings WHERE 1 AND host = ‘example.com:443’ made by activate_plugin, plugin_sandbox_scrape, include_once(‘/plugins/domain-mapping-system/dms.php’), DMS, DMS\Includes\DMS::get_instance, DMS\Includes\DMS->__construct, DMS\Includes\DMS->define_frontend, DMS\Includes\Frontend\Frontend::get_instance, DMS\Includes\Frontend\Frontend->__construct, DMS\Includes\Frontend\Frontend->define_whether_is_dms_hosted, DMS\Includes\Data_Objects\Mapping::where, DMS\Includes\Data_Objects\Data_Object::wpdb_where, WP_SQLite_DB->query, WP_SQLite_DB->print_error
    [15-Jan-2025 18:15:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined function DMS\Includes\WP_Filesystem() in /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms-activator.php:147
    Stack trace: 0 /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms-activator.php(26): DMS\Includes\Activator->create_dms_mu_helper() 1 /wordpress/wp-includes/class-wp-hook.php(3): DMS\Includes\Activator->activate(false) 2 /wordpress/wp-includes/class-wp-hook.php(3): WP_Hook->apply_filters(NULL, Array) 3 /wordpress/wp-includes/plugin.php(2): WP_Hook->do_action(Array) 4 /wordpress/wp-admin/includes/plugin.php(2): do_action(‘activate_domain…’, false) 5 /internal/eval.php(20): activate_plugin(‘domain-mapping-…’) 6 {main}

    thrown in /wordpress/wp-content/plugins/domain-mapping-system/includes/class-dms-activator.php on line 147

Viewing 1 replies (of 1 total)
  • Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @lovor

    Preview mode doesn’t currently work with domain mapping as it involves some additional code. We’ve added this on our to-do list but need to find a suitable way without hindering website performance.

Viewing 1 replies (of 1 total)

The topic ‘Live preview not working’ is closed to new replies.