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

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

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

Message : include(../module/registration/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:registration Action:step1

$_GET

Array
(
[:nav] => registration::step1
)

$_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] => Fri, 29 Sep 2023 02:46:44 GMT
[HTTP_HOST] => preins-pharmacie.um5.ac.ma
[HTTP_CONNECTION] => Keep-Alive
[HTTP_X_FORWARDED_FOR] => 3.239.2.192
[PATH] => /sbin:/usr/sbin:/bin:/usr/bin
[SERVER_SIGNATURE] =>
Apache/2.2.15 (CentOS) Server at preins-pharmacie.um5.ac.ma Port 80


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