Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: tulinux on 21 July 2014, 10:45:36

Title: 500 Layout edit_associations non trovato
Post by: tulinux on 21 July 2014, 10:45:36
Ciao Federica,
finalmente sto inserendo volumi e bibliografia in grande quantità nella versione 3.0 che avevo importato dalla 2.5, come sai...
Mi sono imbattuto in questo errore che mi impedisce sia di richiamare le vecchie CATEGORIE per poter completare la descrizione, sia l'inserimento di nuove...

Si è verificato un errore.
500 Layout edit_associations non trovato

Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 25 August 2014, 09:59:52
Prova ad andare nelle categorie e cliccare sul bottone "Rigenera".
Mi sembra uno strano errore, non capisco cosa c'entri "edit_associations", non l'ho neanche usato.
Mi servirebbe sapere l'url della pagina di errore.
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 17:42:42
Ecco la pagina, ho fatto RIGENERA ma purtroppo niente da fare, non riesco a modificare le categorie e a creare delle nuove...

http://www.ergocert.net/administrator/index.php?option=com_abook&view=category&layout=edit&id=9
http://www.ergocert.net/administrator/index.php?option=com_abook&view=categories&extension=com_abook

Grazie.
Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 25 August 2014, 18:43:22
Che strano,
non ho ricevuto richieste di supporto per questo errore, a parte la tua.
I permessi delle cartelle sono a posto? Eventualente prova a reimpostarli

Sospetto che manchi un file o che non riesca a leggerlo, prova a scaricare di nuovo Abook e reainstallarlo senza disinstallare.

Eventualmente potresti provare a fare un'installazione pulita (scarica di nuovo il componente dal sito) e importare tutto quello che hai nell'attuale installazione su questa nuova (magari esportando in sql così sposti tutto in un botta sola). Solo per fare un test. Perchè non capisco come mai tu non riesca modificare le categorie.
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 19:23:45
OK, provo prima con le cartelle, che permessi dovrebbero avere: 755 ?
Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 19:30:48
Ho reinstallato il componente ma ancora niente da fare... :( :(
Io ora proverei con l'ultima possibilità, spero di non dovere ridigitare tutto il lavoro già fatto... :P

Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 25 August 2014, 19:58:19
Ma no dai... se esporti ed importi in sql non dovrai ridigitare alcunchè.
Metti i permessi più permissivi che puoi.
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 20:00:14
Quote from: federica on 25 August 2014, 19:58:19
Ma no dai... se esporti ed importi in sql non dovrai ridigitare alcunchè.
Metti i permessi più permissivi che puoi.

Ho eseguto un'installazione "pulita" sul mio dominio di prova e tutto sembra ok, provo ora a disinstallare e rifare tutto su ERGOCERT.net e speriamo tutto vada bene...  8)
Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 20:00:40
Ho eseguto un'installazione "pulita" sul mio dominio di prova e tutto sembra ok, provo ora a disinstallare e rifare tutto su ERGOCERT.net e speriamo tutto vada bene...  8)
Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 25 August 2014, 20:16:01
 :( :( Fatto... reinstallato il componente dopo averlo disinstallato ma niente da fare... appena apro una categoria mi da lo stesso errore...
Che posso fare ? ti creo un utente e dai un'occhiata tu F. ?

Carlo
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 26 August 2014, 10:25:43
Se sull'installazione pulita funziona tutto vuol dire che Abook è a posto. Il problema sarà un altro.
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 26 August 2014, 14:29:53
 :'( Vabbè... Non ho idea di cosa possa essere, l'unica differenza sta nel fatto che ho importato i dati da J2.5...
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 26 August 2014, 15:39:45
No, non è così, le due installazioni non sono uguali, nell'installazione di prova hai installato tante altre estensioni, non poi sapere se ci sono delle incompatibilità.

Hai provato ad importare tutti i libri nell'installazione di prova?
Title: Re: 500 Layout edit_associations non trovato
Post by: dpmimmo on 29 October 2014, 00:24:49
Quote from: federica on 25 August 2014, 19:58:19
Ciao Federica,
ho riscontrato lo stesso problema anche io nella gestione delle categorie con errore 500 Layout edit_associations not found. Lo stesso problema in prima istanza non è accaduto ma ora su più di un sito in joomla 3.3.6 e versioni precedenti fino alla 3.2 si comporta alla stessa maniera.
non è possibile creare, modificare o cancellare una categoria. non esiste neppure un comando svuota cestino.
Su Joomla 2.5 nessun problema. ero tentato di usare joomla 2.5 come bridge per la creazione di categorie e successivamente importarle in joomla 3.3. ma una volta riempito il data base di libri, autori e tag, aggiungere una categoria è un'impresa: infatti non posso importare a ritroso da j3.3 a j2.5 mysql errorr...
Comunque davvero un buon lavoro.
Mimmo
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 29 October 2014, 21:46:09
errore persistente, forse ho risolto con l'aiuto di un amico sviluppatore... ora provo...
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 29 October 2014, 22:08:09
Ecco quello che ci dice error.log:
[Wed Oct 29 22:02:22 2014] [warn] [client 93.37.255.146] mod_fcgid: stderr: PHP Fatal error:  Call to undefined method JDocumentRaw::isHtml5() in /var/www/vhosts/ergocert.net/httpdocs/libraries/joomla/document/html/renderer/head.php on line 68, referer: http://www.ergocert.net/administrator/index.php?option=com_abook
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 30 October 2014, 09:07:37
Purtroppo dopo un paio d'ore di analisi del file di log non siamo venuti a capo del problema, non mi restano che due possibilità, o ridigito tutto partendo da zero e senza importare il DB dalla versione 2.5 oppure implemento la vecchia versione funzionante e poi periodicamente importo sulla 3.3... sinceramente non riesco a capire...
Grazie comunque.
Carlo :-[
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 30 October 2014, 13:43:01
Mi dispiace che tu non sia riuscito a risolvere, secondo me è qualche altra estensione che da fastidio ad Abook. Adesso non ricordo se lo avevi già fatto, ma prova a disabilitare tutte le estensioni che hai installato.
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 31 October 2014, 16:23:37
Ciao Federica, ma intendi le estensioni di ABook ?
Grazie
CArlo
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 31 October 2014, 16:36:55
Avevo deciso di reinstallare in modo pulito e senza le estensioni Abook e poi rimettermi a inserire da capo i dati... ho provato e a DB vuoto sono andato in inserimento delle categorie... purtroppo nulla da fare sempre lo stesso problema... Mi dispisce tantissimo perchè mi ero affezionato a questo componente...  :'(

error_log:
[Fri Oct 31 16:34:01 2014] [warn] [client 93.37.90.252] mod_fcgid: stderr: PHP Fatal error:  Call to undefined method JDocumentRaw::isHtml5() in /var/www/vhosts/ergocert.net/httpdocs/libraries/joomla/document/html/renderer/head.php on line 128, referer: http://www.ergocert.net/administrator/index.php?option=com_abook

ho anche messo permessi a 777 a tutte le cartelle ed ai files...  Niente.
Title: Re: 500 Layout edit_associations non trovato
Post by: TRUEMAKER on 31 October 2014, 18:41:24
Hi, Federica

I have this problem too.
- Joomla! 3.3.6 (clear) only 1 component added (ABOOK)
- Alexandria Book Library 3.0.0

Admin menu (ADD CATEGORY) return the ERROR
An error has occurred.
{500} Layout edit_associations not found

I try export category from site joomla 2.5 and import in this new. OK.
But i can not edit or create category.

IN LOG
mod_fcgid: stderr: PHP Notice:  Undefined index: id in /***/***/***/libraries/legacy/controller/form.php on line 753

After it i try find some files and view log.
After rename this file error changed.
Please analyse that files for correct php code.
/administrator/components/com_abook/controllers/category.php
/administrator/components/com_abook/views/category/view.html.php

AND i find resolved situation for other components (by the log error string).
PROBLEM
https://github.com/joomla-projects/com_localise/issues/135

SOLVED (in other component with this problem)
Adding id in the form action for first save.
https://github.com/joomla-projects/com_localise/pull/210/files

May be this info help you?

Sorry for my english.

WBR
Igor
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 31 October 2014, 19:19:02
Turbolinux, ho trovato l'errore, l'ho già corretto nella versione di sviluppo, ma non ho mai tempo di fare i test per pubblicare la versione nuova.
Se leggi qui trovi la soluzione: http://forum.voxpopulix.org/errori-(bugs)/problems-while-installation/msg2200/#msg2200
L'errore è diverso ma la soluzione è la stessa.

Igor, read this post: http://forum.voxpopulix.org/errori-(bugs)/problems-while-installation/msg2200/#msg2200
The error is unlike but the solution is the same
Title: Re: 500 Layout edit_associations non trovato
Post by: TRUEMAKER on 31 October 2014, 19:59:11
Hi, Federica

May be this file i must edited in line 59
/administrator/components/com_abook/models/category.php

But i dont understand it because i have small experience in joomla programm.
May be you tell me what i must edit and i try test it in first work day?

----
Try to modify this file
administrator/components/com_abook/abook.php line 34
from:
Code: [Select]
$controller->execute(JRequest::getCmd('task'));
to:
Code: [Select]
$controller->execute(JFactory::getApplication()->input->get('task'));
----

And i tested more. Some trouble.
Search tools in category ok.
BUT in search page all filters empty and 2 millimetrs width each of authors, years and etc.
In category page in component searchform with elements in filters, in different page from menu item searchform bad (without filters).
And in component on category page searchsorm have category filter as empty. Oter filters Authors, years ,... with elements, but category filter is empty.

May be this solved too?

P.S. I planing create (in short term) subdomain as open library with 3000-4000 items.
And i can create uk-UA (UKRAINIAN) translate package for your component.
Is it interest for you?

WBR
Igor
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 01 November 2014, 14:03:51
Ho fatto un'istallazione nuova senza le estensioni di Abook e poi ho corretto la riga 34, niente di nuovo, l'errore resta e le categorie non sono modificabili...
Carlo :'(
Title: Re: 500 Layout edit_associations non trovato
Post by: tulinux on 01 November 2014, 15:43:37
Ho òappena provato ad installare il componente anche su un'altro sito che non è in produzione e che stiamo elaborando.
La situazione è diversa da ERGOCERT.net, il template è diverso e i componenti sono standard di Rockettheme il template è questo: http://demo.rockettheme.com/live/joomla/vermilion/
Purtroppo niente da fare anche dopo la rorrezione del file abook.php:
<?php
/**
* @package Joomla
* @subpackage Abook
* @copyright (C) 2010 Ugolotti Federica
* @license GNU/GPL, see LICENSE.php
* EventList is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License 2
* as published by the Free Software Foundation.

* Abook is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with Abook; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

defined( '_JEXEC' ) or die( 'Restricted access' );
JHtml::_('behavior.tabstate');
if(!defined('DS')){
   define('DS',DIRECTORY_SEPARATOR);
}

if (!JFactory::getUser()->authorise('core.manage', 'com_abook')) {

return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));

}
JLoader::register('AbookHelper', __DIR__ . '/helpers/abook.php');
// Include dependencies
//jimport('joomla.application.component.controller');

$controller = JControllerLegacy::getInstance('Abook');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 04 November 2014, 11:04:27
Potrebbe essere un errore di javascript.
Il link ad una categoria è simile a questo:
http://tuosito.it/administrator/index.php?option=com_abook&task=category.edit&id=2
quando ci clicchi sopra  viene trasformato in questo:
http://tuosito.it/administrator/index.php?option=com_abook&view=category&layout=edit&id=2

In teoria scrivendo il secondo url direttamente nella barra degli indirizzi dovresti poter modificare la categoria con id 2. Prova. Ovviamente sostituisci il numero 2 con l'id della categoria che vuoi modificare.

Igor, try to write the edit category url manually:
http://tuosito.it/administrator/index.php?option=com_abook&view=category&layout=edit&id=2
The id=2 is the number of category id.
Title: Re: 500 Layout edit_associations non trovato
Post by: TRUEMAKER on 04 November 2014, 19:30:58
Hi Federica

I tryed many times different links as
.../administrator/index.php?option=com_abook&task=category.edit&id=5
and
.../administrator/index.php?option=com_abook&view=category&layout=edit&id=2
BUT error as before.
And after error tryed for edit category with lock icon. Icon disabled ok.

In logs about error

[Tue Nov 04 20:11:16 2014] [warn] [client **.**.***.***] mod_fcgid: stderr: PHP Notice:  Undefined variable: parentsStr in /SiteName/administrator/components/com_abook/views/categories/tmpl/default.php on line 111, referer: http://SiteName/administrator/index.php?option=com_abook&view=categories
[Tue Nov 04 20:11:23 2014] [warn] [client **.**.***.***] mod_fcgid: stderr: PHP Notice:  Undefined variable: parentsStr in /SiteName/administrator/components/com_abook/views/categories/tmpl/default.php on line 111, referer: http://SiteName/administrator/index.php?option=com_abook&view=categories
[Tue Nov 04 20:11:37 2014] [error] [client **.**.***.***] File does not exist: /SiteName/includes/js, referer: http://SiteName/administrator/index.php?option=com_abook

WBR

Igor
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 05 November 2014, 09:39:31
Hi Igor,
I split the last post to another one because it is a different topic ( http://forum.voxpopulix.org/errori-%28bugs%29/search-form-problem/ ).

The log is very useful, the path /SiteName/includes/js does not exist, your site cannot include the javascript file. Your error  maybe depend on this problem.
Title: Re: 500 Layout edit_associations non trovato
Post by: xega on 05 November 2014, 20:55:46
Hi, I'm completely new here  :)

I have this same issue and can't quite figure out if you have found a solution or not.  I'm using Joomla 3.3.6 and I have installed the component as well as the module and plugins and under the "Extras" the xmap plugin.  When I try to create a category I get this error.  I would love to be able to get this to work!!

Hope someone can help :)
Title: Re: 500 Layout edit_associations non trovato
Post by: TRUEMAKER on 06 November 2014, 12:06:07
Hi Federica

(1) About js error. That library js FILE only in your component subdir and error in your php.
I fixed it in php. Link in source ok. Error log about js clear.
But error about 500 edit_association in admin as before.
----------------
In your demo admin (Joomla 3.3.1, Abook 3.0.0)
I create new subdomain. Installed OLD clear version of joomla 3.3.1 and abook 3.0.0
All elements and category added by 1-2.
But after upgrade joomla from 3.3.1 to last version 3.3.6 i have new bags in category.
Can not create new category as main without parent.
If i save main category as subcategory i can not resave as not parents option.
Some of url in categories page crashed.
After trying resave parents option of category page category list on site crashed.
This is fist result about test. And more and more errors.

Try to upgrade Joomla to 3.3.6 in your DEMO site and you will see all new errors.
That component not tested to correct work in last version of joomla (3.3.6).

I am sorry, but i need delete all tested for abook subdomains (5!!!) with any version and variants.
It is lost many time without good results.
I will try other way for library.

WBR
Igor
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 07 November 2014, 19:28:06
Igor,
thank you for your tests.
Quote from: TRUEMAKER on 06 November 2014, 12:06:07
(1) About js error. That library js FILE only in your component subdir and error in your php.
I fixed it in php. Link in source ok. Error log about js clear.
Can you tell me how to fixed the js bug?
Quote from: TRUEMAKER on 06 November 2014, 12:06:07
In your demo admin (Joomla 3.3.1, Abook 3.0.0)
Try to upgrade Joomla to 3.3.6 in your DEMO site and you will see all new errors.
Now my DEMO is updated, but I don't see any error. Your site is installed in a subdir?
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 07 November 2014, 19:30:16
Carlo,
il tuo sito è installato in una sottodirectory o nella root?

Which PHP version have you installed?
Title: Re: 500 Layout edit_associations non trovato
Post by: tempus on 11 November 2014, 14:15:55
Hi Federica!

I have the same error on my site.  :( Joomla 3.3.6 and Abook 3.0.0.

If you need to test something I can provide admin password for you.

----------

I think that this problem appears only on multilingual sites.
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 11 November 2014, 19:34:52
Hi tempus,
go to Extension Manager-> manage and disable all extensions for multilanguage, then try to create a new category.
Which multilanguage extension you are using?
Title: Re: 500 Layout edit_associations non trovato
Post by: tempus on 11 November 2014, 22:05:06
Tryed to do some.
I just unpublished multilingual plugin and Abook become to work good. After I published it again, I see known error 500 edit_associations.
As I know associations are very useful functionality for sites with two or more languages. Due to associations you can correspond different menu items as the one menu item (only in many languages).

____________________

I use only the native multilingual plugin of the Joomla 3.3.6
Title: Re: 500 Layout edit_associations non trovato
Post by: dpmimmo on 12 November 2014, 16:53:08
Ciao Federica, Ho provato a disabilitare il plugin nativo di joomla "System - Language Filter" e la creazione e modifica delle categorie è tornata a funzionare. poi ho riabilitato il plugin, visto che il mio sito è in multingua.
Ancora una piccola cosa. il plugin plg_jcomment_com_abook_3_0_0.tgz non si installa in quanto joomla non trova il file di setup xml
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 12 November 2014, 17:44:31
Grazie a tutti per avermi aiutato a capire il problema, nella prossima versione sistemerò definitivamente il problema. Per correggere l'errore è sufficiente creare il file:
administrator/components/com_abook/views/category/tmpl/edit_associations.php
e incollare questo codice al suo interno


defined('_JEXEC') or die;

echo JLayoutHelper::render('joomla.edit.associations', $this);



Many thanks at all for helping me to understand the problem, I will fix the bug in the next version. If you want to fix the bug you have to create the file:
administrator/components/com_abook/views/category/tmpl/edit_associations.php
then copy and paste the following text inside the file


defined('_JEXEC') or die;

echo JLayoutHelper::render('joomla.edit.associations', $this);



Quote from: dpmimmo on 12 November 2014, 16:53:08
Ancora una piccola cosa. il plugin plg_jcomment_com_abook_3_0_0.tgz non si installa in quanto joomla non trova il file di setup xml
Visto che si tratta di un problema diverso, per favore, apri un nuovo topic.
Title: Re: 500 Layout edit_associations non trovato
Post by: TRUEMAKER on 12 November 2014, 18:22:04
Quote from: federica on 07 November 2014, 19:28:06
Igor,
thank you for your tests.
Quote from: TRUEMAKER on 06 November 2014, 12:06:07
(1) About js error. That library js FILE only in your component subdir and error in your php.
I fixed it in php. Link in source ok. Error log about js clear.
Can you tell me how to fixed the js bug?

Hi Federica

\administrator\components\com_abook\assets\javascript\overlib_mini.js

but in your PHP
\administrator\components\com_abook\views\cpanel\view.html.php

$document->addScript(DS.'includes'.DS.'js'.DS.'overlib_mini.js');

This is wrong way. Joomla 3.3.6 have not that JS.

WBR
Igor
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 12 November 2014, 18:57:20
Thank you Igor,
I will check the code, perhaps that file is no longer needed.
Title: Re: 500 Layout edit_associations non trovato
Post by: xega on 12 November 2014, 19:31:39
I have created a new file: edit_associations.php that contains the following code:

<?php
defined
('_JEXEC') or die;

echo 
JLayoutHelper::render('joomla.edit.associations'$this);
?>


Uploaded it into the folder "administrator/components/com_abook/views/categories/tmpl"

And I still get the error "500  Layout edit_associations not found" when I try to create a new category.  What am I missing?
Title: Re: 500 Layout edit_associations non trovato
Post by: federica on 12 November 2014, 20:11:05
xega, you have to upload the file in to this path:
administrator/components/com_abook/views/category/tmpl/edit_associations.php
Title: Re: 500 Layout edit_associations non trovato
Post by: xega on 12 November 2014, 20:17:17
Ah I see.  I uploaded it to the subfolder categories and not category.  Thanks!
Title: Re: 500 Layout edit_associations non trovato
Post by: tempus on 13 November 2014, 05:43:54
Federica, thank you so much for the fix.
Abook flies good!