Menu

#3518 (ok 3.4.11) Exception on XML import

Latest_Git
fixed
1
2013-06-11
2012-02-12
No

It looks like error handling in XML import is not as it should be:

FastCGI-stderr: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in libraries/Error.class.php:161
Stack trace:
libraries/Error.class.php(161): serialize(Array)
libraries/Error_Handler.class.php(106): PMA_Error->getHash()
[internal function]: PMA_Error_Handler->handleError(2, 'count(): Node n...', '...', 189, Array)
libraries/import/xml.php(189): count(Object(SimpleXMLElement))
import.php(394): include('...')
{main}
thrown in libraries/Error.class.php on line 161

Seen on demo server on current master, I have no clue what were imported data.

Discussion

  • Madhura Jayaratne

    • assigned_to: nobody --> madhuracj
     
  • Madhura Jayaratne

    • priority: 5 --> 1
    • summary: Exception on XML import --> (ok 3.4.11) Exception on XML import
    • status: open --> open-fixed
     
  • Michal Čihař

    Michal Čihař - 2012-02-18

    PmaAbsoluteUri is definitely correct and there are no special chars in path on http://demo.phpmyadmin.net/ :-)

     
  • Madhura Jayaratne

    Oooops!!!
    Looks like I've mistakenly selected something irrelevant from the response dropdown.
    I wanted to select "Fixed in repository".

     
  • Madhura Jayaratne

    This bug was fixed in repository and will be part of a future release; thanks for reporting.

     
  • Michal Čihař

    Michal Čihař - 2012-02-19

    Madhura, it looks like your patch breaks other things:

    FastCGI-stderr: PHP Fatal error: Call to undefined function PMA_isSerializable() in libraries/Error.class.php on line 155
    PHP Stack trace:
    PHP 1. {main}() phpmyadmin.css.php:0
    PHP 2. PMA_Theme_Manager->printCss() phpmyadmin.css.php:40
    PHP 3. PMA_Theme->loadCss() libraries/Theme_Manager.class.php:367
    PHP 4. include() libraries/Theme.class.php:313
    PHP 5. PMA_Error_Handler->handleError() libraries/Theme.class.php:81
    PHP 6. PMA_Error->getHash() libraries/Error_Handler.class.php:106

     
  • Madhura Jayaratne

    Should be fixed now.

     
  • Marc Delisle

    Marc Delisle - 2012-04-07
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB