If a user has no access to a feature or a wiki page, normally the login page is shown. However, if the site has a phpLayers menu (E.g. {phplayers id=43 type=horiz} in Site Identity features - Custom Code - Content ), the phpLayers menu fails and dies. The user only sees a blank page with the message "LayersMenu Error: setMenuStructureString: empty string. Halted".
As a tempory fix, I added a line to lib/smary-tiki/function.phplayers.php. This way the phplayers menu does not halt, and the normal login screen is shown. In version 1.10, the line should be added to /tiki/lib/phplayers_tiki/tiki-phplayers.php instead.
include_once ("lib/phplayers/lib/PHPLIB.php");
include_once ("lib/phplayers/lib/layersmenu-common.inc.php");
include_once ("lib/phplayers/lib/layersmenu.inc.php");
include_once ("lib/phplayers/lib/".$types%22$type%22);
// beware ! that below is a variable class declaration
$class = $classes%22$type%22;
$phplayers = new $class();
$phplayers->haltOnError = "no"; // This line added by hsaelens
$phplayers->setDirrootCommon("lib/phplayers");
$phplayers->setLibjsdir("lib/phplayers/libjs/");
$phplayers->setImgdir("lib/phplayers/images/");
$phplayers->setImgwww("lib/phplayers/images/");
$phplayers->setTpldirCommon("lib/phplayers/templates/");
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |