Getting admin-ajax.php 500 internal error
-
When trying to export my orders, i get an admin-ajax.php 500 error – When trying other XML export plugins, they work without problems
-
Hi
Please, mark checkbox “Enable debug output” (in “Misc Settings”) and press “Export w/o progress”. Will you see exact error message?
thanks, Alex
Hi Alex,
Here you have the error message 🙂
Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: Entity: line 1: parser error : StartTag: invalid element name in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: <></> in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: ^ in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: Entity: line 1: parser error : Extra content at the end of the document in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: <></> in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Warning: SimpleXMLElement::__construct() [simplexmlelement.construct]: ^ in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36 Fatal error: Uncaught Exception: String could not be parsed as XML in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php:36 Stack trace: #0 /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php(36): SimpleXMLElement->__construct('<></>') #1 /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-engine.php(614): WOE_Formatter_Xml->output(Array) #2 /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/admin/class-wc-order-export-ajax.php(336): WC_Order_Export_Engine::build_file_full(Array) #3 /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(755): WC_Order_Export_Ajax->plain_export() #4 /var/www/innoliving.dk/public_html/wp-includes/class-wp-hook.php(286): WC_Order_Export_Admin->ajax_gate('') #5 /var/www/innoliving.dk/public_html/wp-includes/ in /var/www/innoliving.dk/public_html/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xml.php on line 36– Stefan
hi Stefan
Please, open section “XML” and enter value in field “Order tag”.
thanks, AlexThank you! Is there a way to remove the <orders> tag? As I only need to export 1 order at a time 🙂
hi Stefan
yes. open section “XML” and set empty “Root tag”.
thanks, AlexThank you! 🙂
you’re welcome.
If you need custom XML – tweak sample addon https://algolplus.com/plugins/code-samples/#sample_addonsthank you for the review.
The topic ‘Getting admin-ajax.php 500 internal error’ is closed to new replies.