NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 12-01-2009 19:46:28

Parka
Guest

Install.php returns blank page :(

I'm mind blocked.
I tried to install it from scratch in a fedora box. The install.php script returns nothing, and adding " echo('debug'); die(); " at the beginning, returns nothing as well. I chmoded everything to 777. I'm blind here and I dont like it T_T  , I cant finish my nested responses feature until I figure this out (If anyone is curious, could take a look here: xiv.zules.com ). I would appreciate any help.

#2 12-02-2009 03:46:55

Waccoon
Administrator

Re: Install.php returns blank page :(

It looks like the board is working now, and I read your summary.  Do you still need help with anything?

Offline

#3 12-02-2009 19:50:32

Parka
Guest

Re: Install.php returns blank page :(

I do. That's not my board, and it's not the one width the problem. That's a board it uses a  primitive version I made of the enhancement. The one I can't make run is in my own pc, my development station. And I still find annoying the " echo('debug'); die(); " stuff.

PD: If I achieve to make a good version I'll post it around this forum so anyone can use it.

#4 12-03-2009 01:26:30

Waccoon
Administrator

Re: Install.php returns blank page :(

Well, if echo() doesn't return anything, I'd say we have a big problem.  First, some questions...

- Is a bare PHP script having problems, or is this just the oekaki installer?  Sometimes a syntax error or a bad filter option can cause a completely blank page, rather than an error message.

- How did you install your development system?  Are you installing all the components separately, or are you using an all-in-one package like XAMPP?

- Is PHP running as CGI or an Apache module?  CGI is when you tell Apache to use "php.exe" using when dealing with PHP files, using the "AddType" configuration option.  A module is when you add an SO library using the "LoadModule" configuration option.

- Can you run a PHP info script?  <?php phpinfo(); ?>

- Windows, OSX, Linux?

Offline

#5 12-03-2009 17:15:32

Parka
Guest

Re: Install.php returns blank page :(

Bare php works ok. installer not.
Installed them all with something like "yum install apache php mysql mysql-server" or something.
I dunno if it's installed as a module. My guess is it's not, since there is no modules named like "%php%". Also I can run php from console.
phpinfo(); runs smothly. No problem there.
And as I wrote before, and I guess you figured out, I'm on linux. Fedora 12, actually. smile

#6 12-04-2009 02:43:44

Waccoon
Administrator

Re: Install.php returns blank page :(

A quick search revealed that the "WSOD" (White Screen of Death) is actually quite common.  Here's a few things you can try:

1.) Remove the condition that checks for the presence of GDlib.  GDlib is an image library that allows the oekaki to generate thumbnails.  Apparently, using it if it is not installed can cause problems.  If this does fix the installer, it will be necessary to fix the control panel as well.  It's possible that your install of PHP doesn't have GDlib turned on, so we might have to take care of that.

Code:

if (!extension_loaded ('gd')) {
echo <<<EOF
                <p class="infonote">{$langop_err_nogdlib}</p>

EOF;
}

2.) Remove the condition that checks for short tag support.  If the GDlib condition can fail, this might as well.

Code:

// OP/Wax still requires short open tags.
if (function_exists ('ini_get') && ! ini_get ('short_open_tag')) {
    exit ('OP requires PHP setting "short_open_tag" to be "On".  Try copying the ".htaccess" file from the documentaion folder to the server.  If that doesn\'t work, contact your sysadmin for help.');
}

3.) Remove the trailing ?> at the end of the file.  Sometimes this will cause a problem.  I have no idea why, but it's worth a try.

4.) Do a syntax check.  In a shell prompt in the oekaki folder, type "php -l install.php".  The flag is a small L, as in "lucky".

Offline

#7 12-04-2009 17:51:20

Parka
Guest

Re: Install.php returns blank page :(

Thanks you very much. Now I can see the installer. That's a good one.  I tried the last suggestion.
I know that kind of debug can be achieved by simply configuring php properly. So, sorry for bothering you, I should have that configured. I have recently changed form ubuntu to fedora and in ubuntu it's default.
Now, let's get to the solution of my problem.
I have never used heredoc strings, but I'm aware they exists, so after taking a look to php doc, I started playing with the  characters until I found that putting a \ before the ? will bypass the error.
Don't really know for sure if it fix it, but it seems to work. I did that around lines 363 & 428. Right after I run it and I started receiving the scripted error messages. The first one was telling me to switch on short_open_tag, so I tried the .htaccess solution and I failed so I did a proper change in /etc/php.ini and restarted the server (this may won't be possible in production). Finally, the script remembered me to chmod everything, and so I did: 777 since I'm on a development stage (kids don't do this at your servers, srsly).
Now I have no excuse to continue the nested messages feature,so luckly, you'll be seeing it in some time. Note that is fully (I think) compatible with running boards and installer *may* be provided.

#8 12-05-2009 04:11:25

Waccoon
Administrator

Re: Install.php returns blank page :(

For years PHP syntax has been a pain.  Some things will just cause failures for no apparent reason, and different versions of PHP will have different problems.

lines 363 & 428

Oh, good!  I wasn't aware of this one.  I'm trying to fix as many "gotchas" as I can with Wacintaki 1.5.

Wacintaki 1.5 is currently being tested, and it fixes a number of these issues, including HEREDOC closures, short tags, special symbols, strict parsing, and other old things that should have been fixed a long time ago.  I've also found out that one of the coding standards used by the Drupal team is to omit the closing PHP tag (?>) from the end of documents to make sure there are no empty spaces.  I'm considering that, although omitting it sounds like that might cause a problem in the future, rather than prevent one.  With PHP, you can never be sure.

Another thing I'm fixing is the hack I used for my code editor.  Following HEREDOC lines, I use //?> to make my syntax highlighter happy.  It doesn't seem to cause a problem with PHP, but I'll be getting rid of those just to be sure.  I ran into an issue a short time ago where just using the copyright symbol in a PHP comment causes the whole script to crash.  Go figure.

/etc/php.ini

Yeah, your server is set up to use PHP as CGI (and not an Apache module), so everything will be configured in the php.ini file.  If you try to change PHP behavior in an .htaccess file, it won't work.  That's important, because on a production server, you'll most likely have to use .htaccess to modify PHP behavior.

Anyway, thanks for the feedback!

Offline

#9 12-05-2009 08:50:15

Parka
Guest

Re: Install.php returns blank page :(

No problem. I'm glad to help and help myself as well. smile
By the way, what do I have to do for making the nested responses feature to be available in Wacintaki 1.5 as an option? (besides actually finishing it)
An finally, I would like to say that it probably never stop amusing me this kind of things internet has. While I'm answering you, you are probably sleeping and vice-versa.
What is going into your mind right now? Are you incubating the next Wacintaki fix or feature? the next project perhaps? a way to conquer the world? just having freudian dreams , nightmares or sleeping without any of them?
Ho knows?


God, when did I became this sensible? hmm

#10 12-05-2009 09:57:44

Parka
Guest

Re: Install.php returns blank page :(

My... I have tried to install it. And as I feared, the modified heredoc, screw the installation.  I have no Idea what to do.
That php is printed as plain text instead of being executed. Back to the beginning. why I cant put a php open tag in heredoc? damn.

#11 12-05-2009 10:04:33

Parka
Guest

Re: Install.php returns blank page :(

Ok. I should be less impulsive. Now Instead of adding the "\" I have just deleted de "php" and seems to install  ok. Hope this is isn't the only fix, since I remember that the right way to open a php tag was "<?php" and not just  "<?"

#12 12-06-2009 07:05:54

Waccoon
Administrator

Re: Install.php returns blank page :(

I might have to experiment a bit, because I just found out that adding a backslash corrupts the output.  Why a backslash isn't interpreted as an escape code with the PHP tag is beyond me.  I'll probably have to change it from HEREDOC style to a regular string style.

Maybe I shouldn't be surprised.  Inline JavaScript has similar, strange behavior.

By the way, what do I have to do for making the nested responses feature to be available in Wacintaki 1.5 as an option?

I thought about this at one time, but I figured the board is meant to be more like a gallery than a social web site or a forum, so nested comments wasn't a high priority.  Now that I've been spending so much time on blogs and places like FurAffinity, I'm changing my mind.  Adding nested comments as a standard feature seems like a good idea, even if it does make the code messier than it already is.  LOL

All you really have to do is send me the files you changed, and I can hunt down the modifications.  I may need to further change them, but you'll still get credit for your contribution!

What is going into your mind right now? Are you incubating the next Wacintaki fix or feature?

Oh, I have more things in store for Wacintaki.

I was going to write a whole new board from scratch, but now I'm not too keen on the idea.  I'm not big on the "Web 2.0" style of writing software that requires AJAX and JavaScript, so most of the time when people ask for those fancy new features, I'm not too keen on actually implementing them.  If web browsers didn't choke on JavaScript, and free web hosts were more compatible with the Java applets, I'd have no trouble rewriting the board from scratch.  However, if a banner ad can cause JavaScript to crash, that essentially makes it impossible to run the oekaki unless you're on a dedicated host, and that's not realistic for most people because it's just too expensive.  The fact that the applets can cause JavaScript exceptions doesn't help.

We'll see what happens when HTML 5 becomes more popular.  Maybe by then, web browser developers will get their act together and JavaScript support won't suck so badly.

Offline

#13 12-06-2009 08:28:37

Parka
Guest

Re: Install.php returns blank page :(

Waccoon wrote:

Now that I've been spending so much time on blogs and places like FurAffinity, I'm changing my mind.

On my side I blame Deviant Art. XD

Waccoon wrote:

Adding nested comments as a standard feature seems like a good idea, even if it does make the code messier than it already is.

Ok, I'm gonna try better.

Waccoon wrote:

We'll see what happens when HTML 5 becomes more popular.  Maybe by then, web browser developers will get their act together and JavaScript support won't suck so badly.

Ha, ha, ha, I'm dieing for learn javascript. And I may make a flash drawing applet someday. Yes, soooo mainstream (there arent many choices anyway). =P

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB