support Soupçons de bogues

YACS.JS not included correctly in 7.10 [Intégré]

You get a Javascript error on pages where a javascript tree is used. This is caused by a wrong inclusion of yacs.js (Il y a un JS erreur en utilisant des aborescenses etc.) causé par une mauvaise inclusion de yacs.js dans GLOBAL.PHP.

Avancement100%
WorkflowBesoin d'aide
StatutLa solution a été intégrée

Solution:

The error happens in shared/GLOBAL.PHP.

When activating the AJAX client library, the path to YACS.JS is appended to the [b] page_footer[/b] instead to the [b]page_header[/b]. This causes often a Javascript error.

To repair this please change the code in line 1138 of shared/global.php

// activate AJAX client library if(file_exists($context['path_to_root'].'shared/yacs.js'))

// [INSERT] $context['page_header'] .= ''."\n";// [/INSERT]

// [DELETE]// $context['page_footer'] .= ''."\n";// [/DELETE]