• Resolved al3ilm

    (@al3ilm)


    Multi-site network crashes and network crashes (white screen)
    al3ilm (@ al3ilm)

    I have a multi-site network:
    https://al3ilm.com

    They worked well
    In December 2018 Apache occurred:
    Apache 2.4.39
    MySQL 5.7.25

    It continued to work well

    During March 2019, sometimes a white screen appears in Firefox and Chrome displays an error message that reads:

    This page can not work al3ilm.com can not process this request at this time.
    HTTP ERROR 500

    Fortunately that problem goes away once the page is updated.

    Then four days before you update to:
    php 7.2.39

    Then the site worked well

    Then I raised the wp-rocket extension and got a problem with W3 Total Cache
    The site crashes the same as the previous problem and unfortunately this time did not benefit the update page.

    I made several solutions and did not succeed:
    1. Upload files for WordPress version 5.1.1.
    2 – used to repair the database in cpanel
    3 – deleted the database and prepared and created a new user name and password and added to the file wp-config.php.
    4. All add-ons have been disabled.
    5. Rename the .htaccess file and save the permanent links to create a new file.

    After the failure continued with the support of hosting they stopped the network by editing in the file wp-config.php:
    define (‘MULTISITE’, false);

    Only the main site works, the sub-stations do not work and the Web site list does not appear in the WordPress control panel.
    I went back to the hosting and they asked me to display my problem on a WordPress expert and gave me the following error message to view it:

    /home/alilmcom/public_html/wp-includes/class-wp-locale.php:225
    Stack trace:

    0 /home/alilmcom/public_html/wp-includes/class-wp-locale.php(104): WP_Locale-> init ()
    1 /home/alilmcom/public_html/wp-includes/load.php(1056): WP_Locale -> __ construct ()
    2 /home/alilmcom/public_html/wp-includes/wp-db.php(1439): wp_load_translations_early ()
    3 /home/alilmcom/public_html/wp-includes/wp-db.php(1947): wpdb-> print_error ()
    4 /home/alilmcom/public_html/wp-includes/wp-db.php(2579): wpdb-> query (‘SELECT blog_id, …’)
    5 /home/alilmcom/public_html/wp-includes/meta.php(933): wpdb-> get_results (‘SELECT blog_id, …’, ‘ARRAY_A’)
    6 /home/alilmcom/public_html/wp-includes/ms-site.php(383): update_meta_cache (‘blog’, Array)
    7 /home/alilmcom/public_html/wp-includes/ms-site.php(367): update_sitemeta_cache (Array)
    8 /home/alilmcom/public_html/wp-includes/ms-site.php(342): update_site_cache (Array, true)
    9 /home/alilmcom/public_html/wp-includes/class-wp-site-query.php(339): _prim in /home/alilmcom/public_html/wp-includes/class-wp-locale.php on line 225

    Please know the cause and solution news speed.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter al3ilm

    (@al3ilm)

    Also I experimented with:
    6. Change the template to the default template.
    7. I tried to increase memory:
    define (‘WP_MEMORY_LIMIT’, ‘4000M’);
    define (‘WP_MAX_MEMORY_LIMIT’, ‘4000M’);

    With define (‘MULTISITE’, false); Your network won’t work…

    I’d kill off all the plugins temporarily and switch to a simple, default theme like Twenty Seventeen then switch the above config define to true again.

    I also see you have W3 and WPRocket running together. I’d run just one of those… I like W3 myself.

    The white screen usually means PHP has stopped so look at your errors when it happens again. It may not happen while the plugins are shut down.

    You might benefit from running the Health Check plugin if you don’t already run that.

    Thread Starter al3ilm

    (@al3ilm)

    First, I have tried who you mentioned to me
    ? See You No. 4, 6.

    Second: About
    the Health Check plugin
    I ran the troubleshooting before the problem occurred, and it indicates an activation request:
    PHP Extensions
    The optional module, exif, is not installer, or has been disabled.
    The optional module, libsodium, is not installer, or has been disabled.
    The optional module, imagick, is not installer, or has been disabled.
    The required module, mcrypt, is not installer, or has been disabled.

    Then I asked the hosting support to activate PHP Extensions
    The support then enabled PHP Extensions

    Then hours later, the problem came

    Thread Starter al3ilm

    (@al3ilm)

    Praise be to God
    I solved the problem

    Conditions for the problem:

    1- Multiple web sites. A prerequisite because the problem does not appear in the mono site.
    3. WordPress version 5.1.1. A prerequisite because the problem did not appear in earlier versions.
    4- php 7 or higher. A prerequisite because the problem did not appear in previous releases.
    5 – activate the extended php. Prospect.
    6 – The last Apache. Prospect.
    7 – The last sql. Prospect.

    Cause of the problem:
    incompatibility.

    Steps to fix the problem:

    1. Mute the problem by deleting line 225 in the public_html / wp-includes / class-wp-locale.php file, as suggested:
    https://stackoverflow.com/questions/41854996/i-uploaded-wordpress-via-ftp-but-it-didnt-work?rq=1

    The line can be canceled without deleting it by adding / ** before it on line 254 and adding * / after line 258 The result is as follows:

    / **
    if (‘rtl’ === $ this-> text_direction && strpos (get_bloginfo (‘version’), ‘-src’)) {
    $ this-> text_direction = ‘ltr’;
    add_action (‘all_admin_notices’, array ($ this, ‘rtl_src_admin_notice’));
    }
    * /

    Note:
    The file in which the get_bloginfo function is: general-template.php in the public_html / wp-includes folder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multi-site network crashes and network crashes (white screen)’ is closed to new replies.