• ommixyz

    (@ommixyz)


    Plugin: AtomChat 1.1.8
    PHP: 8.4
    File: includes/atomchat_cloud.php, lines 22, 40, 41

    Error:
    PHP Warning: Undefined variable $atomchat_asset_version in
    …/wp-content/plugins/atomchat/includes/atomchat_cloud.php on line 22

    Cause:
    The function declares global $atomchat_base; but also uses
    $atomchat_asset_version, which is defined at file scope in installer.php
    and never declared global. Under PHP 8+ this throws a warning on every
    request, and wp_enqueue_script() receives null as the version argument,
    which breaks asset cache-busting after plugin updates.

    Suggested fix:
    global $atomchat_base, $atomchat_asset_version;

    I’ve applied this patch locally and it resolves the warnings.

You must be logged in to reply to this topic.