- Posts: 17
[Solved] tienda 0.62 reload from moodle problem
- Terence
- Topic Author
- Offline
- New Member
-
Less
More
15 years 3 months ago - 15 years 3 months ago #1
by Terence
[Solved] tienda 0.62 reload from moodle problem was created by Terence
Hi.
I Installed tienda 0.62 along with joomdle and everything but the shop view in joomdle works fine.
When I click the 'Reload from Moodle' button in the shop menu of joomdle, I get this error.
Fatal error: Class 'Tienda' not found in C:\xampp\htdocs\administrator\components\com_tienda\tables\products.php on line 14
Here is some code of products.php:
12 defined( '_JEXEC' ) or die( 'Restricted access' );
13
14 Tienda::load( 'TiendaTable', 'tables._base' );
15
16 class TiendaTableProducts extends TiendaTable
17 {
18 function TiendaTableProducts ( &$db )
19 {
Could someone please tell me what to do to fix it?
I Installed tienda 0.62 along with joomdle and everything but the shop view in joomdle works fine.
When I click the 'Reload from Moodle' button in the shop menu of joomdle, I get this error.
Fatal error: Class 'Tienda' not found in C:\xampp\htdocs\administrator\components\com_tienda\tables\products.php on line 14
Here is some code of products.php:
12 defined( '_JEXEC' ) or die( 'Restricted access' );
13
14 Tienda::load( 'TiendaTable', 'tables._base' );
15
16 class TiendaTableProducts extends TiendaTable
17 {
18 function TiendaTableProducts ( &$db )
19 {
Could someone please tell me what to do to fix it?
Last edit: 15 years 3 months ago by Antonio Durán.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
15 years 3 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: tienda 0.62 reload from moodle problem
Hi. Thanks for the tip.
I have not tested with Tienda 0.62. Will try to do it along the evening, and let you know.
I have not tested with Tienda 0.62. Will try to do it along the evening, and let you know.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
15 years 3 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Re: tienda 0.62 reload from moodle problem
I tested and it works fine for me, in R0.5 code.
I looked at differences, and sa I put this:
require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_tienda'.DS.'defines.php');
into reload_courses_to_tienda function, in administrator/components/com_joomdle/helpers/shop.php
I dind't put it in the changelog, so I totally forgot about it
I guess that should fix your problem.
I looked at differences, and sa I put this:
require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_tienda'.DS.'defines.php');
into reload_courses_to_tienda function, in administrator/components/com_joomdle/helpers/shop.php
I dind't put it in the changelog, so I totally forgot about it
I guess that should fix your problem.
The topic has been locked.
- Terence
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
15 years 3 months ago #4
by Terence
Replied by Terence on topic Re: tienda 0.62 reload from moodle problem
I tried it. It still doesn't work. I'm going to try Tienda 0.60 again and see if it works. Thanks for the quick reply
The topic has been locked.
- Terence
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
15 years 3 months ago #5
by Terence
Replied by Terence on topic Re: tienda 0.62 reload from moodle problem
I uninstalled 0.62 and installed 0.60 again. It still doesn't work. System checks shows all is fine. I'm beginning to think that the installation has gone corrupt. Any other ideas? I'll reinstall and reply later.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
15 years 3 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: tienda 0.62 reload from moodle problem
The only thing not working is the reload function, right?
Are you sure you put the line I gave you at the start of the funciton?
It should work, as I tested with 0.62 and had no problems.
Are you sure you put the line I gave you at the start of the funciton?
It should work, as I tested with 0.62 and had no problems.
The topic has been locked.
- Terence
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
15 years 3 months ago #7
by Terence
Replied by Terence on topic Re: tienda 0.62 reload from moodle problem
AHH... I got it!! I must have pasted the line in the wrong place.
Thanks.
Thanks.
The topic has been locked.