Back to top

Autore Topic: Error 500  (Letto 4058 volte)

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Error 500
« il: 09 Set 2011, 17:58:36 »
Ciao a tutti, premetto che sono alle primissime armi. Sto realizzando per la prima volta un sito con Joomla e il problema che non riesco proprio a capire è rappresentato dal messaggio di errore 500 che si verifica quando pubblico un Single Article.
L'impostazione del sito per ora è molto semplice: main menu con 3 items. Tutti gli items sono del tipo "Single Article" e in ogni caso appare l'errore 500. Se provo a cambiare il type degli items in "Featured Article" l'articolo viene visualizzato senza errori...però non è quello che mi serve. 
Che cosa causa l'errore e dove devo cercare la soluzione?

Grazie in anticipo per ogni possibile aiuto!
« Ultima modifica: 09 Set 2011, 18:04:09 da jove »

mau_develop

  • Visitatore
Re:Error 500
« Risposta #1 il: 09 Set 2011, 18:47:02 »
dove devo cercare la soluzione?
-------------------------------------------
provato a leggere qualche guida (pulsante "guide" in alto) ?

M.

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #2 il: 09 Set 2011, 18:57:51 »
Sì sto cercando un po' da tutte le parti...credo, ma potrei assolutamente sbagliarmi, che il problema sia in qualche modo dovuto al file .htaccess

mau_develop

  • Visitatore
Re:Error 500
« Risposta #3 il: 09 Set 2011, 21:20:53 »
semplice, disabilitalo ;)

M.

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #4 il: 10 Set 2011, 09:28:39 »
In che senso disabilitato?

Questo è il mio file .htaccess

# @license              GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

#RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
~

Devo commentare qualche cosa? Non riesco proprio a venirne a una...

grazie per l'aiuto!

mau_develop

  • Visitatore
Re:Error 500
« Risposta #5 il: 10 Set 2011, 09:33:48 »
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

..provato?

M.

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #6 il: 10 Set 2011, 09:41:45 »
Sì provato...ho commentato le due righe in modo da avere:

#Options +FollowSymLinks

RewriteBase /


ma l'errore appare comunque.

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #7 il: 10 Set 2011, 09:43:05 »
Quindi è possibile che sia questo file .htaccess il problema? anche se lavoro ancora in locale?

grazie mille

mau_develop

  • Visitatore
Re:Error 500
« Risposta #8 il: 10 Set 2011, 09:58:24 »
allora, ricominciamo daccapo...

che operazioni hai fatto oltre togliere .txt all' htaccess e mettergli il punto davanti?

Hai seguito qualche guida di quelle nel wiki?

Il tuo host ha il mod rewrite funzionante? (è un modulo di apache)

metti un link al sito

M.

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #9 il: 10 Set 2011, 10:20:43 »
Scusa la mia ignoranza in materia, provo a rispiegare da capo il problema.
Lavoro ancora completamente dal backend, il sito è solo sul localhost (non so se siano i termini più corretti per dirti che non ho un indirizzo del tipo www.miosito.it), ed è ancora ben lontano dall'essere finito ed utilizzabile. Il problema che ho è l'errore 500 che appare quando pubblico un articolo del tipo Single Article.
Ho guardato guide nel wiki e altri vecchi post che indicavano come responsabile dell'errore 500 il file .htaccess e consigliavano di commentare come ti ho scritto sopra. Quindi ho rinominato il file da htaccess.txt a .htaccess e ho commentato le due righe. Utilizzo MAMP per il web server Apache.

Chiedo umilmente scusa se sto facendo perdere tempo...

mau_develop

  • Visitatore
Re:Error 500
« Risposta #10 il: 10 Set 2011, 10:52:57 »
in locale se non sai mettere le mani sul server lascia perdere l'htaccess

M.

inoltre
Utilizzo MAMP per il web server Apache.
--------------------------------------------------------
..non vorrei dire scemenze ma su mac le cose si complicano perchè mi pare installi di default un server apache

« Ultima modifica: 10 Set 2011, 10:54:49 da mau_develop »

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #11 il: 10 Set 2011, 10:55:31 »
Va bene rimetto il file .htaccess come l'ho trovato, cioe htaccess.txt

"su mac le cose si complicano perchè mi pare installi di default un server apache"  provo a controllare anche se mi sono oscure le conseguenze di questa cosa...

GRAZIE!

« Ultima modifica: 10 Set 2011, 11:02:14 da jove »

Offline jeckodevelopment

  • Administrator
  • Instancabile
  • *****
  • Post: 5695
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #12 il: 10 Set 2011, 10:57:22 »
io avrei lasciato il simbolo # davanti a RewriteBase
Codice: [Seleziona]
#RewriteBase /e avrei commentato solo #Options FollowSymLinks
ma in locale avere gli url ottimizzati non è che sia necessario :)

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #13 il: 10 Set 2011, 11:04:20 »
Ho provato anche questo, ma nulla...sì pian pian sto capendo che l'.htaccess e il locale non sono proprio due cose che c'entrano l'una con l'altra...grazie per la pazienza e l'aiuto

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #14 il: 10 Set 2011, 11:20:07 »
Sì Mau_develop è vero mac è già dotato di Apache ma deve essere attivato e configurato cosa che non ho mai fatto e quindi non credo che possa entrare in conflitto con MAMP, ma anche in questo caso potrei bellamente sbagliarmi.


Altri possibili suggerimenti per risolvere il problema? grazie ancora una volta
« Ultima modifica: 10 Set 2011, 13:18:16 da jove »

Offline jove

  • Nuovo arrivato
  • *
  • Post: 35
  • Sesso: Maschio
    • Mostra profilo
Re:Error 500
« Risposta #15 il: 10 Set 2011, 16:25:39 »
per qualche motivo l'errore 500 è stato sostituito dall'errore 404...non so più dove sbattere la testa!

 



Web Design Bolzano Kreatif