include(../module/default/main.php): failed to open stream: No such file or directory
#0 /var/www/html/concours-fmp/plugin/plugin_autoload.php(13): exception_error_handler(2, 'include(../modu...', '/var/www/html/c...', 13, Array)
#1 /var/www/html/concours-fmp/plugin/plugin_autoload.php(13): plugin_autoload::autoload()
#2 [internal function]: plugin_autoload::autoload('module_default')
#3 /var/www/html/concours-fmp/Lib/mkframeworkLib/class_root.php(215): spl_autoload_call('module_default')
#4 /var/www/html/concours-fmp/public/index.php(48): _root->run()
#5 {main}

Detail:
#0 /var/www/html/concours-fmp/plugin/plugin_autoload.php (13)
exception_error_handler( , 'include(../module/default/main.php): failed to open stream: No such file or directory' , '/var/www/html/concours-fmp/plugin/plugin_autoload.php' , , Array ( [sClass] => module_default [tab] => Array ( [0] => module [1] => default ) ) )
#1 /var/www/html/concours-fmp/plugin/plugin_autoload.php (13)
plugin_autoload :: autoload( )
#2 plugin_autoload :: autoload( 'module_default' )
#3 /var/www/html/concours-fmp/Lib/mkframeworkLib/class_root.php (215)
spl_autoload_call( 'module_default' )
#4 /var/www/html/concours-fmp/public/index.php (48)
_root -> run( )
#5 {main}

Fichier : /var/www/html/concours-fmp/plugin/plugin_autoload.php ligne 13

Message : include(../module/default/main.php): failed to open stream: No such file or directory

1 <?php
2class plugin_autoload{
3    
4    public static function autoload($sClass){
5        
6        $tab=preg_split('/_/',$sClass);
7        if($sClass[0]=='_'){
8            include _root::getConfigVar('path.lib').'class'.$sClass.'.php';
9        }else if(in_array($tab[0],array('plugin','model','abstract'))){
10            include _root::getConfigVar('path.'.$tab[0]).$sClass.'.php';
11        }else if($tab[0]=='module'){
12            if(count($tab) == or _root::getConfigVar('module.folder.organized',0)==0){
13                include _root::getConfigVar('path.module').substr($sClass,7).'/main.php';
14            }else{
15                unset($tab[0]);
16                include _root::getConfigVar('path.module').implode('/',$tab).'/main.php';
17            }
18        }else if($tab[0]=='row'){
19            include _root::getConfigVar('path.model').'model_'.substr($sClass,4).'.php';
20        }else if($tab[0]=='sgbd' and in_array($tab[1],array('syntax','pdo'))){
21            include _root::getConfigVar('path.lib').'sgbd/'.$tab[1].'/'.$sClass.'.php';
22        }else if($tab[0]=='sgbd'){
23            include _root::getConfigVar('path.lib').'sgbd/'.$sClass.'.php';
24        
25        //definissez ici votre regle de chargement
26        //ici, si la classe debute par my_, on la cherche dans ../myClass
27        }else if(substr($sClass,0,3)=='my_'){
28            //on inclut la classe en tronquant my_
29            //exple: my_metier => ../myClass/metier.php
30            include '../myClasses/'.substr($sClass,3).'.php';

Navigation

Module:default Action:index

$_GET

Array
(
[:nav] => default::index
)

$_POST

Array
(
)

$_SERVER

Array
(
[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_IF_MODIFIED_SINCE] => Tue, 02 Mar 2021 20:26:40 GMT
[HTTP_ACCEPT_ENCODING] => gzip
[HTTP_HOST] => preins-fmp.um5.ac.ma
[HTTP_CONNECTION] => Keep-Alive
[HTTP_X_FORWARDED_FOR] => 100.24.122.117
[PATH] => /sbin:/usr/sbin:/bin:/usr/bin
[SERVER_SIGNATURE] =>
Apache/2.2.15 (CentOS) Server at preins-fmp.um5.ac.ma Port 80


[SERVER_SOFTWARE] => Apache/2.2.15 (CentOS)
[SERVER_NAME] => preins-fmp.um5.ac.ma
[SERVER_ADDR] => 10.10.1.112
[SERVER_PORT] => 80
[REMOTE_ADDR] => 10.10.1.254
[DOCUMENT_ROOT] => /var/www/html/concours-fmp/public
[SERVER_ADMIN] => root@localhost
[SCRIPT_FILENAME] => /var/www/html/concours-fmp/public/index.php
[REMOTE_PORT] => 34707
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] => :nav=default::index
[REQUEST_URI] => /index.php?:nav=default::index
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1618056599.344
[REQUEST_TIME] => 1618056599
)