PDA

View Full Version : Errors during installation


jtoews
04-18-2005, 07:00 PM
I'm getting errors near the end of my Pixelpost installation and then the server won't let me log in to the admin area

using 5.0.3 PHP
MYSql 4.0
unix server
there is an image directory
there is a thumbnails directory
the permissions are set to 777

these are the first errors i get:

Notice: Undefined index: x in /u/t/trishque/www.jontoews.com/photoblog/includes/12cropimageinc.php on line 30

Notice: Undefined index: x in /u/t/trishque/www.jontoews.com/photoblog/admin/index.php on line 62

Notice: Undefined index: x in /u/t/trishque/www.jontoews.com/photoblog/admin/index.php on line 121

Notice: Undefined index: x in /u/t/trishque/www.jontoews.com/photoblog/admin/index.php on line 133

Notice: Undefined index: x in /u/t/trishque/www.jontoews.com/photoblog/includes/12cropimageincscripts.php on line 30

Notice: Undefined index: view in /u/t/trishque/www.jontoews.com/photoblog/includes/12cropimageincscripts.php on line 30
Welcome to Pixelpost Admin - You need to login.
Login sets a cookie
Username

Password


Notice: Undefined variable: loginmessage in /u/t/trishque/www.jontoews.com/photoblog/admin/index.php on line 210

Then if i try to log in i get:


Not Found
The requested URL /photoblog/admin/<br /><b>Notice</b>: Undefined variable: PHP_SELF in <b>/u/t/trishque/www.jontoews.com/photoblog/admin/index.php</b> on line <b>203</b><br /> was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Hope this is all specific enough.....any help?

Connie
04-18-2005, 07:19 PM
jtoews, thanks for registering!

I checked the main page and that seemed to be ok, as it showed Coming Soon! Nothing to show. No image to show here! which means that the database is working, but has no entries until now

It seems that some of the mistakes come from the 12cropimageinc.php, did you edit anything in that?

could it be that this part does not work with PHP 5?
I made a search for the errorstring and found this posting:

http://www.pixelpost.org/forum/viewtopic.php?t=359&highlight=undefined+index+x

are you running the same configuration?
are you working on a local server or on a webspace-server?

jtoews
04-18-2005, 07:53 PM
i tried installing php 4 instead of 5

still got the same messages

and 'Not Found' error when trying to log on to admin area

i didn't edit anything besides pixelpost.php

i also reuploaded the problem php files just in case

i'm uploading these files to my hosting server NOT local

the poster here: http://www.pixelpost.org/forum/viewtopic.php?t=359&highlight=undefined+index+x


seems to have similar issues...but doesn't seem to have resolved them...

any other help?[/quote]

raminia
04-18-2005, 08:13 PM
the same for you
turn error reporting off in php.ini OR use error_reporting(0); everywhere you use PP.

raminia
04-18-2005, 08:17 PM
and try
Try <?php echo $_SERVER['PHP_SELF']; ?>. The $PHP_SELF variable does not work on newer versions of PHP in some configurations -- I believe this is when the 'register_globals' option is off.

and read commets of this
http://nslog.com/archives/2004/03/01/vcard_php.php

raminia
04-18-2005, 08:21 PM
to avoid this and as a bad but fast solution add this to admin/index.php as it was inside v1.3
$PHP_SELF = 'index.php';
you can add this to index.php if you faced the problem there. but the solution is in my last post.

jtoews
04-19-2005, 12:03 PM
Thanks very much for trying to help.

Sadly, i am not familiar with coding php.

I am going to need more explicit instructions.

where do add this code?

$PHP_SELF = 'index.php';

or where do i try this?

<?php echo $_SERVER['PHP_SELF']; ?>

pvav
04-26-2005, 10:05 AM
I had same problem.

Open the file admin/index.php and add Code:

error_reporting(0);

at the top of it. This will solve your problem.