codemonkey-jack / shoestrap-3

A highly customizable WordPress theme with the ability to use multiple CSS frameworks
http://shoestrap.org
MIT License
396 stars 105 forks source link

LESS compiler locked me out of wp-admin (variable is undefined) #610

Open dominiquedutra opened 9 years ago

dominiquedutra commented 9 years ago

Hi there,

So I was using the Bootstrap > Advanced > LESS editor to write some custom CSS code. I used a variable that wasnst correctly declared and hit "save". That locked me out of the wordpress administration panel.

"variable @base is undefined" is the only output it shows (after login).

Best regards,

aristath commented 9 years ago

Hey there!

Try commenting out this line in your theme: https://github.com/shoestrap/shoestrap-3/blob/master/framework/bootstrap/class-SS_Framework_Bootstrap.php#L1013 Save the file and try to login again. This line parses the custom LESS... so it should allow you to login to your dashboard again. Once you login, fix your less and then uncomment that line and save your options. This should trigger the compiler again and allow your custom LESS to be compiled.

Let me know if that works for you!

dominiquedutra commented 9 years ago

Ari, Thanks alot for anwsering. You solution should work.

Too bad its too late for me. I tried going into the database and changing wp_options > shoestrap. Removed the variable that was causing trouble but something went wrong and now it seems all options are back to defaults (?) so I asume I must've done something wrong. Lost every change I made to the default shoestrap settings.

I gonna revert to my last vmware snapshot and start over, no big deal.

Best regards and thanks.

dominiquedutra commented 9 years ago

And for some reason I just changed alot of settings, and when I changed typography settings it all went back to defaults again.

s3w47m88 commented 9 years ago

I've encountered this issue multiple times as well. The work-around you've proposed worked, but - as I imagine you'd agree - we still need a permanent solution on this. If you could provide a little insight I could have one of my staff members patch this and submit it to the core.