• Resolved dme102

    (@dme102)


    Hi, I have been using this awesome plugin for months now without a hitch.

    Then today I was trying to move a site from my local PC (using Serverpress) to a live production server.

    The archive was created without a hitch and I uploaded it to my server.

    But when I ran the installer the options page appears, but nothing happens when I click on anything.

    I saw in another thread you said it was likely a javascript error, so i checked the console and sure enough every time I tried to click a button it gave the following error messages:

    ReferenceError: Duplicator is not defined installer%20(10).php:1:0
    ReferenceError: $ is not defined

    I tried using the latest development version of Duplicator too (as I read you suggest in another thread). I also tried in Firefox as well as Chrome but am having the same issue there.

    Any idea what could be causing this issue? Thanks in advance.

    https://www.ads-software.com/plugins/duplicator/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dme102

    (@dme102)

    Just to update my own thread – it turns out the problem was being caused by mod-pagespeed, which is running on my server.

    But when i disable pagespeed using .htaccess (or by adding ?ModPagespeed=off to the end of the installer.php URL), I get the following error on the next screen:

    server code: 200
    status: OK
    response:
    INSTALL ERROR!
    A wp-config.php already exists in this location. This error prevents users from accidentally overwriting the wrong directories contents. You have two options:
    Empty this root directory except for the package and installer and try again.
    Delete just the wp-config.php file and try again. This will over-write all other files in the directory.

    No matter how many times I go back and delete the wp-config file, it keeps coming back to this error. The new site is half unzipped from the installer but all the images and links etc are broken.

    The htaccess file keeps being overwritten by the installer, so i can’t keep mod_pagespeed off, if that’s what’s causing this error on the second screen.

    I’m stuck in a loop here. Please help!

    Hey dme102,

    Until we can get an update to skip the .htaccess you can comment out the code. See this thread for the work-a-round…

    Hope that helps!

    Thread Starter dme102

    (@dme102)

    Hey Cory, thanks for the fast response.

    I should have mentioned in my second post – I did find that thread and tried that workaround. The result seems to be that the original .htaccess still gets overwritten, but it gets replaced with the .htaccess from within the source archive. I might try editing the source to disable pagespeed there too.

    I can’t figure out a way to turn off pagespeed on individual cpanel accounts other than from within .htaccess.

    Have you experienced other people having issues with Duplicator on servers running mod pagespeed?

    Thread Starter dme102

    (@dme102)

    Okay I started from scratch and it all worked out. i just needed to stop half way through the install and edit the new htaccess file to disable pagespeed as the javascript error was occurring at the URL rewrite stage of the installation process.

    Excellent! Thanks for posting your work-a-round!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Javascript error when running installer’ is closed to new replies.