Jump to content


Photo
- - - - -

Fatal Error when attempted to add social media hook


  • Please log in to reply
4 replies to this topic

#1 MusicGal

MusicGal

    Member

  • Members
  • 24 posts
  • Framework Version:Pagelines
  • Country: Country Flag

Posted 23 March 2011 - 06:47 PM

Hello, I'm very new to PlatformPro (and html and CSS). I was trying to add social media icons via my functions.php when I created a fatal error on my website. Now I can't even login to my Wordpress Admin and my site is down. Any ideas on how to fix the problem?

#2 MusicGal

MusicGal

    Member

  • Members
  • 24 posts
  • Framework Version:Pagelines
  • Country: Country Flag

Posted 23 March 2011 - 06:52 PM

Please Login or Register to see this Hidden Content



#3 Sourena

Sourena

    Advocate

  • Members

  • 563 posts
  • LocationWilliamstown, MA
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 23 March 2011 - 06:56 PM

First I think you need to remove the hook from "function.php" to take back control of your website. Then place the hook here so the developers can see what is wrong with it.

#4 MusicGal

MusicGal

    Member

  • Members
  • 24 posts
  • Framework Version:Pagelines
  • Country: Country Flag

Posted 23 March 2011 - 07:03 PM

Okay. I fixed the problem by removing the hook from "function.php" after accessing it through my host. I think the problem is where I initially put the hook - at the bottom of the function.php file. Where should I be adding hooks?

#5 kgstew

kgstew

    Super Member

  • Members
  • 173 posts
  • Country: Country Flag

Posted 23 March 2011 - 07:21 PM

Hi Alaina, You will want to add your function above the sections area in the functions.php file. There is a line of code that reads function base_sections(){ Place your functions above this, although putting them below is not going to cause a problem either. If you receiving a fatal error it is most likely because your PHP syntax is incorrect. The error message should have given you a clue as to the problem but just make sure to create you function in the same form as the example in the functions.php file. Give it another shot and if you have another error, place post the error message as well as the PHP code you are using. Cheers, -Kyle