Bug 3184 - phpmyadmin doesn't work allways
Summary: phpmyadmin doesn't work allways
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: José Jorge
QA Contact:
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2011-10-25 17:31 CEST by Jacques Pronchery
Modified: 2012-01-04 14:03 CET (History)
2 users (show)

See Also:
Source RPM: phpmyadmin
CVE:
Status comment:


Attachments

Description Jacques Pronchery 2011-10-25 17:31:05 CEST
phpmyadmin work one or two time and then it doesn't work.
It say :

phpMyAdmin - Error

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

There is another new version 3.4.7
Comment 1 Manuel Hiebel 2011-10-26 00:54:55 CEST
(In reply to comment #0)
> Cannot start session without errors, please check errors given in your PHP
> and/or webserver log file and configure your PHP installation properly.
Please attach the log ;)

(Here it works well)

Source RPM: phpmyadmin ver 3.4.6 rev 1.mag2 => phpmyadmin

Comment 2 Jacques Pronchery 2011-10-26 10:47:38 CEST
File /var/log/httpd/error_log before test

[Wed Oct 26 10:36:13 2011] [notice] core dump file size limit raised to 4294967295 bytes
[Wed Oct 26 10:36:14 2011] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 26 10:36:14 2011] [notice] Digest: done
[Wed Oct 26 10:36:15 2011] [notice] Apache/2.2.21 (Mageia/PREFORK-4.mga2) PHP/5.3.8 with Suhosin-Patch configured -- resuming normal operations

after test there is nothing

file /var/log/httpd/access_log when phpmyadmin doesn't works

127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET /phpmyadmin/js/cross_framing_protection.js?ts=1318760777 HTTP/1.1" 304 - "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET /phpmyadmin/js/update-location.js?ts=1318760777 HTTP/1.1" 304 - "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET /phpmyadmin/js/functions.js?ts=1318760777 HTTP/1.1" 304 - "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET /phpmyadmin/js/jquery/jquery-1.4.4.js?ts=1318760777 HTTP/1.1" 304 - "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET /phpmyadmin/js/jquery/jquery.qtip-1.0.0.min.js?ts=1318760777 HTTP/1.1" 304 - "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
127.0.0.1 - - [26/Oct/2011:10:39:06 +0200] "POST /phpmyadmin/index.php HTTP/1.1" 200 1205 "http://localhost/phpmyadmin/" "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0"
Comment 3 Manuel Hiebel 2011-10-26 12:17:21 CEST
I see no errors here.

José, if you have an idea.

Assignee: bugsquad => lists.jjorge

Comment 4 Dave Hodgins 2011-10-27 01:46:49 CEST
(In reply to comment #2)
> file /var/log/httpd/access_log when phpmyadmin doesn't works
> 127.0.0.1 - - [26/Oct/2011:10:39:04 +0200] "GET
> /phpmyadmin/js/cross_framing_protection.js?ts=1318760777 HTTP/1.1" 304 -

The http status code 304 simply indicates that the requested object
has not been changed.  That is quite normal on a page reload.

Are you entering http://localhost/phpmyadmin/ in the address bar,
or using a bookmark to go to a page within phpmyadmin?

Do you have cookies enabled in the browser?

CC: (none) => davidwhodgins

Comment 5 Jacques Pronchery 2011-10-27 09:28:46 CEST
When i start phpmyadmin the first time it works, if I quit without stopping the browser it works allways.
If I quit and stop the browser and then relaunch phpmyadmin it doesn't work.
The problem is the same with Firefox 7 or 8 and with google-chromium.
The problem is the same if I call phpmyadmin in the menu or in a console with the command "firefox http://localhost/phpmyadmin/" or in the adress bar.
Comment 6 Jacques Pronchery 2011-10-27 10:51:20 CEST
I removed the package phpmyadmin and I installed the version 3.4.7 downloaded from the site.
The problem is the same so I suspect PHP or the installation.
Comment 7 Sander Lepik 2011-10-27 13:09:27 CEST
Is logging for php enabled? Is it going into apache log or some other file?

CC: (none) => sander.lepik

Comment 8 Jacques Pronchery 2011-10-27 17:49:29 CEST
(In reply to comment #7)
> Is logging for php enabled? Is it going into apache log or some other file?

I don't understand what you want.

I reinstalled Mageia with the new update it's the same problem.
Comment 9 Jacques Pronchery 2011-10-27 18:33:54 CEST
If I remove the file ~/.mozilla/firefox/xxxxxxx.default/Cache phpmyadmin works.
And then there is the same problem, I have to remove this file to make it work.
.... and so on ...
Comment 10 Dave Hodgins 2011-10-27 21:23:21 CEST
I can now confirm the problem, and will dig to try and find some more info.

I normally use opera, where I do not see the problem.  With firefox,
if you close the browser while logged in to phpmyadmin, then run
firefox http://localhost/phpmyadmin/
the login screen is displayed.  After entering the root password,
and pressing the enter key, a screen is displayed with the message

phpMyAdmin -

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.


There are no error messages from this in any of the log files, that I
can see.
Comment 11 Dave Hodgins 2011-10-27 21:25:01 CEST
Btw, in firefox, using tools/clear recent history does correct the problem.
Comment 12 Dave Hodgins 2011-10-27 21:30:28 CEST
Now, after clearing the history, I'm back to not being able to
recreate the bug.  Very strange.
Comment 13 Manuel Hiebel 2011-10-27 21:53:09 CEST
Maybe someone can test in cauldron (last version) and then if still valid, report the bug upstream ?
http://sourceforge.net/tracker/?atid=377408&group_id=23067&func=browse

(and post the link here)
Comment 14 Dave Hodgins 2011-10-28 01:43:26 CEST
Manuel, can you try the following to see if creates the error for you ...

sudo service mysqld stop
firefox http://localhost/phpmyadmin/ 
 Enter the root password, and get the message that
 it can't login to the mysql server.
 Exit firefox
sudo service mysqld start
firefox http://localhost/phpmyadmin/ 
 Enter the root password, and see if you get
 the error in comment 10.

This seems to consistently cause the problem here.

It does not have the same problem if I use opera, instead of firefox,
so it looks like a problem with the way the cookies are being handled,
but I'm not sure if it's a firefox/chrome problem, or a phpmyadmin
problem.
Comment 15 Dave Hodgins 2011-10-28 02:35:09 CEST
Btw, it looks like
http://sourceforge.net/tracker/index.php?func=detail&aid=3382375&group_id=23067&atid=377408
covers this bug.  Once we know we have a consistent method
of producing the bug, I'll add more info to the upstream
bug report.
Comment 16 Manuel Hiebel 2011-10-28 02:39:44 CEST
Indeed I can confirm but also with IE9 in a VM.
Comment 17 Dave Hodgins 2011-10-28 03:55:12 CEST
Reported as https://sourceforge.net/tracker/?group_id=23067&atid=377408
since the one referenced in comment 15 had been closed as rejected.
Manuel Hiebel 2011-10-28 12:13:30 CEST

Keywords: (none) => UPSTREAM
URL: (none) => http://sourceforge.net/tracker/?func=detail&aid=3429543&group_id=23067&atid=377408

Comment 18 Jacques Pronchery 2011-11-20 14:41:33 CET
I installed phpmyadmin with a firefox in english so I have phpmyadmin in english.
The first time it work OK. When I stop phpmyadmin and firefox, then phpmyadmin doesn't work if I call it by menu (http://localhost/phpmyadmin/)
but if I call it by : "http://localhost/phpmyadmin/index.php" it works.
Then I configure phpmyadmin in french and save it.
When I call with "http://localhost/phpmyadmin/" I have the first page in english
but if I call with "http://localhost/phpmyadmin/index.php" it is in french.

To avoid problems it seems better the menu launch with " http....../index.php "
Comment 19 José Jorge 2011-11-20 20:15:10 CET
(In reply to comment #18)
> To avoid problems it seems better the menu launch with " http....../index.php "

I can't reproduce your behaviour : it always start in the language of my browser.
Comment 20 Jacques Pronchery 2012-01-04 13:54:51 CET
Now phpmyadmin works allways fine.
Comment 21 Manuel Hiebel 2012-01-04 14:03:38 CET
(In reply to comment #20)
> Now phpmyadmin works allways fine.

ok so closing.

thanks

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.