developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Custom Query (1324 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (28 - 30 of 1324)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Ticket Resolution Summary Owner Reporter
#1482 fixed installation jacl2db plante avec le profil mysqli Arnall
Description

Si l'on choisit le driver mysqli il manque le schema correspondant dans le module jacl2db lors de son installation avec installer.php.

PHP Warning: file_get_contents(/xxxxxx/1.4/lib/jelix-modules/jacl2db/install/install_jacl2.schema.mysqli.sql): failed to open stream: No such file or directory in /home/devs/web/Jelix/1.4/lib/jelix/plugins/db/mysqli/mysqli.dbtools.php on line 30

#1481 fixed Jelix et locale autre que en_US et fr_FR laurentj nesswaw
Description

Bonjour,

Si dans ma config je met "fr_CH" comme locale, quand je test la zone "jelix~check_install" dans le controller default qui est là quand on créée une nouvelle application, il met l'erreur comme quoi il ne trouve pas le template "jelix~check_install"...

Testé sur la version du trunk de la 1.4, mais je pense que cela touche toutes les versions.

Qu'en pensez vous?

Merci

#1480 fixed PHPUnit Error when using runtests.php laurentj remib33
Description

When a unit-tested class contains the following Jelix instruction: jclasses::inc, then there is an error when launching Jelix runtests.php

     [exec] PHP Notice:  Trying to get property of non-object in /home/user/projet/workspace_php/lib/jelix/core/selector/jSelectorLoc.class.php on line 41
     [exec] PHP Notice:  Trying to get property of non-object in /home/user/projet/workspace_php/lib/jelix/core/selector/jSelectorLoc.class.php on line 44
     [exec] PHP Fatal error:  Uncaught exception 'jExceptionSelector' with message 'jelix module is not enabled !!' in /home/user/projet/workspace_php/lib/jelix/core/selector/jSelectorClass.class.php:62
     [exec] Stack trace:
     [exec] #0 /home/user/projet/workspace_php/lib/jelix/core/selector/jSelectorClass.class.php(52): jSelectorClass->_createPath()
     [exec] #1 /home/user/projet/workspace_php/lib/jelix/utils/jClasses.class.php(129): jSelectorClass->__construct('m2m~ws/account/...')
     [exec] #2 /home/user/projet/workspace_php/m2m/modules/m2m/tests/AccountSummary.pu.php(3): jClasses::inc('m2m~ws/account/...')
     [exec] #3 /usr/share/php/PHPUnit/Util/Fileloader.php(95): include_once('/home/user/pr...')
     [exec] #4 /usr/share/php/PHPUnit/Util/Fileloader.php(79): PHPUnit_Util_Fileloader::load('/home/user/pr...')
     [exec] #5 /usr/share/php/PHPUnit/Framework/TestSuite.php(358): PHPUnit_Util_Fileloader::checkAndLoad('/home/user/pr...')
     [exec] #6 /usr/share/php/PHPUnit/Framewo in /home/user/projet/workspace_php/lib/jelix/core/selector/jSelectorClass.class.php on line 62

The direct cause of this is that $gJconfig global var is not properly initialized.

Actually, during PHPUnit addTestFile method call (performed by Jelix), jelix is not properly initialized and jclasses::inc framework instruction is not recognized in AccountSummary? unit tested class.

I propose to perform the following modification in command.php Jelix script: Instantiate JCoordinator class before the existing following code (instead of after in current code)

		// it will initialize global variables $gJCoord $gJConfig. it could be needed by tests
        $coord = new jCoordinator($this->epInfo->configFile, false); // NOW BEFORE THE FOLLOWING CODE:

        if ($modulesTests == 0) {
            // we add all modules in the test list
            $suite = $this->getAllModulesTestSuites();
            if (count($suite)) {
                $this->arguments['test'] = $suite;
                unset ($this->arguments['testFile']);
            }
            else {
                $this->showMessage("Error: no tests in modules\n");
                exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
            }
        }
       
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Note: See TracQuery for help on using queries.