WordPress.org

Ready to get started?Download WordPress

Forums

Website destroyed - Parse error (10 posts)

  1. petersenpictures
    Member
    Posted 1 year ago #

    I can no longer login to my account. The only thing that shows on my screen when I try to reach my website or logon is this:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/56/9398856/html/Petersen Pictures/wp-content/themes/minimatica/functions.php on line 432

    Everything got wiped out when I changed a few characters of code following this post's instructions: http://wordpress.org/support/topic/edit-slider-captions?replies=2
    _________________________________________________________________________________
    Don't know if you're still trying, but I found the answer buried in another thread here.
    The default appears to show up to 55 words after the title of your post.
    Paste the following into your functions.php to alter that. (As shown, it will cut it down to 10)

    function minimatica_excerpt_length( $length ) {
    return 10;
    }
    add_filter( 'excerpt_length', 'minimatica_excerpt_length' );
    If you want no text beyond the post title, set the above to 0. However, by default (at least on mine) it was still adding a "..." as if there was additional text coming.

    To get rid of that, alter the minimatica_excerpt_more function to read:

    function minimatica_excerpt_more($more) {
    return '';
    }
    __________________________________________________________________________________
    I did the very last part above, replacing maybe 5 numbers, thinking it would just get rid of my subtext on the homepage, but now it totally wiped out my website. I can't even access my account now.

  2. CPC Mike
    Member
    Posted 1 year ago #

    Did you try reverting back to the default functions.php file?

  3. petersenpictures
    Member
    Posted 1 year ago #

    No. How would I do that? I'm not able to login any more.
    Thanks for your reply.

  4. CPC Mike
    Member
    Posted 1 year ago #

    Either through your hosting control panel (file manager) or through FTP:

    http://codex.wordpress.org/FTP_Clients

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Re-upload a fresh, unpacked, copy of your theme to wp-content/themes using FTP or whatever file management application your host provides.

  6. elvis89
    Member
    Posted 1 year ago #

    i also have a problem close to that
    my site http://kenyayote.com has suddenly gone blank, i can't access anything completely, what might be wrong?

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    @elvis89

    please start your own topic - to make the troubleshooting easier.

  8. elvis89
    Member
    Posted 1 year ago #

    @alchymyth
    okay thanks

  9. botmaster63
    Member
    Posted 1 year ago #

    I don't really know what caused this, but I get this error when I try to open the WP-control panel:Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/robsilve/public_html/thedietsolutionprogram123.com/wp-includes/template.php on line 137. If anyone has an answer to repairing this problem, I would greatly appreciate some assistance.

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @botmaster - you'll get better assistance if you start your own thread. Despite similarities, it's unlikely that you have the identical problem and it simply works better if you start a new thread.

Topic Closed

This topic has been closed to new replies.

About this Topic