• Resolved pr0ject10n

    (@pr0ject10n)


    Hi there,

    My website projectionpictures is a live site and its dashboard as able to display any plugin updates and wordpress upgrades.

    I used an offline (local host) wordpress that is a synology plugin. The wordpress dashboard for that can also receive updates for plugins, BUT NOT for wordpress upgrades (it will even give me: ‘Last checked on 14 May 2021 at 1:36 am’), its unable to see upgrade 5.7.2, why?

    Does the wpconfig-php file need code to make that happen?

    I know how to manually install a wordpress upgrade but that is annoying and I only do that if I really have to. Both the offline and online are in their own folders in the ‘web’ folder of a synology server.

    KR,
    Ian.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Make sure auto updating of WP is not disabled by a snippet or a plugin.

    Also review this guide https://ww.wp.xz.cn/support/article/configuring-automatic-background-updates/

    Thread Starter pr0ject10n

    (@pr0ject10n)

    Hi there,

    The local host site did want me to update 5 plugins, but before I did update them I altered the wp-config.php slightly:
    I removed this line:
    define( ‘AUTOMATIC_UPDATER_DISABLED’, true );
    and replaced it with this:
    define( ‘WP_AUTO_UPDATE_CORE’, true );

    After I did that the flags to update the 5 plugins disappeared, not entirely sure if they updated or not as I didn’t see any update progress that had taken place and still unable to see the next edition of wordpress 5.7.2.

    I spotted a plugin that was activated that didn’t appear to be doing anything, Advanced Automatic Updates, I unticked the settings within it and deactivated it.

    Now the entries at the bottom of that file look like this:
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . ‘wp-settings.php’;
    //**The next line allows direct downloads*/
    define(‘FS_METHOD’, ‘direct’);
    define(‘WP_ALLOW_REPAIR’, true);
    require_once ABSPATH . ‘syno-misc.php’;

    define( ‘WP_AUTO_UPDATE_CORE’, true );
    add_filter(‘pre_site_transient_update_core’,’__return_null’);

    KR,
    Ian

    Moderator bcworkz

    (@bcworkz)

    Make all code below require_once ABSPATH . ‘wp-settings.php’; into comments (start each line with //), except for the syno-misc.php line. We typically don’t need any of those. If doing so causes other problems, you can always uncomment the necessary line again.

    If you still have updating issues, there may still be code elsewhere responsible for the trouble. Try selectively deactivating plugins and swapping themes to narrow down the source.

    Thread Starter pr0ject10n

    (@pr0ject10n)

    Hi bcworkz (@bcworkz)

    Thank you for your reply which I followed and hey presto the offline site could see the wordpress upgrade.

    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . ‘wp-settings.php’;
    //**The next line allows direct downloads*/
    //define(‘FS_METHOD’, ‘direct’);
    //define(‘WP_ALLOW_REPAIR’, true);
    require_once ABSPATH . ‘syno-misc.php’;

    //define( ‘WP_AUTO_UPDATE_CORE’, true );
    //add_filter(‘pre_site_transient_update_core’,’__return_null’);

    Thank you very much and t-p (@t-p). All done.

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

The topic ‘Upgrading a wordpress update on a localhost server’ is closed to new replies.