1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Some error showing on the website's home page....

Discussion in 'Site & Server Administration' started by Ariq, Aug 21, 2012.

  1. #1
    Soo there's this website which I sold someone... http://trendinglikes.com/ .... and now there's some error being shown on its homepage.... after I transferred all the files to it....
    It'd be really appreciable if someone help me fix this... ^_^
    SEMrush
     
    Ariq, Aug 21, 2012 IP
    SEMrush
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    229
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    It's a warning not an error and it looks like the issue is coming from 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/37/9677237/html/LIKES/inc/libs/MySQL_connection.php on line 36'.

    so your script cannot connect to the MySQL server for some reason. What you should check is that MySQL is running on the server and that the MySQL credentials your script is using are the correct ones.

    you can also use php's error_reporting() function to disable the warning from being displayed on the page.
     
    RoseHosting, Aug 21, 2012 IP
  3. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #3
    Did you also transfer the database?
     
    Ray Baron, Aug 22, 2012 IP
  4. Ariq

    Ariq Active Member

    Messages:
    103
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    can you help me fix this... imma total noob in this stuff... :S


    I did.... :/
     
    Ariq, Aug 22, 2012 IP
  5. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #5
     
    Ray Baron, Aug 22, 2012 IP
  6. linux7802

    linux7802 Active Member

    Messages:
    110
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    As per the following logs, it seems to be that mysql setting is wrong in the file MySQL_connection.php, make sure that you have set the correct mysql server name in the file MySQL_connection.php, if everything is set correctly than make sure that mysql is up and running...

    : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/37/9677237/html/LIKES/inc/libs/MySQL_connection.php on line 36
     
    linux7802, Aug 22, 2012 IP
  7. UnderWaterPc

    UnderWaterPc Well-Known Member

    Messages:
    1,072
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    135
    #7
    the problem is fixed the only thing the was wrong was the files was labeled wrong but thanks to all who tried to help
     
    UnderWaterPc, Aug 24, 2012 IP
  8. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #8
    Can you expand on "files was labeled wrong" a bit so we can all benefit from your fix?
     
    Ray Baron, Aug 25, 2012 IP
  9. UnderWaterPc

    UnderWaterPc Well-Known Member

    Messages:
    1,072
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    135
    #9
    index, html file,config.php was wrong and i the wrong folder which gave me those errors
     
    UnderWaterPc, Aug 26, 2012 IP
  10. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #10
    Did you see that this has been solved?

    If you want people to see your signature, there are a lot of posts that haven't been solved. :rolleyes:
     
    Ray Baron, Aug 28, 2012 IP
  11. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #11
    Well, since you asked ;) you can tell whether it has been solved by reading the thread. That way, you would know that the OP related that he had transferred the database just a few posts before your comment that he needs to transfer the database. Just sayin' ...
     
    Ray Baron, Aug 28, 2012 IP