PDA

View Full Version : Problems with install


MadMach
06-08-2006, 10:10 AM
Hi

I am having problems with the install (version 1.5.2). I'm a newbie so please forgive me if I have missed something really obvious.

When I go to http://www.random-image.com/admin/install.php after following the install instructions, I get "Warning: Cannot modify header information - headers already sent by (output started at D:\webs\random-image.com\html\includes\create_tables.php:38) in D:\webs\random-image.com\html\admin\install.php on line 44"

I have read through a lot of these posts and tried everything - it's still not working.

So far I have tried / checked:

1 The database fields are correctly changed in the pixelpost.php file (located in /includes/).
2 'images' and 'thumbnails' are created and set to (chmod 777).
3 I'm using FileZilla for ftp. Have tried on 'auto' and 'ASCII' for transfer settings.
4 I've tried using both Notepad (with word wrap off) and Dreamweaver to edit the pixelpost.php file.
5 Have contacted my web provider to confirm correct version of MySql and also asked them to re-install the database.
6 Have tried a clean install with each of the above.

I don't know what to do next!

Can anybody help?

Thanks!

Connie
06-08-2006, 11:33 AM
I just can ask you to wait for a short time, until you will get an answer..
I have seen this error also one time, but in the moment I cannot remember what the solution was..

please keep on ..

se.nsuo.us
06-09-2006, 07:07 AM
// This will be 0 for clean install, 1.3 for that version, 1.4+ for newer versions...
$installed_version = Get_Pixelpost_Version( $pixelpost_db_prefix );
if( $installed_version == 1.49995 ) {
header("Location: index.php");
exit;
}

This is the condition which is getting triggered while installation.

Connie
06-09-2006, 08:30 AM
This is the condition which is getting triggered while installation.

so it means if there is an actual installation already, install.php should redirect to the photoblog and do nothing..

why is this not the case here?:confused:

se.nsuo.us
06-09-2006, 08:50 AM
why is this not the case here?:confused:
It cannot do that because the output has already started in line 38 of create_tables.php moving the line require('../includes/create_tables.php'); to a place after this test will fix the problem.

However if the above test is getting triggered even for a fresh install then it means there is a problem with Get_Pixelpost_Version( $pixelpost_db_prefix );

MadMach
06-09-2006, 12:42 PM
Sorry but I don't understand (I'm a newbie). Do you want me to move the line of code in the script? If so, which line number and where do I move it exactly?

Thanks!

Connie
06-09-2006, 02:29 PM
I installed a testinstallation and I found the following:

if you installed already and you do call install.php a second time, then you get this error message
but you do not need that at all

you can even delete install.php in admin-folder!

to add photos to your blog, go to

url_of_your_pixelpost_instalaltion/admin/ or to
url_of_your_pixelpost_instalaltion/admin/index.php

log in
add images
enjoy!

this errormessage comes when install.php is called after installation, which is not nice, but it does not stop you using your photoblog!

We will check that before final release, for sure!

Connie
06-09-2006, 02:34 PM
I found another annoying thing:

I went to your website and called /admin/index.php
it opened as it should, offering the login-dialogue

so it should work

but: you have a lot of warnings etc. on top of the admin page
you should turn off "error messages"

is it your server? ask your hoster to turn off "error messaging" and everything should be fine

your frontpage shows ok as well: "coming soon, nothing to show"
which is the standard message when you have no images uploaded yet

se.nsuo.us
06-10-2006, 04:20 AM
I presume the error setting on that server is E_STRICT. Ideally all those notices should be looked into and removed in the final release. However as a short cut an error level can be set in admin/index.php like it is there in the userside

MadMach
06-14-2006, 12:31 PM
Thanks for all the help so far.

I contacted my hosting provider and they can't turn 'Error messaging' off for me without doing the same for all their other users. Therefore, they won't do it.

I read the post by se.nsuo.us telling me that it can be set in admin/index.php - however, I don't know how to do this.

Can anyone tell me what the code is and which line I should put it in?

Thanks!

another thing.....

I went to http://random-image.com/admin/index.php to log on and upload my photos. When I log on I get 'The page cannot be found' error message. Will this go away when I turn error messaging off or is this another problem also?

MadMach
06-15-2006, 10:06 AM
Hi everyone

I've managed to find out the code to place in admin/index.php!!

In case anyone else has the same problem, just paste

'// Turn off all error reporting
error_reporting(0);'

immediately after 'session_start();' in the code and it works perfectly!

Thanks to everyone for your help!