PhpMyAdmin is suddenly showing errors - mysql

I hope you're doing well.
Last week (friday) phpmyadmin was working just fine, but when I tried to work with it today it shows me some errors and doesn't show databases etc.
I'm workin with xampp on windows 7 (it's not my pc ...)
Here is the error:
Fatal error: Uncaught TypeError: Argument 2 passed to
PhpMyAdmin\Core::arrayWrite() must be of the type array, null given,
called in C:\xampp\phpMyAdmin\libraries\classes\Config.php on line
1049 and defined in C:\xampp\phpMyAdmin\libraries\classes\Core.php:677
Stack trace: #0
C:\xampp\phpMyAdmin\libraries\classes\Config.php(1049):
PhpMyAdmin\Core::arrayWrite('lang', NULL, 'fr') #1
C:\xampp\phpMyAdmin\libraries\classes\Config.php(996):
PhpMyAdmin\Config->setUserValue(NULL, 'lang', 'fr', 'en') #2
C:\xampp\phpMyAdmin\libraries\common.inc.php(453):
PhpMyAdmin\Config->loadUserPreferences() #3
C:\xampp\phpMyAdmin\index.php(27):
require_once('C:\xampp\phpMyA...') #4 {main} thrown in
C:\xampp\phpMyAdmin\libraries\classes\Core.php on line 677
Thank you for your interest.
Have a good day.

Please try clearing your browser cache and remove phpMyAdmin cookies, which start with "pma".
follow these steps
Open up your phpMyAdmin in browser
Press F12 to open Developer tools
go to Application > Clear storage
Clear all Cookies and Cache
Try refreshing the page.

Open up your phpMyAdmin url and press F12 for Developer mode .. go to Application Tab and Clear all Cookies .. refresh your phpMyAdmin page .. should be good to go .. enjoy

follow these steps...
Open up your phpMyAdmin URL
Press F12 for Developer mode
go to Application Tab and
Clear all Cookies
refresh your phpMyAdmin page (if not working once restart the server and try again)
.... .. .. hurray!!! it's done .. ... .....

Restore your database 'phpmyadmin' from your latest backup.
Before you stop MariaDb and then as usual, restore and start your DBMS again. It'll work.

I did not find a "Application tab" in the Developers menu like mentioned by Eliki Bula and Norbert
But followed the steps to clear a single site from the cache in Firefox and "forgot" the url of mypage/phpmadmin and it worked, the error was gone.
So its fact.
The reason for this problem is somewhere in the Cookies from phpmyadmin, to you yust have to clear the cookies for this page on any way.

Related

Can't export database from phpMyadmin on Xampp

I tried to export a WordPress database from Xampp's phpMyAdmin, but suddenly this error shows up:
Fatal error: Uncaught TypeError: Argument 5 passed to PhpMyAdmin\Export::getFilenameAndMimetype() must be of the type string, null given, called in C:\xampp\phpMyAdmin\export.php on line 380 and defined in C:\xampp\phpMyAdmin\libraries\classes\Export.php:270 Stack trace: #0 C:\xampp\phpMyAdmin\export.php(380): PhpMyAdmin\Export->getFilenameAndMimetype('database', '', Object(PhpMyAdmin\Plugins\Export\ExportSql), '', NULL) #1 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\Export.php on line 270
I tried cleaning the cache from the dev tools of the browser, but the issue hasn't been solved. Besides, as soon as I click on "Export", I see a message about one form having more than 1000 lines.
I successfully exported the database with the command line, following another solution found here at StackOverflow, but I need to deselect a couple of tables, which is why I'd rather use the "usual" way.
Thank you very much in advance!
This is what, in my case, solved the issue.
Open the Xampp's php.ini file and paste the following at the bottom:
max_input_vars = 5000
suhosin.request.max_vars = 5000
suhosin.post.max_vars = 5000
Save the file and restart Apache from Xampp.
This is what worked for me when I was exporting a table,
While you export you will find Quick is selected,
you need to select custom, then
go to Output section and do the following
select, save output to file
on compression category, select zipped
Then go on download your table as a zipped file.

Chrome Extension (Windows 10) - how to find crash log / report?

I'm running a Chrome Extension on a Windows 10 computer but sometimes it crashes and it's always when I'm not in front of the computer. I'd like to find a way to see what happened and find out the reason of the crash.
I have started chrome in debug mode with this:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ---enable-logging --v=1 ---vmmodule ---no-sandbox
I can't find a chrome_debug.log anywhere.
I see a couple of DMP files in the Chrome folder. I have tried to edit them with Windbg but the information I get out of it is very limited:
*** WARNING: Unable to verify checksum for chrome_child.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for chrome_child.dll -
rax=00000000aae79636 rbx=000266be30311920 rcx=000002d27ba72f40
rdx=000002d27ba76380 rsi=000000000000b880 rdi=0000000002b801d0
rip=00007ff802feaf07 rsp=000000f125dfdde0 rbp=000000f125dfde00
r8=0000000000000000 r9=0000000000000140 r10=000002d200005c00
r11=0000000000000000 r12=0000000000000003 r13=00007ff8074875a9
r14=000002d27ddb0820 r15=0000518316a04000
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=0000 ds=0000 es=0000 fs=0053 gs=002b efl=00010206
chrome_child!ChromeMain+0x419517:
00007ff8`02feaf07 3b03 cmp eax,dword ptr [rbx] ds:000266be`30311920=????????
That doesnt help me much unfortunately. My browser console crashed with the extension so I can't see there what happened. If I could may be have active logging on the console, that could help but I don't know how to do this.
The extension sometimes run fine for a couple of days and then suddenly it crashes, I don't really see a pattern here.
I have taken the "massage" option from wOxxOm here below and I get more information but again, it's not something that helps me very much as I don't see something related to the chrome extension:
Any idea?
Thanks!

JsFiddle.net - MooShellEditor is not defined

When I try to access jsfiddle.net from my machine, browser doesn't load the page correctly. I checked on console and it shows following errors:
Uncaught SyntaxError: Unexpected token ) jsfiddle.net/js/EditorCM.js?nojobofferinsidebar:290
Uncaught ReferenceError: MooShellEditor is not defined jsfiddle.net/:89
Uncaught TypeError: Cannot read property 'editor' of undefined jsfiddle.net/js/Actions.js?nojobofferinsidebar:151
I tried on Chrome, Firefox and IE but getting errors on all. Is there any specific browser settings? I can see it's working on different machine.
Posting reply after long time but hope it will be helpful to someone.
If you have Proxy server settings selected under LAN Settings of IE (Tools -> Internet Options -> Connections tab -> LAN settings) then the errors were shown on the console. If I select Automatatically Detect Settings then it worked fine.
If you start Fiddler on your machine then it will select proxy server settings. Probably, that was causing an issue for me.

Starting google-chrome via Selenium on headless debian system

I'm trying to start the google-chrome browser in disabled web security mode. The selenium log says:
15:36:33.526 INFO - Command request: getNewBrowserSession[*googlechrome, http://www.myurl.de, , commandLineFlags=--disable-web-security] on session null
Anyways, it just hangs after
15:36:33.600 INFO - Launching Google Chrome...
Here's the stack trace:
16:36:44.605 ERROR - Failed to start new browser session, shutdown browser and clear all session data org.openqa.selenium.server.RemoteCommandException: timed out waiting for window 'null' to appear at org.openqa.selenium.server.FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java:564) at org.openqa.selenium.server.FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java:521) at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:374) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:125) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:87) at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:785) at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:422) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:393) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:146) at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530) at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482) at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909) at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820) at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986) at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837) at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243) at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357) at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Selenium is started by robotframework by the robotframework-maven-plugin. Also xvfb is started by the maven build script to simulate a display. But the startup configuration does not seem to be the problem. Everything starts fine, just the browser won't get up.
I hope anyone can help me.
Make sure that the user account that is launching the browser has a home directory. Otherwise the browser profile creation will fail.

Is there a way to handle catch exception in MSI install wizard?

I am facing some odd situation that when I select/deselect the features in the feature customization wizard, it sometimes crashes the window. It does not give any clue at all. It also not happens consistently.
Do you have any idea or faced such kind of issue? I am able to even trace the root cause using install log.
You may be able to get closer to isolating the problem if you turn on the Debug policy. Do this by setting HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer's Debug value to (dword) 7 in as described on the Windows Installer team blog. You will then need to use a tool like DebugView to view the extra output that Windows Installer will generate. Note you may have to restart the "msiserver" service for the policy to take effect. Best luck making sense of what it shows; often it's just a lot of SQL query dumps.
You can sometimes grab MSI exceptions from out of the event log, but they won't always tell you much.
Instead what you can do is turn on logging of the MSI, this can be done either via the registry, or via the command line. To find out about the registry option, visit this MS Support article. To do it from the command line you can use the same switches, but they obviously will only last for that one install. This is a snapshot as gathered from msiexec:
Logging Options
/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
i - Status messages
w - Nonfatal warnings
e - All error messages
a - Start up of actions
r - Action-specific records
u - User requests
c - Initial UI parameters
m - Out-of-memory or fatal exit information
o - Out-of-disk-space messages
p - Terminal properties
v - Verbose output
x - Extra debugging information
+ - Append to existing log file
! - Flush each line to the log
* - Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>
To take advantage of these options, use msiexec directly:
msiexec.exe [path to your msi] /l [your options]