• Resolved angizeshi

    (@angizeshi)


    When creating the package, I am using WordPress 6.9, where the index.php file contains the following code:

    require __DIR__ . '/wp-blog-header.php';

    After building the package, I also checked the files inside the archive, and index.php is still in the same form.

    When the installation starts using installer.php, and even after the initial extraction, the file remains unchanged. However, once the installation is fully completed, the file is changed to the following:require dirname(__FILE__) . '/wp-blog-header.php';

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter angizeshi

    (@angizeshi)

    This happens with the indexPhpUpdate function inside the class.ctrl.s3.funcs.php file. I know it doesn’t cause any problems,But my question is, why does this happen only in some packages and not always?

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @angizeshi,

    Thanks for reaching out to us.

    We are working on your request. Please wait, and we will update you as soon as possible.

    Thanks.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @angizeshi,

    Upon investigation, we determined that this behavior should not occur with the latest Duplicator version. Could you please confirm that you are using the most current version of Duplicator to create your backups and inform us if you re-encounter this issue?

    We look forward to hearing back from you.

    Best regards,

    Thread Starter angizeshi

    (@angizeshi)

    No, this does not happen in the latest version, but I would like to know whether this behavior existed in Duplicator or not. I mean in the previous versions. I am only asking this to make sure whether this behavior is safe or not.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @angizeshi,

    According to Duplicator changelog, we started using DIR instead of dirname(FILE) since version 1.5.12 because using FILE used to cause some false positives with some security plugins like WordFence. So, Duplicator has been using FILE until version 1.5.12.

    I hope this helps.

    Thanks!

    Thread Starter angizeshi

    (@angizeshi)

    Thank you for your accurate and prompt response.

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

You must be logged in to reply to this topic.