• Resolved marvista

    (@marvista)


    I am trying to get started with this, and tried the wizard.

    It seems hung at step 2. Per your advice to others, I looked at the console and am getting an error
    Object { status: false, error: “The page returned an error: 404 Not Found” }
    raised by
    /wp-content/plugins/async-javascript/js:1:4041

    I did look at the .js, but its not obvious what its looking for. And I looked in the network log in the browser, and there are no errors. And no calls to gtmetrix. Not sure what is going on with that.

    The first time I tried this was with the Dallas TX server, the second with Vancouver. It did make some connection with gtmetrix since it got the number of credits, and it went down by 1 each time I tried it.

    What else to look at?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, the flow is browser –ajax–> server -> gtmetrix (there are not direct calls from your browser to gtmetrix), so the next step would be to look at AJAX request to from your browser to your server while you’re going through the wizard?

    From a code perspective this likely happens when the browser is trying to contact the AJAX-url of your server and is not succeeding. The URL of how to make that AJAX call is based on JS that is inline in the HTML, so can you look a the HTML source of the wizard page and look for something like this and copy/ paste that here?

    <script type='text/javascript'>
    /* <![CDATA[ */
    var aj_localize_admin = {"ajaxurl":"https:\/\/scolio-tieners.be\/wp-admin\/admin-ajax.php","siteurl":"https:\/\/scolio-tieners.be","pluginurl":"https:\/\/scolio-tieners.be\/wp-content\/plugins\/async-javascript\/","ajadminurl":"https:\/\/scolio-tieners.be\/wp-admin\/options-general.php?page=async-javascript"};
    /* ]]> */
    </script>

    frank

    Thread Starter marvista

    (@marvista)

    What is in the page source is:
    /* <![CDATA[ */
    var aj_localize_admin = {“ajaxurl”:”https:\/\/www.money.com\/wp\/wp-admin\/admin-ajax.php”,”siteurl”:”https:\/\/www.money.com\/wp”,”pluginurl”:”https:\/\/www.money.com\/wp\/wp-content\/plugins\/async-javascript\/”,”ajadminurl”:”https:\/\/www.money.com\/wp\/wp-admin\/options-general.php?page=async-javascript”};
    /* ]]> */
    </script>
    <script type=’text/javascript’>
    /* <![CDATA[ */

    I think the problem is that we have an extra level in our directory structure like public_html/wp/wp-whatever.
    So the site is https://www.money.com not https://www.money.com/wp. The other urls for ajax etc are correct.

    • This reply was modified 6 years, 7 months ago by marvista.
    Plugin Author Frank Goossens

    (@futtta)

    weird, as we’re using WordPress core’s get_site_url() to get the site URL.

    Can you try the following;

    open wp-content/plugins/async-javascript/asyncjsBackendClass.php and on line 100 replace
    'siteurl' => get_site_url(),
    with
    'siteurl' => get_home_url(),

    frank

    Thread Starter marvista

    (@marvista)

    That seemed to get it going, although the last test also hung. But all the reports were there at gtmetrix. And I now get idea of what to do. So I am good.

    Thanks for the help.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome ??

    feel free to leave a review of the plugin and support here! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stuck at step 2 of wizard’ is closed to new replies.