A
A
alekssamos2018-07-05 21:31:14
PHP
alekssamos, 2018-07-05 21:31:14

Not importing yml on localhost Windows?

There is a local server: I tried a lot: Open Server, Denwer, Xampp;
PHP: 5.6, 7; different versions, locales, configurations and encodings.
More than 4 days of tinkering, so nothing came of it.
The script fails with
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'.
I select a .xml file in the yml format in the admin panel
and get:

mistakes
Warning: XMLReader::readOuterXml(): file://simpla/files/import/import.yml:407: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xD1 0x80 0xD0 0xB0 in \simpla\ImportYmlAdmin.php on line 319

Warning: XMLReader::readOuterXml(): �сна, осень<br/>Цвет: черный<br/>Производство Ук in \simpla\ImportYmlAdmin.php on line 319

Warning: XMLReader::readOuterXml(): ^ in \simpla\ImportYmlAdmin.php on line 319

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in \simpla\ImportYmlAdmin.php:319 Stack trace: #0 \simpla\ImportYmlAdmin.php(319): SimpleXMLElement->__construct('') #1 \simpla\ImportYmlAdmin.php(142): ImportYmlAdmin->get_yml_offers_params('simpla/files/im...') #2 \simpla\IndexAdmin.php(110): ImportYmlAdmin->fetch() #3 \simpla\index.php(34): IndexAdmin->fetch() #4 {main} thrown in \simpla\ImportYmlAdmin.php on line 319
______________________________

Warning: XMLReader::readOuterXml(): file://simpla/files/import/import.yml:64: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xD0 0xB2 0xD0 0xB0 in \simpla\ImportYmlAdmin.php on line 319

Warning: XMLReader::readOuterXml(): /> Стелька – текстиль, мягкая.** *<br /> Подош in \simpla\ImportYmlAdmin.php on line 319

Warning: XMLReader::readOuterXml(): ^ in \simpla\ImportYmlAdmin.php on line 319

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in \simpla\ImportYmlAdmin.php:319 Stack trace: #0 \simpla\ImportYmlAdmin.php(319): SimpleXMLElement->__construct('') #1 \simpla\ImportYmlAdmin.php(142): ImportYmlAdmin->get_yml_offers_params('simpla/files/im...') #2 \simpla\IndexAdmin.php(110): ImportYmlAdmin->fetch() #3 \simpla\index.php(34): IndexAdmin->fetch() #4 {main} thrown in \simpla\ImportYmlAdmin.php on line 319

But when I upload it to a hosting on the Internet (Linux of course) - everything works as it should.
So. How to fix this problem? Tweak the config? Libraries update?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Argumentus, 2018-07-05
@Argumentus

Are you ok with coding?
"�sleep, autumn"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question