Ciao a tutti,
ho appena traslocato il mio sito drupal (www.sanseverosport.com) da TopHost ad Aruba (ahime! ..di male in peggio!).
Primo grosso problema: Errore 500!
Risolto modificando l'.htaccess in questa maniera:
ErrorDocument 404 /index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
Il sito SEMBRA andare pero' invece non si riesce più ad accedere ai singoli nodi ottenendo l'errore:
"Pagina non trovata
The requested page could not be found."
Accedo regolarmente al pannello di amministrazione e alle pagine messe a disposizione dai moduli (ex. /Contact).
Qualche idea???
Il tuo applicativo Drupal usa i "Clean URLs" (URL semplificati)? Se si, hai verificato se sul server e' attivo il mod_rewrite?
Io ho un sito su Aruba e il supporto non ce l'ho.
Ciao
Jenner
Ciao ntx,
grazie per la risposta.
I clean_url sono attivi.. e sembrano funzionare!
Il pannello di controllo, ad esempio, lo raggiungo con http://www.sanseverosport.com/admin
Nella pagina iniziale poi, vedo l'elenco dei post ma.. non hanno titolo e non hanno contenuto!
CiauZ,
WaPoNe
Drupalista convinto
WaPoNe
La cache di Drupal l'hai gia' pulita, vero?
Comunque, a parte il fatto che non capisco perche' l'hosting linux che ho io su Aruba non supporta i clean URLs mentre il tuo si (e ho anche il register globals attivato e non riesco a staccarlo), il sito che ho dovuto caricare da loro l'ho dovuto mettere in una subdirectory di / e poi mettere un .htaccess cosi' fatto:
RewriteEngine on
RewriteCond %{REQUEST_URI} "!miasubdir/"
RewriteRule (.*) miasubdir/$1 [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
(si, anche io mi chiedo perche' qui il mod_rewrite funziona - e quindi anche i cleanURLs dovrebbero - mentre su Drupal no... ho rinunciato a farmi ulteriori domande)
Ho dovuto fare tutto sto maccheggio perche' Drupal, in /, funzionava parzialmente (qualcosa si, qualcosa no).
Spero possa esserti utile.
Ciao
Jenner
Grazie ntx per il tuo aiuto.
Stamattina ho fatto vari tentativi e tra questi quello stupido di inserire un semplice nodo.. beh.. non solo riesco ad inserirlo, ma ci accedo (sia come utente autenticato sia come anonimo) e leggo il contenuto.
Quindi il problema sembra essere sui vecchi contenuti.. ma cosa può essere :O
Ho anche aggiornato l'.htaccess e ora, le uniche differenze con quello "originale" di drupal sono l'aver commentato 'Options -Indexes' e 'Options +FollowSymLinks'
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|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
<FilesMatch \.php$>
# Do not allow PHP scripts to be cached unless they explicitly send cache
# headers themselves. Otherwise all scripts would have to overwrite the
# headers set by mod_expires if they want another caching behavior. This may
# fail if an error occurs early in the bootstrap process, and it may cause
# problems if a non-Drupal PHP file is installed in a subdirectory.
ExpiresActive Off
</FilesMatch>
</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>
Non riesco proprio a capire.. sono disperato!
Forse l'importazione del database???
Grazie,
WaPoNe
Drupalista convinto
WaPoNe
Non mi hai detto se hai svuotato la cache di Drupal (Configurazione sito -> Prestazioni -> Elimina i dati della cache). Se non lo hai fatto... fallo! :)
E i collegamenti ai nodi li crei tu o li crea Drupal?
Inoltre: i collegamenti che non vanno sono all'interno di un testo? In questo caso puo' essere molto probabile tu debba fare aggiornamenti manuali (o almeno con delle query SQL su node_revisions e/o eventuali tabelle dei CCK).
Ciao
Jenner
La cache l'avevo svuotata.. e l'ho rifatto! Nulla!
In che senso "i collegamenti ai nodi li crei tu"?
Cmq, se ti affacci su www.sanseverosport.com vedi meglio la sitazuine.. l'unico node funzionante (AAA) l'ho creato dopo la migrazione e funziona.. gli altri no! Non hanno ne titolo ne contenuto :-(
Grazie ancora..
Drupalista convinto
WaPoNe
Ciao, c'è anche un altro file .htaccess il cui contenuto è da commentare perchè drupal funzioni su Aruba, è messo nella cartella sites/default/files.
Però se i nodi che crei adesso li vedi bene, e non vedi solo i vecchi, controllerei la procedura con cui hai fatto la migrazione, se non hai saltato qualche passaggio, se nelle tabelle del db c'è tutto come era prima, e cose così...
ah, sul mio .htaccess su aruba avevo commentato anche questo:
# Set the default handler.
# DirectoryIndex index.php
Grazie biggia,
sono a conoscenza dell'.htaccess della cartella /files e l'ho già messo..
Anche il commento di DirectoryIndex.. fatto ma senza risultati :-(
Grazie comunque!
Drupalista convinto
WaPoNe
Ciao e scusate se non ho aggiornato la situazione prima..
sono riuscito a risolvere ripristinando un vecchio backup del database; il problema infatti derivava da quello.. nello specifico, dal carattere " ' " all'interno dei contunuti di node_revision.
Ora, più o meno, ho ripristinato tutto però mi ritrovo troppi nodi "tagliati" nel senso che, appunto, sul file di backup .sql sembra tutto ok ma nel database invece, mi trovo importato il testo spezzato nel momento in cui c'è un carattere " ' ".
Grazie
Drupalista convinto
WaPoNe