PHPMYADMIN login form hidden - mysql

If I go on the welcome page of phphmyadmin there's no login form.
After a double check, I notice the form is hidden:
<form method="post" action="index.php" name="login_form" class="disableAjax login hide js-show" data-bitwarden-watching="1">
Any ideas about this?
Some tech: Server version: 10.1.45-MariaDB-0+deb9u1 Debian 9.12
Best.

I had the same problem after I installed some upgrades in Debian (Server: 10.5.8-MariaDB-3 - Debian bullseye - PhpMyAdmin 4:5.0.4+dfsg2-1).
It's caused by wrong symbolic links to the jquery files:
/usr/share/phpmyadmin/js/vendor/jquery/jquery.min.js
/usr/share/phpmyadmin/js/vendor/jquery/jquery.min.map
These two symbolic links are referring to files that don't exist on my computer.
My solution: replace these two symbolic links with the jquery files that you can find on https://jquery.com/download/.

In the meantime you can actually access the database and un-hide the login form by going to inspect element, and either double click on the "class" attribute, delete that whole string and then hit enter, or right click, click "edit as html", and remove the class attribute, then just click off of the text box. In either method the login form will appear and you can log in and use the database. I have had the same issue and am still trying to permanently fix. Will try the above solution with the symlinks! Also I am using firefox esr browser so you may or may not have to click on another similar option to edit the html.

I first went into my folder '/var/www/html/phpmyadmin/js/vendor/jquery'
and deleted both the jquery.min.js and jquery.min.map files.
Then I copied the code from the url 'https://code.jquery.com/jquery-3.6.0.min.js'
and pasted into a new file named 'jquery.min.js' inside the folder where the old one was.
Then I used 'sudo systemctl restart apache2' and when I went back to the page the login form was visible. Everything seems to be working great, and there are no more warnings and errors in the console.

All the previous answers are good, but since phpmyadmin in this case only uses links to vendor files (jquery) it would be nice to copy these files to the folder pointed to by these links. Most likely it will be /usr/share/javascript/jquery/. In that case, the rest of the applications can also use the same files.
In short:
go to https://jquery.com/download/
copy compressed production jQuery file and rename it to ' jquery.min.js '
copy map file and rename it to ' jquery.min.map '
copy these two files to /usr/share/javascript/jquery/

Related

VS Code - How to stop it deleting whitespaces?

I am using Microsoft's VS Code to edit css, html and ts files that are shared by my team on a VSTS Git repo. However, my VS Code keeps removing empty/whitespaces that my colleagues added when I save any change (Image below) and this screws up the whole Git Diff part, as almost every single line of code shows as a diff.
I tried to disable every single config setup but nothings works:
At the end, what was causing my problem was the extension: EditorConfig for VS Code
This plugin attempts to override user/workspace settings with settings
found in .editorconfig files. No additional or vscode-specific files
are required. As with any EditorConfig plugin, if root=true is not
specified, EditorConfig will continue to look for an .editorconfig
file outside of the project.
I believe, it was overriding the options I selected inside of VS Code (such as files.trimTrailingWhitespace: false). So, no setup change I was making was actually being applied.
It seems you have trailing whitespace enabled in User Preferences too.
I'd suggest opening your configuration file of VSCode using
CtrlShiftP or
CmdShiftP in Mac and then go to Open User Settings.
I'm sure the next line is around there somewhere, delete it or change it to false.
files.trimTrailingWhitespace": true
In my case, the JS-CSS-HTML Formatter extension from lonefy
caused the problem.
Editor › Comments: Ignore Empty Lines
——>choose :false

CSS file either deleted or is hidden in atom

I have been learning for just over a month now and I started my first project and I was coming to a close with it and literally last sec the CSS file is blank. I am using chrome and atom text editor. I did not have my git acc linked to it so history is not saved on it. The only thing showing on the file for the class is "
1
*
*
*
*
*
"
When I hit backspace it takes forever to delete because I'm pretty sure my code is just hidden there or something. I have no idea what happened. I spent some hours trying to fix it but no dice.
Have you tried opening the file in explorer?
If you right click on your project folder there is an option to open in file explorer. (This may say "Show in file manager" if you're using the latest version of Atom)
Check if the file is there, if it is, try opening it notepad or another simple text editor.
If it's not there it may have been corrupted, I've used atom quite a bit and never encountered this problem.
If it is, you can always just delete the file in your project folder and make a new one, pasting the contents in from when you opened it in notepad.

Moodle - where are URLs/links stored in database?

I'm exporting an old release 1.9.2 and importing to 3.0.2.
Each module has dozens of videos that I play via an URL/link, which points to my own .PHP program on the site (and that wraps a Camtasia video).
I found that in 3.0.2, the link opens on a separate page, unless I edit each link by going to "Appearance", then "Display" and setting it to "Embed".
So I would like to write a mySQL update script to automatically set this flag for all such links (I will add a where clause to my script name).
I checked database in PHP/MyAdmin, and didn't see any likely table names.
You should attempt to use the admin tools to update everything, go to your moodle installation's main URL.
Then go to the site administration. After /admin in the url, add /tool/replace and go there.
You can there enter what you want to find in the db, and replace it with another value. Just be carefull with this tool and make a backup before you begin.

PhpMyAdmin editable rows inside Cpanel

There are threads here with similar issue, but none of them specifically inside Cpanel. And none of their solutions work.
Basically, I am using a WHM/Cpanel setup.
INside PhpMyAdmin, I changed the editing type in Settings --> Main Panel (inside Cpanel) but it still doesn't make the rows editable on click, or double click, in Safari/Chrome/Firefox. What am I missing?
The implementation is on WHM/Cpanel. So I can also change the main config file of PhpMyAdmin. I changed the /usr/local/cpanel/base/3rdparty/.../config.inc.php where I had to add this line:
$cfg['GridEditing'] = 'double-click';
Then I saved the file, and restarted MySQL (not that that would help, but some site mentioned it), and refreshed phpmyadmin in my browser. No go. The rows in the Browse mode in a table are still uneditable.
The version is 4.0.4, which is the latest available in Cpanel.
What am I missing?

How to edit preference file for Notepad++?

My open source project uses spaces, not tabs, in its code.
A contributor to the project has his own website which uses tabs, not spaces.
He uses Notepad++ in Windows to edit files for both projects, and is frustrated when he forgets to manually set the Preferences correctly and thus inserts tabs into my project's files.
Is there a way to edit this Preference via a script? That way he could click one icon to start Notepad++ in mode 1 (running a batch script to modify the Preferences file and then start the program) or click another to start in mode 2.
Or if there's any other way to make him not have to remember this chore, that would work too. Maybe having a Preferences setting that depends on what folder the edited file is inside of?
Any help would be appreciated. Thanks!
The notepad++ setting for replacing tabs with spaces is stored in following xml file
%USERPROFILE%\Application Data\Notepad++\config.xml
The following is the line that needs to be changed
<GUIConfig name="TabSetting" size="4" replaceBySpace="yes" />
Now I don't know how we can edit a file by batch script in windows, but if it is not possible, then he can keep two config files config-tabs.xml and config-spaces.xml. And in the script you can copy appropriate file depending on what he needs to work on.