• Hi,
    after years of delay, I decided to upgrade my multisite version of WordPress to the latest one. I downloaded the Italian version of of WordPress here

    https://it.wordpress.org/download/

    created the backup of my website and database according to the instructions (https://wordpress.org/documentation/article/updating-wordpress/) and started the upgrade.
    I must confess I skipped the deactivation of the plugins, but a couple of weeks ago I successfully upgraded a very old WordPress site after 8 years to the latest one even if I forgot to disable the plugins first also on that occasion.

    At any rate, after deleting and copying the files correctly, I unsuccessfully tried to go to the admin page of my site (500 error) – I used the wrong adress though, mywebsite/wp-admin instead of mywebsite/wp-admin/network, but I realized this afterwards – so I panicked and tried to restore the old site, also unsuccessfully.

    I tried to re-update WordPress again and got an error about connection to Database. I added this line

    define('WP_ALLOW_REPAIR', true);

    to my wp-config.php and when I access the page mywebsite/wp-admin/maint/repair.php I saw that these 2 columns could not be found:

    wp_options: Table ‘Sql598794_1.wp_options’ doesn’t exist
    wp_blogmeta: Table ‘Sql598794_1.wp_blogmeta’ doesn’t exist

    I am pretty sure I saw the wp_options column earlier in myPhpAdmin because I was looking for the active-plugins, but now I cannot after my Database restoration of the backup failed with the error

    1146 – Table ‘Sql598794_1.wp_5_posts’ doesn’t exist

    I apologize for the mess, but could you please advise what could I try to do to restore the multisite functionality? Thanks in advance.

    • This topic was modified 1 year, 1 month ago by James Huff. Reason: moved to Networking WordPress since this is a multisite issue

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

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter stefanodoug

    (@stefanodoug)

    I switched to php 7.4 and now my debug.log says:

    [07-Nov-2023 23:23:51 UTC] PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in /web/htdocs/www.diaforia.org/home/wp-content/plugins/audio-player/audio-player.php on line 903
    
    [07-Nov-2023 23:23:51 UTC] PHP Notice:  La funzione is_embed è stata richiamata <strong>in maniera scorretta</strong>. I tag condizionali di una query non funzionano prima che la query sia stata eseguita. Prima dell'esecuzione restituiscono sempre il valore False. Leggi <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> per maggiori informazioni. (Questo messaggio è stato aggiunto nella versione 3.1.0.) in /web/htdocs/www.diaforia.org/home/wp-includes/functions.php on line 5905
    
    [07-Nov-2023 23:23:51 UTC] PHP Notice:  La funzione is_search è stata richiamata <strong>in maniera scorretta</strong>. I tag condizionali di una query non funzionano prima che la query sia stata eseguita. Prima dell'esecuzione restituiscono sempre il valore False. Leggi <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> per maggiori informazioni. (Questo messaggio è stato aggiunto nella versione 3.1.0.) in /web/htdocs/www.diaforia.org/home/wp-includes/functions.php on line 5905
    

    Then delete the plugin to make any progress at all. If everything else works again, you can reinstall it and if it causes problems again, contact their support.

    Thread Starter stefanodoug

    (@stefanodoug)

    Yes, I managed to open the back-office now and for all the 4 blogs available.
    I also managed to visualize 3 blogs out of 4 correctly, at first glance at least. The 4th one is still giving me an error and it does NOT get rendered.
    Here is the debig.log output

    [07-Nov-2023 23:42:29 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 130
    
    [07-Nov-2023 23:42:29 UTC] PHP Deprecated:  Function create_function() is deprecated in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 170
    
    [07-Nov-2023 23:42:29 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Text has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 12
    [07-Nov-2023 23:42:29 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_PPText has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 78
    
    [07-Nov-2023 23:42:29 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Login has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 121
    
    [07-Nov-2023 23:42:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php:66
    Stack trace:
    #0 /web/htdocs/www.diaforia.org/home/wp-includes/class-wp-hook.php(310): HitCounter->counter()
    #1 /web/htdocs/www.diaforia.org/home/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 /web/htdocs/www.diaforia.org/home/wp-includes/plugin.php(565): WP_Hook->do_action()
    #3 /web/htdocs/www.diaforia.org/home/wp-includes/class-wp.php(796): do_action_ref_array()
    #4 /web/htdocs/www.diaforia.org/home/wp-includes/functions.php(1335): WP->main()
    #5 /web/htdocs/www.diaforia.org/home/wp-blog-header.php(16): wp()
    #6 /web/htdocs/www.diaforia.org/home/index.php(17): require('/web/htdocs/www...')
    #7 {main}
      thrown in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 66
    
    [07-Nov-2023 23:42:32 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 130
    
    [07-Nov-2023 23:42:32 UTC] PHP Deprecated:  Function create_function() is deprecated in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 170
    
    [07-Nov-2023 23:42:32 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Text has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 12
    
    [07-Nov-2023 23:42:32 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_PPText has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 78
    
    [07-Nov-2023 23:42:32 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Login has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 121
    
    [07-Nov-2023 23:42:33 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 130
    
    [07-Nov-2023 23:42:33 UTC] PHP Deprecated:  Function create_function() is deprecated in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 170
    
    [07-Nov-2023 23:42:33 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Text has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 12
    
    [07-Nov-2023 23:42:33 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_PPText has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 78
    
    [07-Nov-2023 23:42:33 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Login has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 121
    
    [07-Nov-2023 23:42:53 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 130
    
    [07-Nov-2023 23:42:53 UTC] PHP Deprecated:  Function create_function() is deprecated in /web/htdocs/www.diaforia.org/home/wp-content/plugins/wordpress-hit-counter/image.php on line 170
    
    [07-Nov-2023 23:42:54 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Text has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 12
    
    [07-Nov-2023 23:42:54 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_PPText has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 78
    
    [07-Nov-2023 23:42:54 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Weaverii_Widget_Login has a deprecated constructor in /web/htdocs/www.diaforia.org/home/wp-content/themes/weaver-ii/includes/widgets.php on line 121
    

    due to another plugin, wordpress-hit-counter.
    And I guess the most used theme, weaver-ii is kinda obsolete.

    That’s a lot of messages that can all apparently be traced back to real, ancient plugins.

    E.g. “WordPress Hit Counter” – is 12 years old and not compatible with the PHP version. There is no update for this either: https://wordpress.org/plugins/wordpress-hit-counter/ – I would delete it.

    The “Weaver II” theme is also ancient. It was discontinued by the developer some time ago: https://weavertheme.com/why-weaver/ – here you can actually only choose a new theme.

    Thread Starter stefanodoug

    (@stefanodoug)

    Yeah, I deactivated the hit counter plugin on the network and I am planning to switch to some other theme, perhaps even WordPress default ones, to avoid this kind of situation where ancient plugins and/or themes can disrupt the website.
    Once I switch the theme, I could probably switch to php 8.2.
    Thanks for your help, I still need to wander through the blogs to see if it’s all in order, but I guess we can resolve the ticket.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Broken multisite after failed upgrade and restore’ is closed to new replies.