• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

phpMyAdmin fails after deleting a record from table

Toxalot

Basic Pleskian
Using Plesk 11.5.30 Update #19

Whenever I delete a record from a table using the delete link (on phpMyAdmin Browse tab), I get a "server not found" error saying "Firefox can't find the server at :8443." Well, actually the frame appears blank. I only see the message if I was browsing outside of frames or if I view frame source. If I view the table again, the record is indeed gone. So the problem doesn't appear to be with the delete itself, but with the redirect afterwards.
 
Hello,

Check Error log: /var/log/sw-cp-server/error_log

Nothing written to log when problem occurs. I assume it's doing a Post/Redirect/Get, but it's not including the HTTP_HOST in the redirect. The URL it's trying to get has the protocol, port, path, and query string, but no host.
 
I consider this a bug. Is there a place to report bugs or should it be submitted as a feature request? If I have to vote for both bugs and feature requests, I need more than 20.
 
---------------------------------------------------------------
PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
Plesk 11.5.30 #35 Centos 6.5 x64

PROBLEM DESCRIPTION
I'm using phpMyAdmin 3.5.8.2. Whenever I browse a table and use the delete link on a record, I get a blank page or error page after confirming.

STEPS TO REPRODUCE
1) First Scenario
- left click a table browse link to browse a table within frames
- click a delete link for a record
- click OK

or

2) Second Scenario
- right click a table browse link and open in new window or tab to break out of frames
- click a delete link for a record
- click OK

ACTUAL RESULT
1) Blank white page in frame
2) Server not found error message

EXPECTED RESULT
In both cases, I expect to see the table again in browse view.

ANY ADDITIONAL INFORMATION
The delete succeeds, but after the delete there is an HTTP redirect to https://:8443/domains/databases/phpMyAdmin/sql.php?blah-blah-etc Notice how the hostname is missing.
---------------------------------------------------------------
 
Hi,

can you just check if there are any hints in "/usr/local/psa/admin/logs/panel.log" that might help?

Regards,
Kristian
 
Hi,

I've narrowed it down to the following file:
/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

On line 45
Code:
$base_url .= isset($parsed['host'])    ? $parsed['host'] : (vz::in_vzcp_proxy() ? array_shift($tmp_host) : $_SERVER['SERVER_NAME']);

The Variable $_SERVER['SERVER_NAME'] stays empty.
I'm not sure why yet.

Regards,
Kristian
 
Hi again,

as a workaround if one replaces Line 45 in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php it works.
Here is a patch.

Code:
--- config.default.php.save    2013-08-14 01:39:20.261076171 +0200
+++ config.default.php    2014-03-12 08:58:40.023942467 +0100
@@ -42,7 +42,7 @@
 $base_url .= isset($parsed['user']) ? ($parsed['user'] . (isset($parsed['pass']) ? (':' . $parsed['pass']) : '') . '@') : '';
 if (vz::in_vzcp_proxy())
     $tmp_host = explode(':', $_SERVER['HTTP_X_FORWARDED_HOST']);
-$base_url .= isset($parsed['host'])    ? $parsed['host'] : (vz::in_vzcp_proxy() ? array_shift($tmp_host) : $_SERVER['SERVER_NAME']);
+$base_url .= isset($parsed['host'])    ? $parsed['host'] : (vz::in_vzcp_proxy() ? array_shift($tmp_host) : preg_replace('#:[0-9]+$#', '', $_SERVER['HTTP_HOST']));
 $base_url .= ':';
 $base_url .= isset($parsed['port']) ? $parsed['port'] : (vz::in_vzcp_proxy() ? $_SERVER['HTTP_X_VZCP_PSA_PORT'] : $_SERVER['SERVER_PORT']);
 $cfg['PmaAbsoluteUri'] = $base_url . '/domains/databases/phpMyAdmin';

Regards,
Kristian
 
Hi,

I am no Parallels employee.
I have however reported this as a bug to Parallels Support (#1866121) and hope to see this fixed in either a microupdate or at least in future releases.
Maybe Igor can give some feedback if my Support-Ticket actually reached the right place.

I'll be meeting some guys from Parallels at the WorldHostingDays in a couple of weeks and follow up on this.

Regards,
Kristian
 
Yes, bug was reported as PPPM-1395 and under developer's investigation now. I haven't any ETA when fix will be included to microupdate.
 
Back
Top