• Resolved QTB

    (@qtb)


    Hi all,

    Does anyone know why the feeds error is happening on fresh install.

    Parse error: syntax error, unexpected ‘a_required’ (T_STRING) in /public_html/wp-includes/feed.php on line 454

    function rss_enclosure() {
    if ( post_psword a_required() )
    return;

    foreach ( (array) get_post_custom() as $key => $val) {
    if ($key == ‘enclosure’) {
    foreach ( (array) $val as $enc ) {
    $enclosure = explode(“\n”, $enc);

    // only get the first element, e.g. audio/mpeg from ‘audio/mpeg mpga mp2 mp3’
    $t = preg_split(‘/[ \t]/’, trim($enclosure[2]) );
    $type = $t[0];

    /**
    * Filter the RSS enclosure HTML link tag for the current post.
    *
    * @since 2.2.0
    *
    * @param string $html_link_tag The HTML link tag with a URI and other attributes.
    */
    echo apply_filters( ‘rss_enclosure’, ‘<enclosure url=”‘ . trim( htmlspecialchars( $enclosure[0] ) ) . ‘” length=”‘ . trim( $enclosure[1] ) . ‘” type=”‘ . $type . ‘” />’ . “\n” );
    }
    }
    }
    }

    thanks Dayne

Viewing 1 replies (of 1 total)
  • Thread Starter QTB

    (@qtb)

    Solved…

    Softaculous install error… manual install solved the issue…

Viewing 1 replies (of 1 total)
  • The topic ‘Fresh installation Parse Error’ is closed to new replies.