chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
796 stars 479 forks source link

Buy Courses Plugin - Services can not be added therefore certificate creation is blocked #3525

Open Bavarianspirit opened 4 years ago

Bavarianspirit commented 4 years ago

Describe I found that at the Cerficate Page at the end of the Learnig path shows this text: "If you want to get the certificate and/or skills associated with this course, you need to buy the certificate service. You can go to the services catalog by clicking this link: https://portal.yourserver.de/plugin/buycourses/src/service_catalog.php" This is new and can't be disabled in this plugin - or i found not the correct way.

Now when i klick on this url there is the info, that no services are available to buy.

If i go in the Admin Panel - buy courses - Courses and Prices Configuration - Services There is nothing i can do there. No + or add. Nothing.

I tried to create a services by running the php site manually: https://portal.yourserver.de/plugin/buycourses/src/services_add.php

The page is displayed. After filling the form and press confirm a blank page is displayed.

Installed latest Chamilo Release 1.11.12 updatet from 1.11.04 MultiURL configuration The plugin was activated the first time after 1.11.12

The Cleanup was performed after update https://portal.yourserver.de/main/admin/archive_cleanup.php

To put in Services will help me to create automatic certificates. Otherwise it will be also ok for me if the certificate page from buy courses plugin will not shown and the page shows the normal learning path certificate page that will be shown without the plugin.

The Screenshot shows the services site: Screenshot_1

Desktop (please complete the following information): Windows 10 Browser Firefox and Edge the same

**Server Debian php 7.3

Additional context Add any other context about the problem here.

Bavarianspirit commented 4 years ago

Now i tried with a clean installation on my testserver. Its the same. Look at the screenshots:

This site should initialize creation of the certificate 11

In the Learning path, this will be displayed instead 1

Now if i follow this link http://192.168.1.12/plugin/buycourses/src/service_catalog.php i will stay here: 2

This page works perfectly 3

But if i select services to create a Service for certificate creation i will get a page with no possibility to create one. 4

ywarnier commented 4 years ago

The "services" part is not fully implemented. I'm not sure why it's enabled, to be frank (quality insurance mistake on my side). I wouldn't use the learning path certificates page in combination with the "buy coures" plugin for now (until this part can be reviewed, I will leave this issue open, but we have no plan to fix this soon).

Bavarianspirit commented 4 years ago

For an automatic certificate creation, the only reliable way is to use the certificate page in the learning path. It would be also ok for me if i have an optionally way for automatic creation without that page. Does anybody knows a way i can use instead?

ywarnier commented 4 years ago

We recently added (post-1.11.12 but we're about to release a corrective 1.11.14 that has it) a cron script that you can call from a cron file that will check all certificates that can be generated (based on user's results). The script already exists but is too restrictive in 1.11.12. Check it at https://github.com/chamilo/chamilo-lms/commit/684266d3fecea5def57306cffab6363a3c3c6ba3#diff-33e7e154ba0e9eeff9c116a3af8070ea if you want the code (it also requires another change)

Bavarianspirit commented 4 years ago

1.11.14 will take some time? Meanwhile I think it will be better to implemet the crownjob. Is it possible to make it work with 1.11.12? If yes, can u tell me the additional code changes.

ywarnier commented 4 years ago

I believe my previous link contains all the changes you need to apply to make it work in 1.11.12, yes.

ywarnier commented 4 years ago

We hope to release 1.11.14 in mid-October.

Bavarianspirit commented 4 years ago

now i implemented your code, but it does not work. it seems i have to do some more code changes for success. Is there much more code i have to implement? I think it will be much more easier to complete the implementation or remove it on the learning path certificate page for successful use the plugin. as a workaround a quick and dirty way is also ok for some month.

Bavarianspirit commented 4 years ago

any news about this?

ywarnier commented 3 years ago

1.11.14 will be released at the end of November. Hopefully this helps a little. You're the only person reporting this issue so far, so we're not considering this as a priority for now, but we will come to it at some point. Sorry to disappoint with the time to find a solution. For very unique cases like this, hiring an official provider might be a good idea if you have some budget. Otherwise, contributing (helping others) or finding other people with the same issue is a good way to boost the priority of the issues you report.

Bavarianspirit commented 3 years ago

I hope this will help. i think this feature is in less use. Could be that all other users that need this, changed to other platforms.

There are much many urgent issues open and won't be closed by this team. Therefore its much more easier to fix some performance issues.

You know this software is buggy. We will spend some money if everything works correct. But missing mails, differential mails for the same thing, sometimes missing certifactes, no working buy courses plugin, no standard pdf creation adjustment for certificates, user they loose courses in portals by more than 1600 users, and so on and so on.

...make code optmization for nothing. work on 2.0 for the next 3 years and safe the bugs

lonesomewalker commented 3 years ago

@Bavarianspirit i think you misunderstand how open source works. This is not a wishlist. It is an issue tracker. High priority means: most people will have issues Low priority means: if it is a rare case, it will be done, but not now.

And if you compare Chamilo to Moodle, you'll find that the development of Chamilo doesn't produce as much security issues as the Moodle dev team does.

Yannick gave you the directíon where to look at the code. You don't know how to implement, but it is urgent for you -> BeezNest is available for hire. (so do all other open source projects, this funds the programmers...)

And yes, this software is buggy. As all software written by humans. You have to spend money that everything works as YOU want. For US, the software is working quite fine and correct. YOU are not able to get your desired solution. Mails -> no issues so far. Sure, some configuration has to be done, but this is how it works. We never missed emails, we always get our certificates, buying courses works just fine, PDF creation also works (okay, not out of the box, but if you are not able to get the right HTML code, this customization might not be the path to go for you).

And losing courses...? We run portals with more than 10k users, no issues. We run portals with more than 500 courses, no issues.

And doing code optimization for noting? You should be able to do the maths if optimization saves 0.5 sec per request, cumulating to a lot users...

Yeah, i understand that you are not satisfied, but this is open source software. Feel free to have a look at Moodle, ILIAS, Claroline, Dokeos, you-name-it... If you are satisfied elsewhere, fine. If not, start thinking what your expections are for 0 money.

And to say it in the words in your native tongue (as assumed from your nick): Nix is umsonst.