Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: Hara on 28 May 2014, 15:25:16

Title: [RISOLTO] Errore 500 View non trovato [name, type, prefix]: abook, html, abook
Post by: Hara on 28 May 2014, 15:25:16
Ciao a tutt*,

ho installato Alexandria library su Joomla 3.3 con un hosting con queste caratteristiche:
Apache version    2.2.27
PHP version    5.3.28
MySQL version    5.6.16
Perl version    5.10.1

il problema è che dal backend qualsiasi cosa io faccia, esempio inserire un nuovo libro, mi da il seguente errore:
Errore
Si è verificato un errore.

500 View non trovato [name, type, prefix]: abook, html, abookView

Inserisco anche in allegato l'errore.

Per favore qualcuno mi può aiutare?
Non riesco a capire che cosa è andato storto...

Grazie.

Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 28 May 2014, 15:46:37
Ciao Hara,
sembra che il webserver non riesca ad accedere ai file di abook. Ad esempio potresti controllare che dentro la cartella administrator/components/com_abook/views/book ci siano i file, ma soprattutto controlla che i permesi siano impostati per permettere al webserver di elaborare quei file.
I file di Abook sono in queste due posizioni:
<tuo_sito>/administrator/components/com_abook/
<tuo_sito>/components/com_abook/

Se si sono verificati degli errori durante l'installazione puoi tranquillamente installare di nuovo Abook senza disinstallarlo prima. Prova a reinstallarlo di nuovo e vedi come va.
Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: Hara on 28 May 2014, 16:16:59
Grazie Federica per la risposta.
Ho controllato nelle cartelle che mi hai detto e i file ci sono.
Per i permessi le cartelle sono settate su 755 e i file su 644.

Ho provato anche ad reinstallare, ma niente...

Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 28 May 2014, 16:51:05
Riesci a guardare il file di log di php? Nella barra dell'indirizzo del browser cosa c'è scritto? Dovrebbe esserci una cosa del genere:
http://tuosito.it/administrator/index.php?option=com_abook&view=book&layout=edit
Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: Hara on 29 May 2014, 10:06:50
Ciao federica,
scusa ma dove lo trovo il file log di php? Ho cercato in joomla e nelle cartelle di alexandra ma non l'ho trovato...

Ho fatto una prova inserendo un nuovo libro e l'indirizzo del browser è:
http://sottodominio.miosito.com/administrator/index.php?option=com_abook&task=book.add

Grazie

Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 29 May 2014, 10:27:44
L'URL per la creazione del di un nuovo libro è corretta e dovrebbe essere rigirata in automatico su una cosa del genere:
http://sottodominio.miosito.com/administrator/index.php?option=com_abook&view=book&layout=edit
Forse questo non avviene.
Hai l'htaccess abilitato? Prova a rinominarlo in htaccess.txt

Ma la prima pagina di Abook la vedi? quella che raggiungi cliccando su componenti->Alexandria book library. La pagina delle categorie la vedi?

I log non sono sempre nello stesso posto, dipende dal tuo hosting, dovresti chiedere a chi ti fornisce il servizio.
Altra cosa: è un hosting linux o windows? Che versione di abook stai usando?
Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: Hara on 29 May 2014, 11:12:23
Grazie per la gentilezza  :D

QuoteHai l'htaccess abilitato? Prova a rinominarlo in htaccess.txt
Sì, avevo htaccess abilitato, ho provato a rinominarlo come hai detto e ora se clicco su tutte le voci Nuovo libro, Nuovo autore, nuovo tag ecc.. mi da errore come da Oggetto del topic, se clicco su Categorie si visualizza la pagina categorie

QuoteMa la prima pagina di Abook la vedi? quella che raggiungi cliccando su componenti->Alexandria book library. La pagina delle categorie la vedi?

Sì, la prima pagina la vedo (vedi allegato)
Sì, vedo anche la pagina categorie

QuoteAltra cosa: è un hosting linux o windows?
Linux

QuoteChe versione di abook stai usando?
3.0.0

Ho trovato il log, ci sono 2 errori vedi allegati (errore1.png e errore2.png)

Grazie

Title: Re:Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 29 May 2014, 11:42:07
Quelli che hai trovato sono errori di Apache, quelli di php solitamente sono nello stesso file quindi forse non ce ne sono oppure sono in un altro file e quindi qui non li vediamo.
Gli errori che vedo nella seconda immagine sono relativi ad una cartella "js", quindi dei file di javascript che non riesce a trovare, non so se questo possa essere un problema per Abook. Nell'installazione standard di joomla quella cartella in quel percorso non esiste, potrebbe essere apache che ti ridireziona in un punto sbagliato.

Però se non hai problemi nel creare gli articoli di joomla mi sembra stranoc he sia tutta colpa di quella cartella "js".

Fai una cosa, prova ad accedere direttamente ad un url tipo questo:
http://sottodominio.miosito.com/administrator/index.php?option=com_abook&view=book&layout=edit
sostituisci il nome del server con il tuo.
Funziona? Se sì allora quei file di javascript potrebbero essere la causa del problema, altrimenti bisogna indagare ancora.
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: randlieb on 07 June 2014, 19:45:26
Hello
I am in the U.S. so sorry about the English text in this thread, but I have the exact same problem. I Google translated this thread to see how far you had gotten toward a fix.

I did this:
---------------------
Do one thing, try to directly access a url like this:
http://sottodominio.miosito.com/administrator/index.php?option=com_abook&view=book&layout=edit
Replace the server name with your own.
Does it work? If yes then those files javascript might be the cause of the problem, otherwise you have to investigate more.
----------------------
It worked. That url with my domain name opened up the book layout page in the admin. I also tried the link with 'category' instead of 'book' and also opened up the new category page. When I tried to create and save the category the same error page appeared. Where do I go from here? Thanks.
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 07 June 2014, 20:35:54
Hi randlieb,
many thanks for your feedback.
I apologize for my english, i'm italian and my english is terrible. Fortunately, there is google translator!!!

I think the problem is related to javascript. Try to disable all third-party extension (especially plugins). Go to joomla backend menu->extensions->Extension Manager->Manage then set as disabled all extensions you installed other than Abook.
Try to disable one extension at a time and try to use abook. If you will detect the extension tell me its name please.

Which joomla version are you using?
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: randlieb on 07 June 2014, 22:41:54
Thanks for the quick reply!

I went through all 3rd party extension by extension. Finally when I disabled all the k2 plugins the error was gone and was able to create new book, category etc. Went back to the k2 plugins and enabled them one by one until it looks like the System k2 plugin is the culprit. I have all 3rd party extensions re-enabled except the System k2 plugin and abook is working fine. Hope that helps. Tell me what I need to do to get these working together. Thanks.

I am using Joomla 3.3
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 08 June 2014, 12:41:16
Great to hear you found a solution!
Now I will try to install K2 to see where is the problem.

You have been very helpful.



Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 08 June 2014, 17:32:16
Open the file <your site>/administrator/components/com_abook/abook.php
change the line 34 from:
$controller->execute(JRequest::getCmd('task'));
to:
$controller->execute(JFactory::getApplication()->input->get('task'));
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: randlieb on 08 June 2014, 18:26:45
Changed the code and re-enabled System k2. IT WORKED! Thanks!! Looking forward to getting the library set up on my site. I hope to be able to donate some money to your project in the near future.
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 09 June 2014, 10:22:44
I thank you in advance. If you want, you can add a review on JED for Abook (http://extensions.joomla.org/extensions/living/education-a-culture/books-a-libraries/14935)
Now I translate the solution also in Italian.
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: federica on 09 June 2014, 10:26:31
Ciao Hara,
grazie all'aiuto di randlieb sono riuscita a risolvere il problema. Presto faro uscire un aggiornamento di Abook. Per ora, se vuoi risolvere il problema devi fare fare una piccola modifica al codice.
Apri il file <tuo sito>/administrator/components/com_abook/abook.php
cambia la linea numero 34 da:
$controller->execute(JRequest::getCmd('task'));
a:
$controller->execute(JFactory::getApplication()->input->get('task'));

Fammi sapere se dopo la modifica il problema sparisce.
Title: Re: Errore 500 View non trovato [name, type, prefix]: abook, html, abookView
Post by: Hara on 09 June 2014, 17:09:46
Sì, la modifica ha risolto il problema. :)

Grazie mille a randlieb e a te federica.