Jump to content

Archived

This topic is now archived and is closed to further replies.

sherman65616

Page{LESS} error when using LESS

Recommended Posts

sherman65616

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
evan

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
sherman65616

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
evan

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
mrlipa

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
Guest

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

  • Similar Content

    • faagerritsen
      By faagerritsen
      Hi,
       
      for some reason the pageless css file is increasing the loadtime (file taks 1.6 to 2.8 sec to load). I'm talking about the Pageless file (http://afrankadvice.nl/?pageless=1_1409431991)  Can anybody help me to solve this issue so my site will load faster.
       
      Thanks
       
      Frank
    • clodis
      By clodis
      Today acquire page less, in my demosite not corectly work, if I digit a code esample  background-color:#D2691E;  pageless says ok , when refresh page , Dms says error loading, now I enable pageless.
    • layasamadhi
      By layasamadhi
      Basically I encountered this issue. Every time I refresh the page reappears the PageLines's logo and search box on navi(full). In practice I change the navi(full), hide the search box, replace the logo, public the changes and after page refreshing the disaster. PageLines's logo and search box reappear.    I went crazy for two weeks. I tried to isolate the problem and in the end I found the accused plugin: Page{Less}.   When Page{Less} is off everything works. When active the problem persists.
    • layasamadhi
      By layasamadhi
      I placed the update to DMS2 but I lost all previous css settings.  In practice there is no longer the section for custom the page-specific css, relating to the plugin Page{Less}. Why?   The plugin has been updated to work with DMS2?
    • layasamadhi
      By layasamadhi
      I just purchased the plugin and I'm testing it. Home page everything is ok but all the other pages something strange happens.   The problem is that the css code only works with Chrome.    With Firefox and Explorer doesn't recognize it. Why?
×