Sharon
Sharon

Reputation: 41

phpmyadmin loaded index but shows total blank and the firebug console indicates that "$ is not defined"

  1. I installed xampp in win7 and phpMyAdmin worked very well before.
  2. But some operations could not be excuted suddenly and firebug showed that ReferenceError: $ is not defined. And IE is same with firefox.
  3. 127.0.0.1 still works fine.
  4. I searched a lot but could not find out the problems. So reinstall firefox and xampp, but got a blank page in 127.0.0.1/phpmyadmin.
  5. The firebug shows that the request below is failed.

GET get_scripts.js.php?token.............

It seems like that the request is fail to load jquery src js file to make the blank page happened. Could you tell me how to solve this issue?

Upvotes: 4

Views: 4457

Answers (3)

Mihai Crăiță
Mihai Crăiță

Reputation: 3417

Go to your phpmyadmin instalation folder and run:

yarn install --production

Upvotes: -1

Fabor
Fabor

Reputation: 567

Here is the resolution fixed for me.

server {
    client_max_body_size 100M;

    listen 80;

    server_name phpmyadmin.dev;

    root /usr/share/phpmyadmin;

    access_log off;

    index index.php index.html index.htm;

    location ~ ^/(.+\.php)$ {
        try_files $uri = 404;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;

        fastcgi_buffers 8 512k;
        fastcgi_buffer_size 256k;
        fastcgi_send_timeout 5m;
        fastcgi_read_timeout 5m;
        fastcgi_connect_timeout 5m;
    }
}

Upvotes: -2

Alex7011
Alex7011

Reputation: 87

What I finally deduced (after digging through many many posts) is that some of the PhpMyAdmin files the header & script tags load text/javascript when they should be application/javascript (new standard for Html5).

So you are going to have to go into the following phpmyadmin files and change:

text/javascript => application/javascript

In theses files:

js/getscript.js.php
js/getimage.js.php
core.lib.php

And add/append (to fix the blank white page):

$cfg['AllowThirdPartyFraming'] = true;

To this file:

config.inc.php

Save and restart.

Worked for me, might for you !?

Upvotes: 3

Related Questions