Jump to content
justfitness

Less Compile Error...

Recommended Posts

justfitness    0
justfitness

Hi,

I have looked through a couple of other threads which had the same issue but I can't seem to sort this out.

Very sorry but I really don't have much of a clue when it comes to any of this stuff.

I enabled WP_DEBUG as mentioned by other posts and get this:

Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /home/content/61/7859861/html/wp-includes/functions.php on line 2724

Notice: Constant PLUGINDIR already defined in /home/content/61/7859861/html/wp-content/plugins/quick-notice/quick-notice.php on line 20

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/61/7859861/html/wp-includes/functions.php on line 2758

Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/61/7859861/html/wp-includes/functions.php on line 2758

Notice: Undefined variable: plugin in /home/content/61/7859861/html/wp-content/plugins/wp-fb-fan-box/wp-fb-fan-box.php on line 71

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: unregister_sidebar_widget is deprecated since version 2.8! Use wp_unregister_sidebar_widget() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: Undefined index: number in /home/content/61/7859861/html/wp-content/plugins/page-link-manager/page-link-manager.php on line 18

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2638

Notice: Use of undefined constant zframe - assumed 'zframe' in /home/content/61/7859861/html/wp-includes/widgets.php on line 324

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2722

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2722

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2722

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/61/7859861/html/wp-includes/functions.php on line 2722

I know it's a lot but I don't have a clue what to do :(

Thanks in advance for any help,

Justin

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

First thing to do, is disable WP_debug.

Once you have done that, can you reply here with the error you're receiving please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Hi,

First thing to do, is disable WP_debug.

Once you have done that, can you reply here with the error you're receiving please.

Ok thanks, I have disabled WP_DEBUG.

All that's happening is my whole dashboard is white and unusable, it does say:

"LESS Compile error!" in the top right, and when I hover over that it says:

"Error in custom Less code: parse error: failed at" ...and that's it.

Thanks

Share this post


Link to post
Share on other sites
Rob    547
Rob

Did you add any custom CSS code or plugins before this error started?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Did you add any custom CSS code or plugins before this error started?

No. I hadn't logged in for quite a while, I logged in yesterday and updated to the latest version of pagelines. And today when I went to do some stuff to the site I couldn't because it's all white apart from the menus.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Let's try some basic steps then.

Reactivate the debug so you can get into the Dashboard.

Deactivate all the non-PageLines plugins. If you have a cache plugin activated, clear the cache then deactivate it.

If you have custom CSS, copy it all. Go to this link. Click the "By direct input" tab and paste the CSS. Run the validation. Fix any errors found, then copy from the lower part of the results page and paste back to replace the original. Save.

Check to see if you find errors. If they've gone, it was one of those two things.

Now, in Dashboard > Plugins > Installed Plugins, reactivate the ones you deactivated one at a time, checking after each one. I'm pretty sure you'll find one that may have caused this. When you do, find a replacement for it, remove it then implement the replacement.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Hi,

Thanks for your reply. However I can't deactivate the plugins or do anything really because the whole dashboard is blank/white.

Share this post


Link to post
Share on other sites
catrina    103
catrina

Can you please upload a fresh version of the functions.php file to overwrite the one you have now? (This is where debug was enabled - perhaps that caused the Dashboard to go blank)


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Can you please upload a fresh version of the functions.php file to overwrite the one you have now? (This is where debug was enabled - perhaps that caused the Dashboard to go blank)

Hi,

Thanks, I uploaded a fresh functions.php file and still nothing :(

Share this post


Link to post
Share on other sites
Simon    247
Simon

PM me your admin login, i'll look at it for you.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Right, took a look in wp-admin, and it looks like you had put javascript in the CSS box. Common mistake lol.

http://screencast.com/t/8ajexxJj8aU5

Anyway the fix is simple, add this to customize plugins functions.php:

add_action( 'admin_init', function() { plupop( 'customcss', '' ); } );
Then load the frontend a couple of times, the backend will now load as customcss has been set to NULL. Here is a copy of your css so you can copy it back after:
input, textarea {
color: white;
}
.current_page_item a {
background: #0dff00 !important;
color:black !important;
}
.banner_container .banner-area {
padding: 0 0;
}
element.style {
margin-bottom: 0;
}
#branding .content-pad {
padding: 20px 0px 15px;
}
.jetpack_subscription_widget div {
background-color: black !important;
}
[/code]

  • Like 1

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Sorry, but where do I add this? I'm rubbish at this stuff.

Share this post


Link to post
Share on other sites
Simon    247
Simon

wp-content/plugins/pagelines-customize/functions.php, at the bottom of the file.

  • Like 1

Share this post


Link to post
Share on other sites
justfitness    0
justfitness

Ok I've done that, now I get this error:

Parse error: syntax error, unexpected T_FUNCTION in /home/content/61/7859861/html/wp-content/plugins/pagelines-customize/functions.php on line 45

Guess I did it wrong :(

Share this post


Link to post
Share on other sites
Simon    247
Simon

Ahh, its an old version of PHP, my bad:

add_action( 'admin_init', create_function( '', 'plupop("customcss", "");' ) );[/CODE]

  • Like 1

Share this post


Link to post
Share on other sites
Simon    247
Simon

Dont forget to remove the line, else it'll keep clearing that option.

  • Like 1

Share this post


Link to post
Share on other sites
Simon    247
Simon

The topic was marked as resolved.

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


  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • bnapoli
      By bnapoli+
      On my site www.modishmel.com I'm seeing the "blog post title" within the "pins" plugin section breaking words into multiple lines. See screenshot attached.
      Only seeing it in Firefox. Can you help?

    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
×