Tagged: syntax error
Parse error: syntax error, unexpected ‘<‘ in /wp-content/themes/enfold/functions.php on line 567
I don’t know what the problem is. I cannot find any ‘<‘ on line 567. could someone please help.
This is line 565 – 571
foreach ( $pung as $link_test ) {
if ( ! in_array( $link_test, $post_links_temp ) ) { // link no longer in post
$mids = $wpdb->get_col( $wpdb->prepare(“SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = ‘enclosure’ AND meta_value LIKE %s”, $post_ID, $wpdb->esc_like( $link_test ) . ‘%’) );
foreach ( $mids as $mid )
delete_metadata_by_mid( ‘post’, $mid );
}
}
Hey!
Which file is throwing the error? Can you please post the content of the file here using – pastebin.com?
Best regards,
Yigit
it is the functions.php file.
The error that pops up is
Parse error: syntax error, unexpected ‘<‘ in /wp-content/themes/enfold/functions.php on line 567
I can’t access the site anymore!
Hey!
This seems to be the functions.php file inside wp-includes folder. Please undo the changes you made on that file and only edit wp-content/themes/enfold/functions.php file
Best regards,
Yigit
That fixed the problem! Thanks! That was an oversight on my part!
Hi!
Happens to the best of us :) Glad it is working fine now!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit