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

Prevent wordpress show blank page, when less issue #74

Open
TheZoker opened this issue Nov 7, 2014 · 3 comments
Open

Prevent wordpress show blank page, when less issue #74

TheZoker opened this issue Nov 7, 2014 · 3 comments
Labels

Comments

@TheZoker
Copy link

TheZoker commented Nov 7, 2014

Today I wrote a little issue in less saved the file and then I got a blank wordpress page.

There was no error and no hint.

Please fix that.

Thank you

@thom4parisot
Copy link
Owner

Was it a LESS stylesheet syntax error?

Have you got your WordPress back to normal? If so, what have you done to make it to go back to normal?

Thanks :-)

@TheZoker
Copy link
Author

TheZoker commented Nov 9, 2014

Yes it was a syntax error like:

.class1 {
 margin: 20px;
}
.class2 {
 .class1();

So the "}" was missing

Yes I got Wordpress back, just by adding the "}"

@thom4parisot
Copy link
Owner

Well you had a blank page because PHP error reporting is turned off by WordPress at some point I think.

If you had WP_DEBUG set to true, you would have seen the parsing error.

I recommend you to test your code in a local instance of your WordPress project rather than directly in production. The wp-less plugin simply follows your WordPress error display configuration.

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

No branches or pull requests

2 participants