PDA

View Full Version : Not so graceful failure on install


marreka
02-02-2008, 08:38 PM
Hello,

I'm trying to install Pixelpost 1.71 on my server.
I go through all the steps no problem, but then when I get to setting up a database, the installer fails.

I fill out the details on the page, and then hit "Test Connection". It tries to load something, but I just get a blank screen.
I don't know what's going on. I have the host, db name, username, and password correct... But no idea what it's trying to do or why it fails.


Any help will be appreciated.

Thanks,
Matt

Dkozikowski
02-02-2008, 09:04 PM
Memory limit issues? Could be that the script it timing out.

Open the /install.php file located in your admin folder.

Find define('PP_INSTALL', true);

Right under it, add:

error_reporting(E_ALL ^ E_NOTICE);

So it looks like:

define('PP_INSTALL', true);

error_reporting(E_ALL ^ E_NOTICE);


Save and try your install again. Does it show any errors?

marreka
02-02-2008, 10:55 PM
Nothing but a blank page :/

Edit:
By the way, I don't think it's timing out. It just fails without taking much time at all. 1 second tops.

Dkozikowski
02-02-2008, 11:20 PM
If it turned to nothing but a blank page, you did something wrong when inserting my code. You should definitely see an error if one exists and it sounds like one does.

marreka
02-02-2008, 11:34 PM
I'm just as confused as you are.

Here's what the head of my install.php file is:

[root@nasuno admin]# head -n 15 install.php
<?php

// SVN file version:
// $Id: install.php 514 2008-01-16 19:24:38Z schonhose $

define('PP_INSTALL', true);

error_reporting(E_ALL ^ E_NOTICE);

/**
* Define current Pixelpost version. !!!!! IMPORTANT !!!!!
* This must be the same version number as stored in the version database table
*
*/
define('PP_VERSION', '1.71');
[root@nasuno admin]#

austriaka
02-03-2008, 07:39 AM
I hope, this line
[root@nasuno admin]# head -n 15 install.php
is not really part of your code, is it?

Dennis
02-03-2008, 09:29 AM
hmm no, it is a UNIX command to show the first 15 lines of install.php.

austriaka
02-03-2008, 11:34 AM
ok, sorry :-)

marreka
02-03-2008, 01:30 PM
Also, if I just go to the pixelpost installation's main directory (i.e. try to access /pixelpost/index.html), I get the same blank screen with nothing in the source at all.

I just noticed this now.

Dkozikowski
02-03-2008, 02:14 PM
Marreka, care to supply me with some temporary FTP access so i can look at/edit the files? Private Message me if you wish for me to have a look.

marreka
02-09-2008, 04:42 PM
Sorry for taking so long to respond. I've been really busy this week.

Check your pm inbox. I just sent the info.

Thanks a lot!

Dkozikowski
02-09-2008, 05:52 PM
Yeah, you're going to have to give me more permissions that just reading. If i can't edit and save files I can't help you.

Dkozikowski
02-09-2008, 07:46 PM
Marreka, thanks for the write permissions. Now I am able to tell you what is wrong.

Your PHP installation does not support MySQL databases. Upon further digging within your PHP info, I was able to confirm this as fact.

You are receiving a blank page because the mysql_connect() function which is used to connect to a MySQL database is not found.

You're going to have to talk to your hosting provider about this!

marreka
02-09-2008, 08:45 PM
oh man you're right. haha oops. That's embarrassing.
I just installed it and it works great. (For some reason I thought it was already installed)

Thanks so much for your help!