PDA

View Full Version : installed fine, viewed index.php = blank screen


jpo245
10-11-2004, 12:18 AM
Hi, i don't know what i did wrong. installation went fine, uploading a picture in admin went fine, but when i get to http://rathernifty.com/pixelpost
it just gives a blank page!

Any idea whats going on?

Many thanks

pixelpunk
10-11-2004, 07:09 AM
To tell you the truth - not the slightest idea!
You're on a Windows server it seems though and pixelpost haven't been tested on that.

It's hard to tell where it fails. Open up the mainscript, index.php, and near the top you will have a line that says error_reporting(0);
Change that into error_reporting(E_ALL);.

That will probably throw some errors your way which in turn we might be able to draw some conclusions from.

Cheers // pixel

Anonymous
10-11-2004, 04:02 PM
I think you might have switched template to ".DS_Store" in the admin area under "options".

At least when I tried that myself the whole page turned white, just go to /admin and change - see if it works.

- David

jpo245
10-11-2004, 05:06 PM
hey everyone, many thanks for the quick replies...

tried putting E_ALL for error reporting.. still turns up a blank page!
viewing the source doesn't even show much.

also tried changing the templates, still doesn't work :(

im so keen on using pixelpost!!

sigh.. will keep trouble shooting i guess...

pixelpunk
10-11-2004, 05:21 PM
David,

is there a .DS_Store in there?

I might have to upload a new archive since that's just a filesystem "configuration" file, on Mac anyway. Shouldn't be there.

jpo245 - I really have no idea what's the trouble here and since you're on a Windows machine I'm very limited in knowledge. I can of course do a trial and error test if you wish to give me login details to your webserver. I need to be able to edit the files, so ftp access is a must.

You have my word that I'm a good guy, it's your decision. Nobody should let a stranger in without some serious consideration. But it's really all I can offer, I'm sorry.

// punkpixel

jpo245
10-11-2004, 05:44 PM
hi pixelpunk,

i'd be more than happy to give u access to my webserver...

basically im running apache + php + mysql on a windows box, so what exactly do u need?
i can create an ftp account for u that goes directly to my www root directory, and i can give u access to my phpmyadmin which allows u to modify the mysql tables.

any other stuff u need?

thanks!

pixelpunk
10-11-2004, 05:48 PM
I just need to access the pixelpost files, no mysql or anything. You say the install and upload went fine so I figure that part is alright, it must be the script that screwing it up.

PM me the details and I'll see what I can do, absolutely no guarantees I can make it work though. windows is a whole new ballgame, I've never used that platform.

// pixpunk

Anonymous
10-11-2004, 06:10 PM
Yup, under "switch template" there's the option of .DS_Store. The file, the same name at least, is in almost every folder too. Is it okay to delete them?

Cause I'll be happy too, want no stinky mac stuff in my PC :)

- David

pixelpunk
10-11-2004, 06:14 PM
Yup, throw them away. They are files that holds certain information on the folder they are in, such as background pictures, iconsizes, iconposition etc that are unique for that folder only.

Throw them out, now!

// Macuser ;)

Anonymous
10-11-2004, 08:52 PM
i have a blank page now !!
The site work fine since the install but i have this problem now :(
My server is a linux and work with apache

turnover
10-11-2004, 08:54 PM
the guest is me sorry :)

pixelpunk
10-12-2004, 07:43 AM
I have fixed jpo245's install. This makes me happy since the script obviously works on windows boxes as well as Unix, Linux, MacOSX.

I have an extremely basic check for GD that made it flunk. This might occur on *nix too, I don't know.
edit: hmm, after looking at it one more time, I have no idea what I was doing at all

Turnover, try to change the following.
Open up the main script file (index.php).
Go to line 144 which reads
if($gd_info = gd_info()) { // check that gd is here before this
and comment that one out, ie put two slashes in front of it like this:
// if($gd_info = gd_info()) { // check that gd is here before this

Then go to line 177 and do the same thing,
} // if gd info end
changes into
// } // if gd info end

Tell me if this is solution for you as well.

jpo245
10-12-2004, 08:00 AM
oh me god... pixelpunk u rock...

sorry i myself am quite a newbie when it comes to php... i do noe some c++ but never really took the time to understand the script..


so what exactly was wrong? i still don't quite get....

why does the check for gd fail?


many many thanks again pixelpunk!! u rock!! i can foresee many millions of people using pixelpost...

so elegantly simple

pixelpunk
10-12-2004, 08:17 AM
Many millions! Boy do I hope not! The support, the pressure!

It makes me happy when people use it though, so thank you.

What was wrong? I guess I was smoking crack when I wrote the GD-check. I can't make any sense out of it now when I look at it.

The script was basically slammed together and things like this comes up afterwards. I'm awaiting more of those to eradicate them. Bring'em on!

// punkpixel

jpo245
10-12-2004, 08:35 AM
heee since ur at it, there seems to be some problem with the max thumbnail size option... i can't seem to change it..

what is it there for?

1. i assume i have to resize my thumbnails manually right?
2. but is there any option for the script to just display the thumbnail in a small size (browser resizing, not actual resizing)
3. right now it seems to display it actual size... so if the thumbnail is 1024x768, it'll display it as full size..


btw: what do u do?

turnover
10-12-2004, 08:37 AM
I have commented the index.php to the main folder and i don't work
Blank page ... and the source is<html><body></body></html>
I don't know why i have a blank page now, i work fine before ...
I don't understand ... :? :(

pixelpunk
10-12-2004, 08:40 AM
heee since ur at it, there seems to be some problem with the max thumbnail size option... i can't seem to change it..

what is it there for?

1. i assume i have to resize my thumbnails manually right?
2. but is there any option for the script to just display the thumbnail in a small size (browser resizing, not actual resizing)
3. right now it seems to display it actual size... so if the thumbnail is 1024x768, it'll display it as full size..


btw: what do u do?

1. In the options panel, you set your size, for example 50 x 50 (max sizes, either or), the click update and all thumbnails are updated to the new size. So it's manual in the sense you have to click a button.
2. Browser resizing is ugly, but can be controlled through the template of course. Via CSS, the class is called "thumbnails" for every but the current one, whos class is called "current_thumbnail".
3. If the thumbnail is 1024x768 it will display that big. But default the thumbnails should be 100 x 75.

Try updating the thumbnails in the options panel in admin.

// punk

pixelpunk
10-12-2004, 08:46 AM
I have commented the index.php to the main folder and i don't work
Blank page ... and the source is<html><body></body></html>
I don't know why i have a blank page now, i work fine before ...
I don't understand ... :? :(

If you get <html><body></body></html> then something went very wrong.
I suggest you revert to a fresh index.php and then follow the instructions carefully how to comment out the two lines as I wrote in a previous post.

Hope you get it right, the same applies to you - if you need hands-on help you may give me ftp access to your server and I can see what I can do.

// punk

turnover
10-12-2004, 09:03 AM
Don't work with the commented lines but ...
I have changed the template for the template-light and i work fine now. This is a bug ? I see for more info at the choice of template

pixelpunk
10-12-2004, 09:17 AM
Don't work with the commented lines but ...
I have changed the template for the template-light and i work fine now. This is a bug ? I see for more info at the choice of template

The pixelpost-dark template should work equally fine. You probably have one more choice, .DS_Store, which is a leftover filesystem file that should not be there. I have to exclude such files when listing the templates for starters, and remove them from the package each time I archive a new one.

// punkx

turnover
10-12-2004, 09:26 AM
Ok thks
I work now for a new template and i wait the date and time modification :wink:
You see in action at http://www.meszamis.org/test/
i work slow :lol:

pixelpunk
10-12-2004, 09:32 AM
Nice beetle there.

It's very easy to create your own template. You can use any software to produce a good looking page, and then go in and add the pixelpost tags to the template.

Remember to put it in a separate folder and name the files correct (as they are in the default templates).

Just ask away if anything comes up.

// punK

I got to clear out some stuff at work. Next release will be a "bugfix" release, I won't introduce any grand features, but the date and time thing I will fix. Will serve it chilled in a few days, during the weekend I guess.