Page 1 of 1

PHP timeout with problems

Posted: Sun Oct 14, 2007 11:58 pm
by Zirbelholz
I didn't know about PHP timeout. I was creating an html nugget as impressum (stupid idea - I need a static page) and it timed out.
http://transblawg.eu

One of my two sidebars had disappeared, containing my admin login link. When I reentered admin via serendipity_admin.php, I thought I would remove a plugin I had last entered to show tags (I have none yet). Under 'configure plugins' there was no option to delete. Nor was there a pattern of dots to drag and drop plugins. I turned off Javascript in Firefox and then arrows for moving the plugins appeared. Now I can move the plugins, but there's no 'Save' button there any longer.

Bulletproof is still configured for three columns, BSSCF, but only one sidebar shows.

Have I destroyed something?

TIA
Margaret

Posted: Mon Oct 15, 2007 12:55 am
by Zirbelholz
I managed to sort this out. It was actually an amazon.de plugin that didn't work. I went to my site via ftp and deleted it. Now the sidebar is back with the Impressum in (which I will remove) and also a message from s9y saying it failed to install the amazon plugin.

Margaret

Posted: Mon Oct 15, 2007 11:03 am
by garvinhicking
Hi!

In your case it seems as if your webserver is configured to hide any PHP errors. SO you didn't see anything, because you would usually have seen a fatal PHP error that was hidden frmo your view, making it look like simply something was missing.

You might want to try to use a .htaccess with a command like:

Code: Select all

php_value display_errors On
to see those errors in the future?

Regards,
Garvin

Posted: Mon Oct 15, 2007 11:16 am
by Zirbelholz
Thanks. I will try to work out what that is. Where would I find that .htaccess so I can change it?

I have just got the Impressum to work. I had to add a forward slash after the question mark in

/index.php?pages/impressum html

The question mark and lack of slash in the Static Plugin page where I entered the details confused me, and so did some forum messages - I think it would be easier if the slash was there. But I am drifting.

Regards
Margaret

Posted: Mon Oct 15, 2007 11:20 am
by garvinhicking
Hi!

The .htaccess should be in the root of your s9y installation, usually a file should be existing there. If there is none, you can simply create it.
/index.php?pages/impressum html

The question mark and lack of slash in the Static Plugin page where I entered the details confused me, and so did some forum messages - I think it would be easier if the slash was there. But I am drifting.
The slash should be there by default! Did you maybe accidentaly remove it in first time? If you create a new page, it should use your usual setting in the s9y configuration you entered for "Relative HTTP path". This setting MUST contain a slash, as instructed in the installation. Make sure you have entered "/" there!

Regards,
Garvin

Posted: Mon Oct 15, 2007 11:25 am
by Zirbelholz
Thanks, I see the .htaccess now.

Sorry, I thought the slash was missing in the default, but it's there. But it was missing in at least one of the forum messages I was looking at to find out what to do (I couldn't find an explanation of the static page creation anywhere, but I suppose these are all details a lot of people would already realize).

Margaret

Posted: Mon Oct 15, 2007 11:28 am
by Zirbelholz
This is all the .htaccess.php says:

# BEGIN s9y
DirectoryIndex /index.php

<Files *.tpl.php>
deny from all
</Files>

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y

Do I just add that line to it somewhere?

Margaret

Posted: Mon Oct 15, 2007 11:29 am
by garvinhicking
Hi!

Yes, you can add your "php_value ..." line anywhere at the top or bottom of the .htaccess file. It would be best if you put it ABOVE or BELOW the '#begin/end s9y' parts.

Regards,
Garvin

Posted: Mon Oct 15, 2007 11:33 am
by Zirbelholz
Thanks.

Margaret

Posted: Mon Oct 15, 2007 11:37 am
by Zirbelholz
No, I'm getting an error page from domainfactory:

Sehr geehrter Besucher,

leider ist ein Problem aufgetreten. Die angeforderte Seite hat einen Script-Fehler verursacht.

Haben Sie sich vielleicht vertippt oder eine alte URL aufgerufen? Wenn nicht, informieren Sie bitte den Webmaster dieser Homepage per Email. Um zu der vorherigen Seite zurückzukehren, verwenden Sie bitte einfach die "Zurück" - Taste Ihres Browsers.

I'm going to remove that again. I have too many other things to tweak. I think there is a plugin that helps with timeouts by saving, I read somewhere yesterday.

Maybe I haven't even got this problem, but the error happened in a timeout so it wasn't reported to me. Because when I got the site going again, there was a S9y fatal error message. There just wasn't one earlier because of the timeout.

Margaret

Posted: Mon Oct 15, 2007 11:40 am
by garvinhicking
Hi!

Okay, then you can't enable the error display like this, I'm sorry.

But it really was the Amazon plugin that did this. It tries to connect to the Amazon site, and if it can't, it might timeout and take the whole page with it. That's a restriction of PHP, so it can't really be handled differently.

Regards,
Garvin

Posted: Mon Oct 15, 2007 11:47 am
by Zirbelholz
Yes, and I had forgotten about amazon by the time I found the problem. Amazon hasn't worked well for me from the software point of view in the past. It wouldn't recognize my login details, despite the fact that it sends me email sometimes, and that is why there was an error.

Margaret