Package: wordpress

Version: 3.6.1+dfsg-1~deb7u18

Initial report of failure to access the Wordpress site - Apache showing Error 
500
Apache error.log shows:
[Wed Nov 01 10:32:53 2017] [error] [client xx.xx.xx.xx] PHP Parse error:  
syntax error, unexpected end of file in 
/usr/share/wordpress/wp-includes/ms-functions.php on line 2016

Did the following:


downloaded and unpacked the package:
# cd /var/tmp
# apt-get download wordpress=3.6.1+dfsg-1~deb7u18
# dpkg-deb -x wordpress_3.6.1+dfsg-1~deb7u18_all.deb .
verified syntax error:
# php usr/share/wordpress/wp-includes/ms-functions.php
PHP Parse error: syntax error, unexpected end of file in 
/var/tmp/usr/share/wordpress/wp-includes/ms-functions.php on line 2016
counted braces:
# fgrep { usr/share/wordpress/wp-includes/ms-functions.php | wc
138    1000    7226
# fgrep } usr/share/wordpress/wp-includes/ms-functions.php | wc
137     279    1728

laboriously found mismatch and made correction:

# cp -p ms-functions.php ms-functions.php_20171107
# vi ms-functions.php
# diff ms-functions.php_20171107 ms-functions.php
845c845
< if ( ! $wp_hasher->CheckPassword( $key, $signup->activation_key ) ) {
-
> if ( ! $wp_hasher->CheckPassword( $key, $signup->activation_key ) )
1756c1756
< add_action('update_option_blog_public', 'update_blog_public', 10, 2);
-
> // add_action('update_option_blog_public', 'update_blog_public', 10, 2);

The first change removes the syntax error (and hopefully preserves what was 
intended) but leaves an oddity...
Note that there is also a spurious(?) source line not enclosed in any function 
- is it supposed to be there? I doubt it!

Regards
Jim McKinnell




To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

Reply via email to