• Resolved vivhutnest

    (@vivhutnest)


    Hi when access my WP website, it shows:

    Parse error: syntax error, unexpected ‘.’ in /home/content/p3pnexwpnas03_data02/18/2320918/html/wp-content/themes/listify-child/functions.php on line 13

    please help!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Can you post the first 20 lines of functions.php here, that way we can see where you’ve made a typo.

    Thread Starter vivhutnest

    (@vivhutnest)

    hey mark! I have no idea where to get them! i’m a beginner ??

    Did you make any changes in the file functions.php that’s located in the directory /wp-content/themes/listify-child ?

    If you haven’t, could someone else have?

    That’s the file I need to see the contents of.

    Thread Starter vivhutnest

    (@vivhutnest)

    yes i did make a change in functions.php once I entered some snippets, this happened!

    Thread Starter vivhutnest

    (@vivhutnest)

    i copy/pasted THIS into function.php

    You have added CSS code to a PHP file. Those are two different languages and can’t be mixed up.

    Remove the code you’ve added in functions.php to get the site up and running again.

    If you’re a self-proclaimed beginner, it’s best not to mess with any PHP files. ??

    Thread Starter vivhutnest

    (@vivhutnest)

    i will not make stupid mistakes again! ??

    but how do I remove the codes please? i can’t access my dashboard?

    Thread Starter vivhutnest

    (@vivhutnest)

    Mark, Do I do this via phpmyadmin by godaddy?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @vivhutnest Please do not create duplicate topics, those get deleted when found.

    1. Using FTP or whatever file management tools your host has provided you with navigate to the /home/content/p3pnexwpnas03_data02/18/2320918/html/wp-content/themes/listify-child/ directory.
    2. Once there locate and rename the functions.php file to functions.php-old. Just that one file and nothing else.
    3. Try and re-login to your WordPress dashboard.

    If you do not have the file access (this does not need a working WordPress dashboard) then perhaps your host provider can assist you.

    IAmVincentLiu

    (@iamvincentliu)

    Do you remember how you inserted the code snippets in the first place? Remove them the way you inserted them.

    Thread Starter vivhutnest

    (@vivhutnest)

    @vincent

    I did it via : Dashboard > Appearance > editor. but now I can’t log into dashboard!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I did it via : Dashboard > Appearance > editor. but now I can’t log into dashboard!

    Yes. At the moment your WordPress dashboard will not work. You have to get to that damaged functions.php file outiside of the WordPress dashboard. Your WordPress dashboard is broken till you fix that file.

    Once again. ??

    1. Using FTP or whatever file management tools your host has provided you with navigate to the /home/content/p3pnexwpnas03_data02/18/2320918/html/wp-content/themes/listify-child/ directory.
    2. Once there locate and rename the functions.php file to functions.php-old. Just that one file and nothing else.
    3. Try and re-login to your WordPress dashboard.

    If you do not have the file access (this does not need a working WordPress dashboard) then perhaps your host provider can assist you.

    It’s a quick fix but you need file management outside of WordPress to do it. If you don’t have that level of access then your host provider may be able to assist you.

    Thread Starter vivhutnest

    (@vivhutnest)

    @jan it worked! cheers! I used Cyberduck to change the functions.php file to functions.php-old.

    what do I do now to prevent any further problem? Do I need to remove the CSS codes i put into function.php?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Do I need to remove the CSS codes i put into function.php?

    Yes. ??

    If it doesn’t work after you change it then just rename the file again and see if you can restore an old copy of that file prior to your editing it.

    Thread Starter vivhutnest

    (@vivhutnest)

    @jan, you the man!

    thanks a lot!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘can't access my WP website!’ is closed to new replies.