WordPress.org

Forums

[resolved] Parse error... rebuild req? (3 posts)

  1. WelshDog
    Member
    Posted 11 months ago #

    Link to my site:: http://www.opinionaustralia.com
    WP Ver: not sure 3.8 poss
    Default Forum Language: English
    Theme name and version: Modern Paper
    Browser Name and Version: Chrome 28 (I think)
    PlugIns installed: Stop Spammer, Akismet, sharepress, jetpack, disqus-comment-system, 1-flash-gallery

    Related Error messages: Parse error: syntax error, unexpected '<' in /home/opinion/public_html/wordpress/wp-config.php on line 5

    The above Parse Error is related to line 5. Here are the top 6 lines.

    <?php
    /** Enable W3 Total Cache */
    define('WP_CACHE', true); // Added by W3 Total Cache
    /**/
    <?php
    // ** MySQL settings ** //

    I have no understanding of php at all but I can't see an issue here. Does it perhaps have <?php twice where it should be once?? Can someone assist please??

  2. You are opening the php command twice; without properly closing it the first time.

    Let's try this:

    <?php
     /** Enable W3 Total Cache */
     define('WP_CACHE', true); // Added by W3 Total Cache
    
     // ** MySQL settings ** //
  3. WelshDog
    Member
    Posted 11 months ago #

    Done... and done. Magic.

    Suddenly up comes the site. I've no idea how the extra code got added because I've never touched the file, but all is well now. :D

    Many thanks... ten years (intermittent) work saved! :)

    Solved.

Reply

You must log in to post.

About this Topic