Jump to content


Photo
- - - - -

Error in custom LESS code - Admin white out


Best Answer marius42 , 13 February 2013 - 02:53 PM

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 :)

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 marius42

marius42

    Newbie

  • Members
  • 6 posts
  • Country: Country Flag

Posted 13 February 2013 - 02:00 PM

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



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 13 February 2013 - 02:08 PM

You need to remove everything in red:

 

<style type="text/css">

<!--


.moth {

    font-family: "goudy Old Style";

    font-weight: bold;

}

-->

</style>



#3 marius42

marius42

    Newbie

  • Members
  • 6 posts
  • Country: Country Flag

Posted 13 February 2013 - 02:27 PM

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.



#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 13 February 2013 - 02:29 PM

Not sure what that reply means.

 

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



#5 marius42

marius42

    Newbie

  • Members
  • 6 posts
  • Country: Country Flag

Posted 13 February 2013 - 02:35 PM

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 :)



#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 13 February 2013 - 02:37 PM

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



#7 marius42

marius42

    Newbie

  • Members
  • 6 posts
  • Country: Country Flag

Posted 13 February 2013 - 02:53 PM   Best Answer

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 :)



#8 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 13 February 2013 - 02:57 PM

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. 

Attached Files


  • marius42 likes this