• Hello,
    I have a problem with wordpress 4.7.

    Files php, css, js, all are being backed up by updated version.
    Instead of using updated themes’s file from my theme or plugin, it creates A COPY as an example:

    file-theme.css?ver=1.1.x

    All files used by wordpress are tagged at the end “?ver=4.71”

    That is, even editing the files, replacing them with new versions or even deleting, NOTHING happens because the files used are those backup versions.

    Therefore, I can not update my files at all.

    Could some one help me how to remove this feature or indicate how to change the files in the correct way?

    Appreciate,

Viewing 5 replies - 1 through 5 (of 5 total)
  • file-theme.css?ver=1.1.x

    Those are not copies of files, per se. They’re simply the way in which WordPress loads the files. WordPress will always load the current version of a file *assuming that the file is correctly enqueued). Apart from the (very normal) addition of ?ver=1.1.x in the head section of each page, is there anything else about these site’s pages that suggests that older version of files are being used?

    Thread Starter monguilhott

    (@monguilhott)

    Hi emsi,

    if I change the files via ftp for example nothing happens. WordPress is using an “old version” of the files.

    • This reply was modified 9 years, 4 months ago by monguilhott.

    Which files are you changing? And how do you know that an “old version” is being used?

    • This reply was modified 9 years, 4 months ago by esmi.
    Thread Starter monguilhott

    (@monguilhott)

    One specific file from my plugin,
    /plugins/wc-vendors/classes/front/signup/class-vendor-signup.php

    change one “printf” for translation.

    I have updated my CSS files from my theme and child theme, and nothing is changing…

    The wordpress awalys using a different version as mentioned before.

    I have found some information, file that includes the ‘wp_enqueue_script’ function. More details are here:
    https://developer.wordpress.org/reference/functions/wp_enqueue_script/

    the $ver variable is set to ‘null’ so that no version is added. But, I dont know how to insert his on my functions.php

    $-(

    Thread Starter monguilhott

    (@monguilhott)

    Hey, its nothing with the wordpress “versions”

    It was a cache server problem

    Thanks for your time ESMI

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

The topic ‘WordPress using backed up versions instead changed files’ is closed to new replies.