• 0

PageLess Page{LESS} error when using LESS


Question

Posted · Report post

So I've just bought the latest version of PageLess for DMS, and every time I try and put a LESS code or variable in the pageless custom script area my DMS just sits in the white screen "Loading DMS Editor"  If I disable the plugin everything works, or if I go to a page that doens't have any LESS in the custom script area it loads fine.

 

Thanks

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0

Posted · Report post

Hi sherman65616,

 

Sorry to hear you're having trouble.

 

Would you please identify the specific version of both DMS, and PageLESS that you're using?

 

I have tested the current version of PageLESS (1.2.2) with the latest release of DMS (1.1.2) and have not been able to reproduce your error.

 

I agree that it sounds like this may be PageLESS related from what you've described, but I need some more information.

 

If the DMS Editor is stuck loading, that generally implies a PHP error or a JS error.  JS errors are easy to find through the chrome dev tools console.  PHP errors need to be searched for (as the loading modal is covering everything).

 

The documentation for troubleshooting common issues is a good place to start: http://docs.pagelines.com/support-troubleshooting/common-issues

 

Please provide any screenshots if possible of any errors you find.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yeap, Page{less} Version 1.2.2 and DMS is Version 1.1.2

 

I don't get any errors just the loading page

 

http://screencast.com/t/JmCpiZF9su

 

is there a way i can go in a delete the custom script in the db

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I understand you're stuck with the editor loading, but for this to happen there is an error happening.  Without this information, I cannot help very much.

 

Do you have WP_DEBUG on?  If so, try turning it off and loading one of the problematic pages again.

 

About deleting the information in the database.. that could be dangerous, I do not recommend it.  It's part of the serialized array of DMS settings for that page, so my even modifying it directly in the DB, you risk losing all of your settings for that page.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have the same problem, I think I understood why in my case I had this problem. I created a color variable in the pagelines custom css/less section, and then in another page, I tried calling the color variable in the pageless section without declaring it. I think the compiler didn't like what I did.

 

To correct my code I need the page and the js to load. Is there any other way I can get to the code? my wp_debug is disable

I remember before dms, I would write the code in the backend. 

 

Any ideas? 

 

Thanks Evan!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, mrlipa

 

Your PageLESS code does not have access to variables you created in your theme or custom less input.  You can define "global" less variables that you can use everywhere.

 

When you say you could write the code in the back end, you're probably referring to editing a style.less file or maybe overriding one of the core .less files like variables.less.

 

If you're a LESS Developer customer, there is a built-in UI on the "Variables" page which allows you to easily create your own less variables using color pickers and other inputs.

You can start testing and using them as soon as the values are saved.

 

When you're ready to say export them to your theme, there is a tab there that gives you the code to use.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Evan I'll check it out. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now