Ciao a tutti!
Ritorno con un argomento che mi sta stressando non poco da qualche settimana...
Dal punto di vista della navigazione Anonima tutto OK ma, operando da amministratore, mi capitano delle "rare" Page not Found in maniera totalmente casuale soprattutto dopo aver:
Salvato una View
Lanciato update.php
Lanciato la pulizia della "cache"
Raramente in altre situazioni... (da notare che quando si verifica il fenomeno, l'URL (dopo l'operazione) è corretto... però, nonostante questo, restituisce Page not Found... poi, rifacendo l'operazione di salvataggio, la pagina viene salvata regolarmente... in rarissimi casi devo rifare l'operazione 2/3 volte...)
Premettendo che stò usando il modulo "Drupal Tweaks" con memory limits settato a 512M (tenendolo più basso mi venivano restituite schermate "bianche" con messaggi di "memory esausted" etc...) e, avendo tale memory limits su dreamhost settato a 90M credo che il problema stia qui però, da ricerche effettuate, ho scoperto che potrebbe entrare in gioco un altro/i fattore e cioè il settaggio di alcuni parametri nel file ".htaccess" di Drupal - il mio è questo (non l'ho mai toccato e la versione di drupal è la 6.14):
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
# There is no end quote below, for compatibility with Apache 1.3.
ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
</IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
# $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $
...e, in particolare (sempre dai risultati delle mie ricerche...), ho il dubbio che il problema stia in qualche "RewriteBase" che sia da DE-COMMENTARE in questa zona di codice:
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
ho anche pensato che il problema potrebbe risiedere nei settaggi di DreamHost:
Leave it alone: Both http://www.miosito.com/ and http://miosito.com/ will work.
(X) Add WWW: Make http://miosito.com/ redirect to http://www.miosito.com/
Remove WWW: Make http://www.miosito.com/ redirect to http://miosito.com/
(X)= Settaggio attuale
Boh... non saprei dare una spiegazione...
Qualche esperto avrebbe idea di cosa potrebbe causare il problema?
Forse potrebbe essere causato dal fatto che il memory limits settato a 512M in realtà non è sufficente nel senso che necessita di un'impostazione più alta ma sul "Server" effettiva???
...oppure, ancora, il fatto che su Dreamhost sia impostato "PHP5 FastCGI (Raccomended)" anzichè "PHP5 FastCGI" (ma non penso...)
Sto esaminando un pò tutto, se qualcuno mi darebbe una mano a risolvere gliene sarei grato sicuramente...
P.S. Faccio notare che si tratta di un'installazione Drupal con installazione "pulita" originale in "www.miosito.com/ita" che poi ho trasferito in "www.miosito.com" (Root Principale) e con il modulo Pathologic configurato aggiungendo l'url da considerare locale > http://www.miosito.com/ita (senza uno "/" finale...)
Un ultima cosa che vale la pena di sottolineare:
Ho notato (quando esce Page not Found), una cosa anomala nella barra di caricamento/avanzamento pagina quella in basso a destra in Firefox:
Quando i salvataggi vanno a buon fine, la barra avanza pian piano, a volte si ferma a metà (si nota chiaramente che Drupal sta lavorando /editando bene...), per poi completare il caricamento visualizzando il corretto salvataggio (una View, update.php, pulizia Cache...) mentre, quando esce Page not Found, la barra, per qualche secondo non si vede avanzare, e poi (dopo alcuni secondi), la si vede partire senza fermarsi (fino alla fine...) mostrando la Page not Found, appunto... come se non "AGGANCIASSE" qualcosa nel "microlinguaggio" di Drupal ...come se partisse a "vuoto" senza intercettare nessun parametro da salvare/editare... che cos astrana...
Scusate tutta questa "manfrina" ma ho dovuto spiegare nei minimi dettagli al fine di far capire il più possibile il problema...
P.S. Forse il comportamento imprevedibile potrebbe essere imputabile a questo messaggio che ho (da sempre) in PHPMyAdmin su DreamHost? boh... speriamo bene...
In questo caso che dovrei fare???
Grazie in anticipo...
Ciao
Kipper