Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: zeeva on 14 April 2015, 12:19:08

Title: Some problems
Post by: zeeva on 14 April 2015, 12:19:08
Hello, first of all thank you for this awesome component, it's been really useful for me. I have some problems I don't know how to fix, and I hope you can help me.

When I try to rate a book I get a PHP error. It says "0 Controlador de clase inválido: AbookControllerBook". If I try to lend a book, I get the same error. Also, the calendar icons in the lend form are not displaying the calendar, I don't know what's wrong :(

I'm using Joomla 3.3.6. I tried it in a quickstart and in my basic joomla for testing, but I get the same error everytime.

Thank you very much, you're amazing!
Title: Re: Some problems
Post by: federica on 14 April 2015, 12:37:41
Hi zeeva,
you have to update both joomla and abook to the latest version.
Title: Re: Some problems
Post by: zeeva on 15 April 2015, 08:51:24
Thank you federica. I tried to update my joomla but it says that it has the latest version (3.3.6). Does it mean I have to update to 3.4?
Title: Re: Some problems
Post by: federica on 15 April 2015, 09:25:29
Joomla 3.4.1 is the latest version but before to update to 3.4.1 I suggest you to verify the technical requirements
Title: Re: Some problems
Post by: zeeva on 15 April 2015, 09:43:57
I've installed a 3.4 joomla to try the component. I added a book and when I click on it I can see it, but this error appeared on top:

Notice: Undefined property: AbookViewBook::$path in C:\xampp\htdocs\joomla3.4\components\com_abook\views\book\tmpl\default.php on line 37

When I try to rate it, I get the same error "0 - Controlador de clase inválido: AbookControllerBook" :(
Title: Re: Some problems
Post by: zeeva on 15 April 2015, 09:52:32
Sorry for posting again, I can't edit my answer.

Things I installed now:

Joomla version: 3.4.1
Component: com_abook 3.1.0
Module: mod_allinone 3.1.0
Plugin: plg_search_abook 3.1.0
Title: Re: Some problems
Post by: federica on 15 April 2015, 10:01:49
Ok zeeva, now you have to disable abook breadcrumb from abook configuration
Title: Re: Some problems
Post by: zeeva on 15 April 2015, 10:11:07
I disabled abook breadcrumbs, I restarted xampp and chrome but I still get the same error "0 - Controlador de clase inválido: AbookControllerBook" when I try to rate a book or make a lend request.

At least the other problems seems to be gone. Now I don't see the "Notice: Undefined property..." and the calendar icons works fine!

Thank you very much, I hope you can still help me with that error.
Title: Re: Some problems
Post by: federica on 15 April 2015, 10:32:08
I think it is a path issue.
Try to open components\com_abook\views\book\tmpl\default.php then change line 22
from:
JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers');
to:
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
Title: Re: Some problems
Post by: zeeva on 15 April 2015, 11:49:31
I've changed that, but I still get the same error :(

I'm going to upload a picture of the error when I rate a book:
Title: Re: Some problems
Post by: federica on 15 April 2015, 18:10:07
If you are using linux
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
If you are using windows
JHtml::addIncludePath(JPATH_COMPONENT . '\helpers');
Title: Re: Some problems
Post by: zeeva on 16 April 2015, 08:46:14
Hello federica. I'm using windows and I replaced it, but still it didn't work ): I'm getting the same error "Controlador de clase inválido: AbookControllerBook"

What should I do?
Title: Re: Some problems
Post by: federica on 16 April 2015, 12:18:25
Strange...
I will try to install xampp to run Abook using windows. 
I will let you know.
Title: Re: Some problems
Post by: zeeva on 16 April 2015, 12:31:20
Thank you very much, you're awesome! I'll be waiting, because I really need to fix this >.<

Thanks again, I like support here :)
Title: Re: Some problems
Post by: zeeva on 28 April 2015, 09:41:42
Hello federica. Is there anything new about this problem? I saw there is a related post about it but I don't understand it very well even with google translator >.<
Title: Re: Some problems
Post by: federica on 28 April 2015, 09:52:49
Hi zeeva,
the problem only occurs using a windows hosting. I'm working to solve it.
Title: Re: Some problems
Post by: zeeva on 28 April 2015, 09:57:34
Thank you very much for your hard work! I'm waiting for it. I'm using the component and it's really amazing, it has everything I need.
Title: Re: Some problems
Post by: federica on 28 April 2015, 10:01:20
Meanwhile, can you move the joomla installation from windows to linux hosting?
Title: Re: Some problems
Post by: zeeva on 28 April 2015, 12:24:05
I can try to install a virtual machine at home with linux. The website is in localhost at my workplace, we only have windows there. Tell me if there is anything I can help :)
Title: Re: Some problems
Post by: federica on 28 April 2015, 12:42:37
Thanks but I told you to move the site because linux is not affected by this issue, so you can use Abook without errors.
Title: Re: Some problems
Post by: zeeva on 26 May 2015, 08:23:53
Hello again. I have some errors when I move my Joomla to linux :(

Is there any news about the windows routes?

Thank you very much!
Title: Re: Some problems
Post by: veroquita on 19 June 2015, 17:51:24
Hello, I have the same problem in the rate an led a book. I'm using windows.
Title: Re: Some problems
Post by: veroquita on 19 June 2015, 17:58:34
Quote from: veroquita on 19 June 2015, 17:51:24
Hello, I have the same problem in the rate an led a book. I'm using windows. I wait the solution. Thanks
Title: Re: Some problems
Post by: federica on 27 June 2015, 15:24:45
I found the bug, look here: How to fix "Invalid control class: AbookControllerBook" (http://forum.voxpopulix.org/errori-%28bugs%29/how-to-fix-%27invalid-control-class-abookcontrollerbook%27/)