LabelLmsController.php missing file

Backend functionalities: user management, course management, reports, certificates, etc.
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser »

Ok then, so what is the fix for the missing label class error? Any workaround? Can you share a file for this class?

Also I have a comment regarding placement of course files under the public folder. Is there some setting to direct this path to some inaccessible location?

By the way, it's not clear to me where the course modules can be added? I see in the documents the course logo and demo files only, where are the core files uploaded?
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: LabelLmsController.php missing file

Post by alfa24 »

Why don't you open a new thread for each request?
Per supporto GRATUITO contattatemi in privato qui
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: LabelLmsController.php missing file

Post by max »

tempuser wrote:By the way, it's not clear to me where the course modules can be added? I see in the documents the course logo and demo files only, where are the core files uploaded?
Hi tempuser, this is a totally different topic, it's not "by the way". Please add your question to the appropriate forum viewforum.php?f=12
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: LabelLmsController.php missing file

Post by alfa24 »

Solution:
create a new mvc module with only a show controller that would redirect to elearning/show&id_common_label=-2
Done.
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser »

May you please share this file?
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser »

I created this file as LabelLmsController.php

<?php defined("IN_FORMA") or die('Direct access is forbidden.');

/* ======================================================================== \
| FORMA - The E-Learning Suite |
| |
| Copyright (c) 2013 (Forma) |
| http://www.formalms.org |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
| |
| from docebo 4.0.5 CE 2008-2012 (c) docebo |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
\ ======================================================================== */

require_once(_base_.'/lib/lib.urlmanager.php');

class LabelLmsController extends LmsController {

//std functions

public function showTask() {
header('Location: elearning/show&id_common_label=-2');
}
}

?>


When I clicked the 'Labels' button from the learning interface, it showed this error:

The requested URL /appLms/elearning/show&id_common_label=-2 was not found on this server.


What is the problem?
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: LabelLmsController.php missing file

Post by alfa24 »

you should use the jump to built in feature to correctly handle mvc paths
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: LabelLmsController.php missing file

Post by tempuser »

Worked, thank you.
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: LabelLmsController php missing file

Post by alfa24 »

KamHaWay wrote: Sun Aug 04, 2019 7:33 am app/config/config.php is missing.

I checked everywhere and also I downloaded the package again. maybe the package got incomplete but this wasnt the case.

Anybody has similar problems? Or a solution for this?
What are you referring to?
Per supporto GRATUITO contattatemi in privato qui
Post Reply