Giter VIP home page Giter VIP logo

Comments (6)

eliot-akira avatar eliot-akira commented on May 18, 2024 2

The error is a known issue, as reported here:

And a pull request that aims to solve it:

from wordpress-playground.

dd32 avatar dd32 commented on May 18, 2024 1

The main issue was that Site Health expects to be running within a fully functional hosting environment, which while the WASM is mostly a fully functional PHP environment, it's actually a pretty limited hosting environment.

At the time, loopback http requests was also failing (as HTTP requests weren't supported), which caused a bunch of issues.

Ultimately, that would throw a whole bunch of warnings about how bad the hosting environment was :)

I'd recommend running it locally (That's not a hard thing to do) and disable the site health disabler, and work through anything that it flags up.

from wordpress-playground.

adamziel avatar adamziel commented on May 18, 2024 1

As of wp-now 0.1.54, the Site Health option is still available in the admin menu:

Screenshot 2023-06-20 at 11 26 04 Though it gives the following error:
Fatal error: Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /var/www/html/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-translator.php:2427 

To add to @eliot-akira’s response, this issue was about disabling site health in the in-browser version of Playground. It is not disabled in Wp-now as wp-now supports mysql

from wordpress-playground.

adamziel avatar adamziel commented on May 18, 2024

Could be useful (props to @dd32):

It looks like removing the view_site_health_checks cap can be done, by removing this function:
https://developer.wordpress.org/reference/functions/wp_maybe_grant_site_health_caps/
add_filter( 'user_has_cap', 'wp_maybe_grant_site_health_caps', 1, 4 );

from wordpress-playground.

swissspidy avatar swissspidy commented on May 18, 2024

I was very confused that Site Health was disabled/missing. Can this be reconsidered? Maybe we can patch core to add a function_exists check?

from wordpress-playground.

GaryJones avatar GaryJones commented on May 18, 2024

As of wp-now 0.1.54, the Site Health option is still available in the admin menu:

Screenshot 2023-06-20 at 11 26 04

Though it gives the following error:

Fatal error: Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /var/www/html/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-translator.php:2427 

from wordpress-playground.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.