• Hi everyone! I have a very weird problem appearing in the WordPress administration.

    Actually, I don’t have the problem, but a client has reported it to me, and via TeamViewer I’ve been able to understand what is going on.

    There seems to be an inconsistency with the scripts loaded with wp_enqueue_script and some client/server environments. In this specific case let’s take as example the following request :

    http://www.myurl.com/wp-admin/load-scripts.php?load%5B%5D=jquery-ui-core,jquery-ui&load%5B%5D=-widget,%20jquery-ui-mouse

    In my own machines, I have the proper scripts being delivered. When doing a print_r of the ‘load’ get parameter in load-scripts.php, here’s the response i get :

    Array ( [0] => jquery-ui-core,jquery-ui [1] => -widget, jquery-ui-mouse )

    …which in turn gets properly requested into the necessary scripts. However, in my client’s machines (same OS and same browser, and tested in several browsers) the response is :

    Array ( [1] => -widget, jquery-ui-mouse [0] => jquery-ui-core,jquery-ui )

    …which means the $_GET[‘load’] parameter is reversed, which in turn breaks the scripts being loaded and creates errors (like the media library never loading properly). This happened sometime between April and now, according to the client (he hasn’t updated the website since).

    Any idea why this would happen, and why it would vary from one place to the other?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you sure you’re running identical code in both environments (i.e. your local and the client’s system)? This would require the same WordPress versions and the same plugins and versions activated, and the same setting for WP_DEBUG?

    If you don’t have the same environment you might be chasing a red herring.

    Thread Starter simaooliveira

    (@simaooliveira)

    Sorry, I’m not sure I was clear. The server is the same – it’s a live website, actually. When accessing the backend on this website, the behavior changes, and $_GET parameter gets inverted, according to my or my client’s computer. But they’re accessing the same website.

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

The topic ‘load-scripts.php problem’ is closed to new replies.