• Resolved rssharkey

    (@rssharkey)


    PHP Fatal error: Cannot redeclare is_ssl() (previously declared in /home/[site]/public_html/wp-includes/load.php:964) in /home/[site]/public_html/wp-includes/functions.php on line 4035

    Getting this error on my site as of this morning. Haven’t run any updates or changes to the site in over a week so no idea what triggered it. Closest I can get is shortly before this fatal error started, a file was failed to be found:

    PHP Warning: require_once(/home/[site]/public_html/wp-includes/class-wp-locale.php): failed to open stream: No such file or directory in /home/[site]/public_html/wp-includes/locale.php on line 11

    Which then caused this fatal error (which only appeared once in my error_log):

    PHP Fatal error: require_once(): Failed opening required '/home/[site]/public_html/wp-includes/class-wp-locale.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/[site]/public_html/wp-includes/locale.php on line 11

    The site has woocommerce, but doesn’t have (and never has had) an SSL certificate. I’ve tried switching off plugins, but that didn’t change anything.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like an update didn’t properly complete*. You should perform a manual update of WordPress. That should resolve the issue.
    https://codex.wordpress.org/Updating_WordPress#Manual_Update

    *WordPress moved the is_ssl() function to a different file, and it looks like your update failed at a point where the new and old locations of the file were both still there. Since the same function can’t be used twice, you get this error. A manual update will ensure that all the files are for the same version of WordPress.

    Thread Starter rssharkey

    (@rssharkey)

    I was wondering if the code was supposed to be in two places at once. Thank you for the direction, my site’s up and running again!

    Hello,

    I am getting error while access magento user session into wordpress.

    fatal error: Cannot redeclare __() (previously declared in /var/www/vhosts/domain.org/store/wordpress/wp-includes/l10n.php:172) in /var/www/vhosts/domain.org/store/app/code/local/Mage/Core/functions.php on line 94

    Can you help me aspa?

    I am using below code.

    require_once (‘/var/www/vhosts/domain.org/store/app/Mage.php’);
    unmask(0);
    Mage::app(‘default’);
    // Define the path to the root of Magento installation.
    define(‘ROOT’, Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
    if(class_exists(‘Mage’)){
    $coreSession = Mage::getSingleton(‘core/session’, array(‘name’ => ‘frontend’));

    $customerSession = Mage::getSingleton(“customer/session”);
    $customer = Mage::getSingleton(‘customer/session’)->getCustomer();
    }
    if($customerSession->isLoggedIn()) {
    echo “Customer is logged in”;}
    else{
    echo “Customer is not logged in”;
    }

    Hello! I really need some help! I put some code in the function.php page on my website and when I saved it it came up with this error-

    Fatal error: Cannot redeclare change_graphic_lib() (previously declared in /home/erilea9/bebuddhajewelry.com/wp-content/themes/arctic/functions.php:319) in /home/erilea9/bebuddhajewelry.com/wp-content/themes/arctic/functions.php on line 410

    Please help me! I have no idea what to do. I can’t even login in the admin part of my site.

    Fatal error: Call to undefined function get_bloginfo() in C:\AppServ\www\wordpress\wordpress\wp-includes\class-wp-locale.php on line 233

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Fatal Error: cannot redeclare is_ssl()’ is closed to new replies.