Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: Madeleine on 26 February 2016, 13:19:56

Title: Link between Author & Book not working with SEF enabled
Post by: Madeleine on 26 February 2016, 13:19:56
Hi,
Everything is working fine except that when I enable Joomla's standard SEF settings from the Global Configuration panel and then go to an author and try to click on a book I get a 500 error (if I just have the first setting ticked) and a 404 (if I have both settings ticked), even though I can visit the book normally via the book catalogue.  I'm using Jooomla 3.4.8 and 3.1.0 for the library.  I've left the development site up and enabled SEF settings so that you can see the problem at http://mcmullinmarketing.com/authorway/.  Can you help please?
Title: Re: Link between Author & Book not working with SEF enabled
Post by: federica on 26 February 2016, 14:44:47
Madeleine, try to install the latest version (Abook 3.1.1) then tell me if the error occurs yet.
Title: Re: Link between Author & Book not working with SEF enabled
Post by: Madeleine on 26 February 2016, 15:55:54
Hi Federica
I've tried that and am still having the same problem as before: a 404 if both are on and a 500 if only one.  I can supply log in details if you want to take a look?
Title: Re: Link between Author & Book not working with SEF enabled
Post by: federica on 26 February 2016, 16:48:13
Are there the category menu and authors menu?
If not, create them and retry.
Title: Re: Link between Author & Book not working with SEF enabled
Post by: Madeleine on 26 February 2016, 17:20:06
Yes there are menu items for both category and authors.  I have 3 different categories on the top menu but that shouldn't make a difference should it?
Title: Re: Link between Author & Book not working with SEF enabled
Post by: federica on 26 February 2016, 17:35:40
Can you tell me your url website?
Title: Re: Link between Author & Book not working with SEF enabled
Post by: Madeleine on 26 February 2016, 18:14:58
It is  http://mcmullinmarketing.com/authorway/
Many thanks for your help
Title: Re: Link between Author & Book not working with SEF enabled
Post by: federica on 27 February 2016, 17:09:56
You found a bug.
change administrator/components/com_abook/models/fields/categoryparent.php line 101
from
$options[$i]->value = 1;
to
$options[$i]->value = 0;

then save again all category and categories menu items previously created.
Title: Re: Link between Author & Book not working with SEF enabled
Post by: Madeleine on 01 March 2016, 17:01:24
Wonderful, it's working now - thanks  :)