• Resolved julija4894

    (@julija4894)


    I get this error on the Setting page: An unexpected error occurred.

    Here I copied error:

    Page: /settings/global
    Error: @https://network.com/wp-content/plugins/better-wp-security/dist/packages/data.js:1:25386
    @https://network.com/wp-content/plugins/better-wp-security/dist/packages/data.js:1:25751
    reduce@[native code]
    @https://network.com/wp-content/plugins/better-wp-security/dist/packages/data.js:1:25673
    o@https://network.com/wp-content/plugins/better-wp-security/dist/761.js:1:1445
    @https://network.com/wp-content/plugins/better-wp-security/dist/pages/settings.js:1:12523
    l@https://network.com/wp-includes/js/dist/data.min.js:2:19687
    p@https://network.com/wp-includes/js/dist/data.min.js:9:2122
    @https://network.com/wp-includes/js/dist/data.min.js:9:2215
    $e@https://network.com/wp-includes/js/dist/data.min.js:9:2644
    he@https://network.com/wp-content/plugins/better-wp-security/dist/pages/settings.js:1:12385
    Ur@https://network.com/wp-content/plugins/better-wp-security/dist/pages/settings.js:1:49799
    kt@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:47634
    js@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:120748
    kl@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88656
    yl@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88584
    vl@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:88447
    cl@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:85604
    zn@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:32471
    dl@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:86100
    @https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:99556
    na@https://network.com/wp-includes/js/dist/vendor/react-dom.min.js:10:99586

    Could you help me please with this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @julija4894, happy to help!

    Can you check if the error persists when only the Solid Security Basic plugin is active on your site while also switching to a default WP theme?

    If it does, please enable WP Debug and check for any recent plugin-related errors inside the debug.log file. Here’s the code snippet to add to the wp-config.php file:

    // Turn debugging on
    define('WP_DEBUG', true);
    
    // Tell WordPress to log everything to /wp-content/debug.log
    define('WP_DEBUG_LOG', true);
    
    // Turn off the display of error messages on your site
    define('WP_DEBUG_DISPLAY', false);
    
    // Hide general PHP errors 
    @ini_set('display_errors', 0);

    We currently can’t replicate this issue in our test environments, so we’ll need your help in reproducing it.

    Looking forward to your feedback.

    After the latest update, my WordPress dashboard is no longer accessible; it seems your plugin is breaking all the administrator side CSS! Deactivating it brings everything back to normal.

    Thread Starter julija4894

    (@julija4894)

    Unfortunately, I don’t have access to the wp-config.php file.

    I want to add some details about this error:

    It happened only on next pages:

    Security > Settings > Global Settings

    Security > Settings > Features

    Security > Settings > Advanced

    Other pages work well.

    And I see these errors in the console:

    react-dom.min.js:10 TypeError: (0 , B.g4) is not a function
    at data.js:1:25386
    at c (data.js:1:25414)
    at data.js:1:25750
    at Array.reduce ()
    at data.js:1:25667
    at o (761.js:1:1440)
    at data.js:1:25942
    at t (data.min.js:2:8832)
    at data.min.js:2:15937
    at Object.r as getSettingsConditionalSchema

    react-dom.min.js:10 TypeError: Cannot read properties of undefined (reading ‘name’)
    at Se (data.min.js:2:19189)
    at c (data.min.js:2:19537)
    at data.min.js:2:20176
    at 1269.js:1:7713
    at f (data.min.js:9:2071)
    at l (data.min.js:2:19683)
    at Object.__unstableMarkListeningStores (data.min.js:2:20176)
    at data.min.js:9:2223
    at p (data.min.js:9:2121)
    at data.min.js:9:2214

    • This reply was modified 11 months, 3 weeks ago by julija4894.
    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @julija4894, thanks for the additional details! I’d recommend reaching out to your host for help in adding the WP Debug code snippet to your wp-config.php file, so we can check for plugin-related errors.

    Does it help if you clear all cache in this order: server cache -> CDN cache (if you use it) -> plugin cache -> browser cache? Does it persist on another browser?

    If the issue persists, please proceed with the conflict check steps detailed here: Checking for a Conflict, and let me know if the issue persists when only Solid Security Basic is activated on your site (it’s preferred to do the conflict check on a staging site). I’d also recommend re-installing the WP core files to see if that helps.

    Hi @tronky78bs, to follow the forum guidelines, could you please open a new support topic? Thank you.

    Thread Starter julija4894

    (@julija4894)

    Hi @shanedelierrr, thank you for your help.
    I got one more error in console: Uncaught Error: You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.
    And then I cleared plugin cache.

    And now everything is working well.

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @julija4894, I’m happy to hear that clearing the cache helped!

    That error (”?You tried to opt-in…“) message seems related to the WP core, and here is a similar thread. If that error pops up again, try to install the Gutenberg plugin and check if that resolves it.

    Feel free to open a new ticket if you need help with Solid Security!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘After updating I get error: An unexpected error occurred.’ is closed to new replies.