New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhpMyAdmin\Url::getFromRoute() must be of the type string, null given #16713
Comments
|
Hi @svaningelgem |
$cfg['ActionLinksMode'] = 'icons';
$cfg['DefaultCharset'] = 'utf-8';
$cfg['DefaultConnectionCollation'] = 'utf8_unicode_ci';
$cfg['DefaultLang'] = 'en_GB';
$cfg['DefaultTabDatabase'] = 'db_structure.php';
$cfg['DefaultTabServer'] = 'server_status.php';
$cfg['DefaultTabTable'] = 'tbl_select.php';
$cfg['ExecTimeLimit'] = 0;
$cfg['ForceSSL'] = false;
$cfg['HideStructureActions'] = false;
$cfg['InitialSlidersState'] = 'disabled';
$cfg['Lang'] = 'en_GB';
$cfg['LeftDisplayLogo'] = false;
$cfg['LeftDisplayServers'] = false;
$cfg['MaxNavigationItems'] = PHP_INT_MAX;
$cfg['MaxRows'] = 250;
$cfg['MaxTableList'] = PHP_INT_MAX;
$cfg['MemoryLimit'] = '0';
$cfg['NavigationDisplayLogo'] = false;
$cfg['NavigationDisplayServers'] = false;
$cfg['NavigationTreeDisplayDbFilterMinimum'] = PHP_INT_MAX;
$cfg['NavigationTreeDisplayItemFilterMinimum'] = PHP_INT_MAX;
$cfg['Order'] = 'SMART';
$cfg['PmaNoRelation_DisableWarning'] = true;
$cfg['PropertiesIconic'] = true;
$cfg['QueryHistoryDB'] = true;
$cfg['QueryHistoryMax'] = 100;
$cfg['RetainQueryBox'] = true;
$cfg['RowActionType'] = 'icons';
$cfg['SaveDir'] = '';
$cfg['ServerDefault'] = 1;
$cfg['ServerLibraryDifference_DisableWarning'] = true;
$cfg['ShowPhpInfo'] = false;
$cfg['ShowServerInfo'] = false;
$cfg['ShowStats'] = true;
$cfg['SkipLockedTables'] = true;
$cfg['SuhosinDisableWarning'] = true;
$cfg['TableNavigationLinksMode'] = 'icons';
$cfg['TabsMode'] = 'both';
$cfg['ThemeDefault'] = 'original';
$cfg['UploadDir'] = '';
$cfg['UseDbSearch'] = false;
$cfg['SendErrorReports'] = 'never';
$cfg['NavigationTreeEnableGrouping'] = false;
$cfg['Export']['format'] = 'csv';
$cfg['Export']['compression'] = 'zip';
$cfg['Export']['charset'] = 'utf-8';
$cfg['Export']['sql_drop_database'] = true;
$cfg['Export']['sql_drop_table'] = true;
$cfg['Export']['csv_separator'] = ';';
$cfg['Export']['csv_columns'] = true;
$cfg['Export']['excel_columns'] = true;
$cfg['Import']['csv_terminated'] = ';';This seems linked to #16714 |
|
Hi, Same problem here , Debian 10 x64, PHP 7.3 FPM + Nginx, PhpMyAdmin version 5.1.0 As soon as I'm successfully logged into phpMyAdmin I get the same error : PHP with Display Errors on : PHP_FPM worker error log : config.inc.php for reference, which wasn't edited since a good while ago, is attached (pretty long file) : |
|
Thank you @svaningelgem
It is ;) |
|
@williamdes : that's actually in @IceNV 's config, not mine. ;-) |
I meant, not in my own configuration, since I use HTTP auth ? or is it even in that case ? (It's a bit off-topic, but I'm curious to know) |
Oh sorry :/
it is used to generated hmac signatures for SQL links to work and be secure when you click on a foreign key link (open in new tab). And in more places I forgot about @IceNV @svaningelgem could you please apply https://github.com/phpmyadmin/phpmyadmin/pull/16714/files and let me know if this fixes the issue please ? |
|
This seems to fix it. |
No, no :) |
To me it seems more sensible to push out a warning that people know to update their configuration files? Otherwise you'll keep on accumulating technical debt. Just my 2ct :) |
|
Thanks for the info regarding blowfish :) It doesn't fix it for me, I still have the same issue after replacing Util.php with the new version. Anywhere I could put a trace to see where this comes from (where it got its NULL from) ? As it's from an eval() done by twig, the PHP stack trace isn't that useful. |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
The second commit (replacing Menu.php too) made it work for me. Thanks for the fix ! |
Signed-off-by: William Desportes <williamdes@wdes.fr>
This is true ! |
Describe the bug
I received this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Getting the normal screen
Server configuration
Client configuration
Additional context
Temporary fix:
Remove "string" from the
PhpMyAdmin\Url::getFromRoute()method:Stacktrace:
The text was updated successfully, but these errors were encountered: