Internal Server Error on first run

Bug #529368 reported by Oli
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
chive
Incomplete
Undecided
Unassigned

Bug Description

Just tried to test out chive on my local MAMP pro setup. After I entered in my credentials (root:root@localhost) and clicked login, I get the followin:

Internal Server Error

Trying to get property of non-object

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

note: all files/directories => 777

Revision history for this message
voidf.0xb3 (voidf-0xb3) wrote :

Similar issue here. For test purposes, I've copied Chive to my local server. After I enter login data (Host: localhost; User: root; Password: [correct root password here]), I get an Internal Server Error message with the following error:

PDO::__construct(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306)

I'm running MySQL 5.1.40-community and Apache 2.2.14 with PHP 5.3.1 on Windows 7 Home Premium, if that matters.

David Roth (davrot)
Changed in chive:
importance: Undecided → High
David Roth (davrot)
Changed in chive:
assignee: nobody → Matthias Burtscher (mburtscher)
milestone: none → 0.2.1
Revision history for this message
Matthias Burtscher (mburtscher) wrote :

Is your MySQL server running on a different port?

Revision history for this message
Oli (featherodd) wrote :

default port 3306

all apps access mysql via localhost, incl. SQL Buddy

oh, except command line frameworks like Symphony that access mysql.sock (this is redirected to my MAMP as well)

Changed in chive:
milestone: 0.2.1 → 0.3.0
Revision history for this message
Matthias Burtscher (mburtscher) wrote :

Seems to be a PHP: http://bugs.php.net/bug.php?id=45150

Please try changing localhost to 127.0.0.1 to log in.

Changed in chive:
status: New → Incomplete
Revision history for this message
David Roth (davrot) wrote :

There is nothing we can do without further information.

Changed in chive:
assignee: Matthias Burtscher (mburtscher) → nobody
importance: High → Undecided
milestone: 0.3.0 → none
Revision history for this message
Oli (featherodd) wrote :

Just tried Chive 0.2.0 and was able to login just fine using root:root@localhost

But that's as far as I could get. Clicking on any of the databases on the left gives the following error:

Internal Server Error

Undefined variable: bookmarks

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

2010-03-20 12:03:35

Revision history for this message
David Roth (davrot) wrote :

Is mod_rewirte enabled and configured properly?
See also: https://answers.launchpad.net/chive/+question/102934

Note that mod_rewrite is no longer required in chive >= 0.3 (will be released soon)

Revision history for this message
Mobman02 (mobman02) wrote :

I have the same issue here,
with PHP 5.3.2 on Ubuntu.

Can't do anything, I have the login screen, but when I submit, nothing append until I get this :

Internal Server Error

Trying to get property of non-object
[blabla]

Revision history for this message
Mobman02 (mobman02) wrote :

I have found my issue :

if(ConfigUtil::getUrlFopen())
 {
 $xml = @simplexml_load_file('http://feeds.launchpad.net/chive/announcements.atom');
 $entries = $xml->entry;
 }

I am behind a Proxy so simplexml_load_file can't load the file.

$xml must be tested that way before try to read an "entry" attribute :

if ( ($xml instanceof SimpleXMLElement) && isset($xml->entry) )
{
$entries = $xml->entry;
}

My 2cts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.