John01 Posted February 14, 2016 Share Posted February 14, 2016 Hi I am getting a bunch of below warnings. What do they mean and how can they be fixed? Thanks Regards ! ) Warning: XSLTProcessor::transformToXml(): ID timesheet-wrapper already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29 ( ! ) Warning: XSLTProcessor::transformToXml(): ID timeoptions already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29 ( ! ) Warning: XSLTProcessor::transformToXml(): ID houroptions already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29 Quote Link to comment https://forums.phpfreaks.com/topic/300806-id-already-defined/ Share on other sites More sharing options...
requinix Posted February 14, 2016 Share Posted February 14, 2016 Whatever XML you're transforming, or maybe the XSLT you're using, has some duplicate ids in it. That is not allowed. Each ID must be unique in the entire XML document. Quote Link to comment https://forums.phpfreaks.com/topic/300806-id-already-defined/#findComment-1531086 Share on other sites More sharing options...
John01 Posted February 14, 2016 Author Share Posted February 14, 2016 Hi I have searched and IDs are not duplicate. I renamed them in any case and am still getting warnings. Thanks Regards ( ! ) Warning: XSLTProcessor::transformToXml(): ID timesheet-wrapper1 already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0080 138216 {main}( ) ...\settimesheet.php:0 2 0.0110 217872 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 0.6470 307688 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 0.6480 308416 transformToXml ( ??? ) ...\dataaccess.php:29 Quote Link to comment https://forums.phpfreaks.com/topic/300806-id-already-defined/#findComment-1531089 Share on other sites More sharing options...
requinix Posted February 14, 2016 Share Posted February 14, 2016 As the error message says, you still have a duplicate. You added a "1" to the ID but somehow there's another element that got the change. Is the XML being generated dynamically? Have you checked the XML in string form to see where "timesheet-wrapper1" appears? Quote Link to comment https://forums.phpfreaks.com/topic/300806-id-already-defined/#findComment-1531090 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.