Your message dated Wed, 17 Aug 2016 16:26:06 +0200
with message-id 
<cam79t8g11ajss3a8qd+onpuyhfbedgyedmckj+v62dso5cy...@mail.gmail.com>
and subject line Re: Bug#823828: phpmyadmin: fails to show login form (Uncaught 
TypeError: Cannot read property 'parentNode' of null)
has caused the Debian Bug report #823828,
regarding phpmyadmin: fails to show login form (Uncaught TypeError: Cannot read 
property 'parentNode' of null)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
823828: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823828
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: phpmyadmin
Version: 4:4.2.12-2+deb8u1
Severity: normal
Tags: patch upstream

Dear Maintainer,

This bug (which is fixed upstream[1]) has wasted some time ofr me, maybe it
could be fixed in the next stable update.

Thanks,

Alexandre

[1] https://github.com/phpmyadmin/phpmyadmin/issues/11812


*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru phpmyadmin-4.2.12.old/js/cross_framing_protection.js phpmyadmin-4.2.12/js/cross_framing_protection.js
--- phpmyadmin-4.2.12.old/js/cross_framing_protection.js	2014-11-20 16:41:00.000000000 +0100
+++ phpmyadmin-4.2.12/js/cross_framing_protection.js	2016-05-09 12:23:51.764267622 +0200
@@ -4,7 +4,11 @@
  */
 if (self == top) {
     var style_element = document.getElementById("cfs-style");
-    style_element.parentNode.removeChild(style_element);
+    // check if style_element has already been removed
+    // to avoid frequently reported js error
+    if (typeof(style_element) != 'undefined' && style_element != null) {
+        style_element.parentNode.removeChild(style_element);
+    }
 } else {
     top.location = self.location;
 }

--- End Message ---
--- Begin Message ---
Hi,

> I guess something is wrong with $_SERVER['SCRIPT_NAME']. I'll
> investigate and get back to you.

This all fixed itself with the security update and some configuration tricks.

Sorry for the noise.

Alex

--
For the record, I use :

Alias /subdir /usr/share/phpmyadmin
ProxyPassMatch  "^/subdir/(.*\.php(/.*)?)$"
"unix:/var/run/uwsgi/phpmyadmin.socket|uwsgi://uwsgi-uds-phpmyadmin/"
<Location /subdir>
    Require all granted
</Location>

and uwsgi phpmyadmin.ini :

plugins = 0:php

project_dir = /usr/share/phpmyadmin
chdir = %(project_dir)
php-docroot = %(project_dir)
php-index = index.php

plugins = router_rewrite
route = ^/subdir/(.*) rewrite:/$1

buffer-size = 8192

# PHP sessions storage
cache2 = 
name=sessions,items=200,store=/var/lib/www/phpmyadmin/uwsgi.cache,expires=3600
php-set = session.save_handler=uwsgi
php-set = session.save_path=sessions

--- End Message ---

Reply via email to