PHP 4.4.9

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

PHP 4.4.9

Post by HadleyB »

Ich habe unter www.sk-haustechnik.de und www.sk-haustechnik.de/web/ Probleme mit S9Y. Z. B. funktioniert Spartacus nicht, as Erneuern der Vorschauen geht nicht, immer wieder mal kann ich keine Bilder hochladen. Das endet dann alles in einem:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Kann das an dem "veralteten" PHP liegen?

mfg
gerd Höller
mfg
Hadley
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: PHP 4.4.9

Post by Timbalu »

Möglich.
Aber das ist 1&1. Hast du die 1&1 htaccess in der config eingestellt?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

Re: PHP 4.4.9

Post by HadleyB »

Hab' ich gerade gefunden, das hat so weit funktioniert!

http://board.s9y.org/viewtopic.php?f=10&t=15834

Jetzt meldet er das hier, immer wenn ich mit der Mediendatenbank arbeite:

Code: Select all

Fatal error: Out of memory (allocated 26738688) (tried to allocate 17280 bytes) in /homepages/4/d122833517/htdocs/web/include/functions_images.inc.php on line 1309

Fatal error: Out of memory (allocated 26738688) (tried to allocate 17280 bytes) in /homepages/4/d122833517/htdocs/web/include/functions_images.inc.php on line 1309
mfg
Hadley
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: PHP 4.4.9

Post by Timbalu »

Nimm mal diese beiden in die htaccess auf

Code: Select all

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
und erstelle eine php.ini oder php5.ini im serendipty root

Code: Select all

[PHP]

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

;;;;max_execution_time = 30     ; Maximum execution time of each script, in seconds
;;;;max_input_time = 60	; Maximum amount of time each script may spend parsing request data
memory_limit = 12M      ; Maximum amount of memory a script may consume (8MB)

; Maximum size of POST data that PHP will accept.
post_max_size = 10M

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M
Dann ev. memory_limit anpassen und langsam hochschrauben
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

Re: PHP 4.4.9

Post by HadleyB »

Danke, aber der Fehler geht nicht weg. Aber: Alles funktioniert ohne Probleme, auch der Bilder-Upload. Soll ich den Fehler einfach ignorieren?
mfg
Hadley
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: PHP 4.4.9

Post by Timbalu »

Nö, warum?
Vielleicht erlaubt 1&1 keine eigene web php.ini... oder du hast das memory limit nicht hoch genug gesetzt...
Möglich wäre vielleicht auch ein

Code: Select all

ini_set('memory_limit', '-1'); // extending memory_limit (-1 = unlimited) may be prevented by suhosin extension. 
in der index.php, irgendwo am Anfang...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: PHP 4.4.9

Post by bernd_d »

Um die Vorschau-Bilder zu erneuern, könntest du versuchen, imagemagick statt GDLib zu verwenden. Ich hatte bei All-Inkl das gleiche Problem mit zu wenig Speicher, siehe hier in meinem Blog.

Im Zweifelsfall mal bei deinem Hoster nachfragen ob/wie ImageMagick eingebunden werden muss. Wenn der das nicht erlaubt: Anbieter wechseln.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: PHP 4.4.9

Post by Timbalu »

Es mag auch helfen nicht zuviele Plugins zu verwenden...! :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

Re: PHP 4.4.9

Post by HadleyB »

Der Kunde will leider nicht wechseln, ich wäre da längst weg. Es sind gar nicht so viele PlugIns installiert. Ich kümmere mich morgen weiter um das Problem, ich habe jetzt Feierabend :-)
mfg
Hadley
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Re: PHP 4.4.9

Post by reinhardl »

versuche doch mal
php_value memory_limit "16M"
in der .htaccess Datei
oder noch höheren Wert ...
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

Re: PHP 4.4.9

Post by HadleyB »

Wenn ich das mache, dann geht gar nix mehr, dann taucht der erste Fehler (500 Internal Server Error) sofort auf.

Inzwischen habe ich Zugriff erhalten und konnte die PHP-Version von 4 auf 5 ändern. Das Problem blieb bestehen:

Code: Select all

Fatal error: Out of memory (allocated 26738688) (tried to allocate 17280 bytes) in /homepages/4/d122833517/htdocs/web/include/functions_images.inc.php on line 1309
mfg
Hadley
HadleyB
Regular
Posts: 853
Joined: Sat Feb 11, 2006 11:47 pm

Re: PHP 4.4.9

Post by HadleyB »

Manchmal geschehen Dinge:

Ich habe probehalber einmal IMAGEMAGICK eingeschaltet und bekam eine Fehlermeldung. Dann habe ich das wieder ausgemacht, die automatische SYNC ausgeschaltet und EXIF-Daten sowie die automatische Größenanpassung eingeschaltet.

Jetzt gehts! Keine Fehlermeldung mehr beim Hochladen von Bildern.

Davor hatte ich allerdings eine Datei CENTER in der Datenbank, die sich nach jedem Löschen ständig wieder eingetragen hatte. Die ist jetzt, nachdem ich alle doppelten Dateien mit gleichem Namen(!) gelöscht habe (das dürfte doch eigentlich gar nicht passieren), auch weg.

Frohes Schaffen! Warumd das jetzt geht? Woher soll ich das wissen? :-)
mfg
Hadley
Post Reply