Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress Plugin version 1.0.2 not working as expected #22

Closed
ajimatahari opened this issue Jan 14, 2021 · 6 comments
Closed

Wordpress Plugin version 1.0.2 not working as expected #22

ajimatahari opened this issue Jan 14, 2021 · 6 comments

Comments

@ajimatahari
Copy link

ajimatahari commented Jan 14, 2021

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
Copy link

w3guy commented Jan 14, 2021

I just came here to complain too.

spatie/laravel-ray#92

Cc @freekmurze

@jeffreyvr
Copy link
Sponsor Contributor

jeffreyvr commented Jan 14, 2021

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
Copy link

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
Copy link
Member

I'll be improving the environment check in 1.0.3 which will be released shortly: 9f84822

@freekmurze
Copy link
Member

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants