spatie / wordpress-ray

Debug with Ray to fix problems faster in WordPress apps
https://myray.app
MIT License
74 stars 14 forks source link

Wordpress Plugin version 1.0.2 not working as expected #22

Closed ajimatahari closed 3 years ago

ajimatahari commented 3 years ago

the github version (1.0.0) works fine. but then the plugin release on wordpress plugin repo (v1.0.2), I try to update it to 1.0.2, then the plugin not working. does not show anything on ray app.

Then i try to downgrade it again to version 1.0.0, it works again. so i think the bugs is exist on version 1.0.2

w3guy commented 3 years ago

I just came here to complain too.

https://github.com/spatie/laravel-ray/issues/92

Cc @freekmurze

jeffreyvr commented 3 years ago

Make sure your WP_ENVIRONMENT_TYPE constant is set in your wp-config.php file. If you don't, it will assume you are on a production environment - in which case Ray won't be enabled.

For local development specify:

define( 'WP_ENVIRONMENT_TYPE', 'local' );

More details: https://developer.wordpress.org/reference/functions/wp_get_environment_type/

ihorvorotnov commented 3 years ago

Make sure your WP_ENVIRONMENT_TYPE constant is set in your wp-config.php file. If you don't, it will assume you are on a production environment - in which case Ray won't be enabled.

This should be mentioned in the docs. WP_ENVIRONMENT_TYPE is quite new and not everyone uses it yet.

freekmurze commented 3 years ago

I'll be improving the environment check in 1.0.3 which will be released shortly: https://github.com/spatie/wordpress-ray/commit/9f84822115a6fae9867512f1db6a70688df1cc66

freekmurze commented 3 years ago

I think it's already mentioned in the docs. Feel free to send a PR to make things more clear (there's an edit button on every page)

ihorvorotnov commented 3 years ago

Yes, now it is (wasn't there the last time I checked). Things are changing fast! 😉