roppolo
Member
Posted 2 years ago #
Upon my attempt to automatically upgrade to 2.9, I received an error about not being able to upload some image. I am now receiving this error upon attempting to reach my site:
Fatal error: Cannot redeclare _c() (previously declared in /home/batoycom/public_html/wp-includes/l10n.php:198) in /home/batoycom/public_html/wp-includes/deprecated.php on line 1809
I have my db backed up and I've downloaded a fresh copy of 2.9. Can someone give me an idea of where I need to start to get my site back up?
Thanks in advance,
ItsGreg
Member
Posted 2 years ago #
If you have cPanel, go and check into the Error log. I had a similar error, and when I checked the Error Log, there was a problem in .htacces
pawoodster
Member
Posted 2 years ago #
I have the identical error.
It isn't due to an upgrade though - I've just been informed of it.
Here's the bit in deprecated.php it seems to be talking about:
* @since 2.2.0
* @deprecated 2.9.0
*
* @param string $text Text to translate
* @param string $domain Optional. Domain to retrieve the translated text
* @return string Translated context string without pipe
*/
function _c( $text, $domain = 'default' ) {
_deprecated_function(__FUNCTION__, '2.9', '_x' );
return translate_with_context( $text, $domain );
}
?>
pawoodster
Member
Posted 2 years ago #
A manual upgrade fixed it.
cultissim
Member
Posted 2 years ago #
hi pawoodster
Could you explain exactly how to correct the problem because it crashed too my website, please ?
cultissim
Member
Posted 2 years ago #
i have no drawbacks...how can I do ? are all my posts destroyed ?
Quasient
Member
Posted 2 years ago #
I fixed this issue by quoting out the function. It's dirty but it allows you to make a clean backup.
so on line 1809 place "/" before "function..."
and on line 1814 place another "/"
so it reads:
/function _c( $text, $domain = 'default' ) {
_deprecated_function(__FUNCTION__, '2.9', '_x' );
return translate_with_context( $text, $domain );
}
/