If you do try this:1. Install Elxis 2009.1. Don't, finish the installation, just do the import data to db step and halt there.2. Go to phpmyadmin and to the just created table "elx_components". Check the values of the db column named "admin_menu_link". Are the links full or cropped?If they are OK (full), then everything works fine, continue the installation, DONE.
Continue if the links are not full.3). Go back to the elxis installer and click the icon to re-start the installation from the beginning.Open this file: installation/schema/elxis.xmlGo to lines 219 to 243.Change this: & to this: & in the insert querries.
4). Try to install Elxis again and when you reach the database info page check the checkbox "drop existing tables". 5). Continue and install elxis. Halt exactly after the database step.6). Check again the inserted links in phpmyadmin. Did the problem solved?
<?php $database->_resource->debug = true;require_once($mainframe->getCfg('absolute_path').'/includes/adodb/adodb-xmlschema03.inc.php');$schema = new adoSchema($database->_resource);$schema->ContinueOnError(true);$schema->SetPrefix($database->_table_prefix);$schema->ParseSchema($mainframe->getCfg('absolute_path').'/testschema.xml');$schema->ExecuteSchema();exit();?>
<?xml version="1.0" encoding="UTF-8"?><schema version="0.3"> <sql> <query>INSERT INTO components VALUES (NULL, 'TEST1', NULL, 0, 1, 'option=com_test&task=list', 'test1', 'com_test', 2, 'js/ThemeOffice/categories.png', 0, NULL)</query> <query>INSERT INTO components VALUES (NULL, 'TEST2', NULL, 0, 1, 'option=com_test%26task=list', 'test2', 'com_test', 2, 'js/ThemeOffice/categories.png', 0, NULL)</query> <query><![CDATA[INSERT INTO components VALUES (NULL, 'TEST3', NULL, 0, 1, 'option=com_test&task=list', 'test3', 'com_test', 2, 'js/ThemeOffice/categories.png', 0, NULL)]]></query> <query><![CDATA[INSERT INTO components VALUES (NULL, 'TEST4', NULL, 0, 1, 'option=com_test&task=list', 'test4', 'com_test', 2, 'js/ThemeOffice/categories.png', 0, NULL)]]></query> </sql></schema>
I am testing solutions 1 and 2 locally and I will notify you in a few minutes regarding the test results.TEST RESULTS:Solution 1( URL encode) did not worked!Solution 2 (CDATA) worked fine!Use CDATA and better also replace & with just & inside the querries. If this works for you I will update the Elxis installer to use CDATA in these queries.