Jump to content
marius42

Error in custom LESS code - Admin white out

Recommended Posts

marius42    0
marius42

I am having a problem after upgrading to Pagelines from
Platform Pro. White screen on admin and the "Error in custom LESS code:
parse error: failed at `" in the top site option tab. My custom code is :


 


#page-canvas{border:5px solid #5c585c;}

h3.widget-title {color: #cccccc; background: #333333; padding-left: 10px;}


#nav_row.main_nav {    border-top: 2px solid grey; border-bottom: 2px solid grey;}

#column-main .mcolumn-pad {padding-top:20px ; border-right: 2px solid grey; border-left: 2px solid grey;}


<style type="text/css">

<!--

.moth {

    font-family: "goudy Old Style";

    font-weight: bold;

}

-->

</style>


 


Not sure what the problem is, unless it is the commenting out stuff?
Any help on what it may be and how, with a few specifics please, I can
hunt down the problem in the db and fix it would be appreciated.

 

After running debug I get;
 

Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /hermes/bosoraweb039/b11/nf.thevirgincure/public_html/amimckay.com/wp-includes/functions.php on line 2839

Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /hermes/bosoraweb039/b11/nf.thevirgincure/public_html/amimckay.com/wp-includes/functions.php on line 2959

Notice: Undefined index: page in /hermes/bosoraweb039/b11/nf.thevirgincure/public_html/amimckay.com/wp-content/plugins/gigs-calendar/gigs-calendar.php on line 886
Skip to main content
 

so it may be the gigs plug-in, but not sure.

 

Ian

Share this post


Link to post
Share on other sites
Simon    247
Simon

You need to remove everything in red:

 

<style type="text/css">

<!--


.moth {

    font-family: "goudy Old Style";

    font-weight: bold;

}

-->

</style>

Share this post


Link to post
Share on other sites
marius42    0
marius42

I I am not sure how/where to remove that code as I can't see anything in my admin. What CSS/PHP file or where in the db would I find that code to remove it? sorry for being a little slow this morning.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Not sure what that reply means.

 

The css you posted in the opening post should NOT contain the lines i highlighted in red.

Share this post


Link to post
Share on other sites
marius42    0
marius42

I am unable to see the pagelines editing pages so I cannot simply change the css as I would normally. How can I remove the lines. Using FTP, what file contains the custom CSS that is causing the problem so I can open and edit it? Thanks for the quick reply BTW :)

Share this post


Link to post
Share on other sites
Simon    247
Simon

It isn't stored in a file. I'll make a plugin to fix it just give me a minute.

Share this post


Link to post
Share on other sites
marius42    0
marius42

I have managed to track down the bad pieces of code in the WP Db and deleted them. It seems to have done the trick as I can see the admin page once again. Thanks again for all your help :)

Share this post


Link to post
Share on other sites
Simon    247
Simon

Damn wasn't quick enough!

 

For future reference here is a quick plugin that deletes the custom css from the db and then self deactivates. 

fix_css.zip

  • Like 1

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


×