• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

phpMyAdmin CSS broken due to key error message

P

phorium

Guest
First, a big thank you to SWsoft for upgrading phpMyAdmin to 2.6.0-pl3. However, when viewing the page, all of the CSS on the right-hand frame is broken and the layout is a disaster. I did some digging and figured out what the problem is.

If you have the developer toolbar installed on FireFox and you use it to view the CSS, you'll see that this code has been added to the top of the external CSS file, which causes it to be ignored:

<html>
<head> <title>Key Error</title>
<body bgcolor='#ffffff'>
<script> <!--
alert('The key that you are using is invalid for the product version you are running.\nTo purchase a new key go to the Plesk Online Store at www.sw-soft.com or contact\[email protected].');
//--> </script>
</body> </html>

I know I don't have any Plesk Key problems, so this is obviously a bug.

I'm hoping there's a way to fix this, because it's very difficult to browse and use without the proper CSS formatting...
 
https://yourdomain.com:8443/domains...css.php?lang=de-iso-8859-1&amp;js_frame=right
is the url of the external css file, right? hm, there ist no
<html>
<head> <title>Key Error</title>
<body bgcolor='#ffffff'>
<script> <!--
alert('The key that you are using is invalid for the product version you are running.\nTo purchase a new key go to the Plesk Online Store at www.sw-soft.com or contact\[email protected].');
//--> </script>
</body> </html>
at the top of this file here.
But the problem is the same: No CSS at the right (main-)frame.
 
That text (quote) is not in the CSS file physically... it is added dynamically at the beginning of the CSS file like a PHP include. It seems like a bug because that should be showing up in the HTML of the page and therefore in the browser - instead it's showing up in the CSS file which causes the browser to ignore it as invalid CSS.

It's a pain in the *** and I can't figure out where it's getting included from, but it's not important enough for me to pay SW Soft a rediculous support fee.
 
submitted a ticked, they said they would add it to dev bugtracker.
 
yeah! I found the bug! :)
It's the include() in phpmyadmin.css.php

You can replace
include($tmp_file);
with
$filearray=file($tmp_file);
$filecontent=implode('',$filearray);
eval(' ?>' . $filecontent . '<?php ');

in line 43, 53 and 63 (phpmyadmin.css.php,v 2.32 2004/09/23 14:36:54)
Location:
/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/css/phpmyadmin.css.php
 
That did the trick.
Thank you allot! shame on you sw-soft :p
 

Similar threads

Back
Top