Missing icons in the action bar
Current behavior / Resultado actual / Résultat actuel
When opening pages with a visible action bar, Some items show an empty box.

Expected behavior / Resultado esperado / Résultat attendu
On https://campus.chamilo.org/main/newscorm/lp_controller.php?cidReq=TESTXOP&id_session=0&gidReq=0&gradebook=0&origin= it shows as it should be

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire
1/ Downloaded the latest version (13_3_2_ZeroXIII.exe) of the uniserver WAMP solution from https://sourceforge.net/projects/miniserver/files/latest/download?source=files.
Uses php7.1.1 on Apache 2.4.17 with Mysql 5.6.35.0
2/ extract the above exe and start UniController.exe. Enable PHP Version 7.1.1 with necessary modules.
3/ download the latest chamilo version chamilo-lms-1.11.2.zip (Release date: 01/11/2016) from https://chamilo.org/chamilo-lms/#downloads and extract it to the UniServerZ\www\chamilo directory
4/ useUniController.exe to start mysql and apache
5/ open http://localhost/chamilo/ in Firefox 52.0.2 and run the chamilo setup connecting to mysql on localhost
6/ Login with the in step 5 created admin user and password
7/ Create a new course via http://localhost/chamilo/main/admin/course_add.php and 'fill with demo content'
8/ Open the course list http://localhost/chamilo/main/admin/course_list.php
Already there is an icon missing in the action bar
Inspecting the button shows there is no code for an image icon
9/ Open the newly created course by clicking on its name http://localhost/chamilo/courses/EXAMPLE/index.php
10/ Click on the icon for "learning path" URL http://localhost/chamilo/main/lp/lp_controller.php?cidReq=EXAMPLE&id_session=0&gidReq=0&gradebook=0&origin=
11/ You now have a visible action bar with only the first icon visible and two empty boxes.
With inspect element, we see that indeed the first box has a valid img, the other two have not.
Since the first icon is visible, i suppose it is not a question of wrong path names or rewrites.
Chamilo Version / Versión de Chamilo / Version de Chamilo
Tested with versions chamilo-lms-1.11.0 and chamilo-lms-1.11.2.zip.
I think this was already fixed for next version. You should trying the latest 1.11.x code.
Downloaded zip from https://github.com/chamilo/chamilo-lms/tree/1.11.x and upgraded existing install. Works like breeze. Thx for the (very) quick response :-)
Additionally, we have reservations on supporting 7.1 for now (although I'm using it locally), as we haven't reviewed the whole system yet, and automated tests were failing not so long ago with 7.1.
Since the upgrade to https://github.com/chamilo/chamilo-lms/tree/1.11.x there are problems working with SCORM files. The same files that worked flawlessly in the chamilo-lms-1.11.2 version, now give errors related to doctrine like:
Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Symfony\Component\Validator\Constraints\NotBlank" in property Chamilo\CoreBundle\Entity\Course::$title does not exist, or could not be auto-loaded. in D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php:54 Stack trace: #0 D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(708): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...') #1 D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(641): Doctrine\Common\Annotations\DocParser->Annotation() #2 D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(334): Doctrine\Common\Annotations\DocParser->Annotations() #3 D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationReader.php(226): Doctrine\Common\Annotat in D:\Apps\WAMP\www\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php on line 54
I've tried with PHP Version 7.0.15: same problem. What version of php is advised ? I've tried updating composer using the command php -f composer.phar update --profile -vvv The problem persists.
Thx.
We get the same doctrine error when trying to delete an existing scorm/learnpath. When pressing the back button after the error, the path is deleted.

Might be the same as issue https://github.com/chamilo/chamilo-lms/issues/1529 ?
What version do you recommend to use for the moment ? The latest 1.11.x code seems to have a problem with Doctrine / File upload and the latest stable has a problem with the (action) icons.
When downloading a development version, you have to update all the dependencies with composer update. Did you do this? Because your error messages is relatively symptomatic of a non-updated list of dependencies.
Yes we did. Ran it again to be sure. Output:
php -f composer.phar update Chamilo\CoreBundle\Composer\ScriptHandler::deleteOldFilesFrom19x Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 0 updates, 0 removals Package facebook/php-sdk-v4 is abandoned, you should avoid using it. Use facebook/graph-sdk instead. Generating autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class Chamilo\CoreBundle\Composer\ScriptHandler::dumpCssFiles
Tried deleting a learn path, but it gives the same error: Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Symfony\Component\Validator\Constraints\NotBlank" in property Chamilo\CoreBundle\Entity\Course::$title does not exist, or could not be auto-loaded. in C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php:54 Stack trace: #0 C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(734): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...') #1 C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(663): Doctrine\Common\Annotations\DocParser->Annotation() #2 C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\DocParser.php(354): Doctrine\Common\Annotations\DocParser->Annotations() #3 C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationReader.php(250): Doctrine\Common\Annotations\DocParser->parse('/**\n in C:\inetpub\wwwroot\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php on line 54
I could try emptying the vendor directory and rebuilding it ?
I just removed the vendor directory and ran a composer update to repopulate. The same doctrine exception is thrown on uploading a scorm or removing a learnpath.
Yes, removing the vendor/ directory can help. Sorry that didn't work in your case.
I have PHP 7.1 here and I don't see the problem (I just tried removing vendor, doing composer update and creating+deleting a learning path: all good). In short: Cannot reproduce.
You can try deleting vendor and composer.lock and clearing your composer cache with "composer clear-cache" and then composer update... (not sure, just trying to give more hints here on what might not be working for you).
Done that. I even re-downloaded the latest build and started from scratch: download & extract zip file, composer update (absolutely necessary, since the https://github.com/chamilo/chamilo-lms/tree/1.11.x download does not contain a vendor directory). Logged in. Same error when deleting learnpath or uploading scorm file. Even tried on other pc: same error. Also tried on an iis server where the stable version runs without errors (but also without icons :-) and it gives the same error. Very strange that it cannot be reproduced. Any chance of getting a zip with the webtree you use ?
Thx.
On Windows XAMPP PHP 5.6.28 I cannot get the system (git clone 1.11.x and composer updated fine) installed because of doctrine errors. On mac and linux it works.
I think this is the same problem.
Can somenone explain this rrror:
Well the issue probably boils down to a requirement in the Annotation component of Doctrine (which allows us to design the ORM structure more clearly, as explained in http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html). This should be fixed (I hope) when we release the first beta of 1.11.4 (which shouldn't be too long from now, as we're already late of about 60 days), because dependencies come pre-loaded in beta packages (so you don't have the issues of them not being inside vendor, which I guess is the issue here).
I hope to be releasing a beta package around the 3rd of May.
So if 1.11.x is not stable, what is the latest stable branch to use?
I'm viewing the icons on the bar in normal way

Try run "composer update" and do a fresh install first.
Testing Chamilo is like shooting on a moving target every time you do "composer update".
To fix the doctrine annotation exception I think the composer dependency versions must be changed but I don't know what versions works. A quick workaround to fix the install and remove the exception errors is to remove the @Assert lines in the comments of src/Chamilo/CoreBundle/Entity/Course.php. Then installation can continue.
Then testing can continue and clicking on the middle icon of the learning path tool thows up another error:
Fatal error: Uncaught exception 'Exception' with message 'Class 'DatePicker' does not exist. ' in C:\xampp\htdocs\chamilogit\main\inc\lib\pear\HTML\QuickForm.php:501 Stack trace: #0 C:\xampp\htdocs\chamilogit\main\inc\lib\pear\HTML\QuickForm.php(564): HTML_QuickForm->_loadElement('addElement', 'DatePicker', Array) #1 C:\xampp\htdocs\chamilogit\main\inc\lib\formvalidator\FormValidator.class.php(224): HTML_QuickForm->addElement('DatePicker', 'publicated_on', 'Publication dat...', Array) #2 C:\xampp\htdocs\chamilogit\main\lp\lp_add.php(116): FormValidator->addDatePicker('publicated_on', 'Publication dat...') #3 C:\xampp\htdocs\chamilogit\main\lp\lp_controller.php(595): require('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\chamilogit\main\inc\lib\pear\HTML\QuickForm.php on line 501
o, o, Chamilo...
I have added the "composer show" report which is different from a working chamilo version.
I tried in my local pc with php 7.1 deleting vendor and composer.lock then composer update. And I have no problem.
I tried also the same in 1.11.chamilo.org (PHP 5.5) and I don't see any composer error .
Check that your PHP CLI and PHP/Apache server are the same version. Also update you should update your composer file.
Ok, I will check php versions. Note: currently testing on Windows. On Mac and Linux there are fewer problems.
I also found that the Datepicker problem is already mentioned here: https://github.com/chamilo/chamilo-lms/issues/1694