- This topic has 4 replies, 3 voices, and was last updated 3 years, 11 months ago by
Khanh Nguyen.
-
AuthorPosts
-
December 3, 2018 at 8:06 am #746860
Allen
Hello,
I am following the guidance with regards to adding a theme from the Site Library. Fresh installation, deleted existing content using WP Reset etc. The theme semi-loads in that none of the demo content will come through. I have gone through several of the mentioned fixes here: https://docs.generatepress.com/article/error-codes-importing/ and https://docs.generatepress.com/article/increasing-php-memory-limit/.
This is a self-hosted WP installation on nginx. Everything is working great except for importing Site Library themes.
I turned on WP_DEBUG and this is the output I am getting:
[03-Dec-2018 15:48:50 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site.php on line 728
[03-Dec-2018 15:48:50 UTC] PHP Warning: Creating default object from empty value in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site.php on line 728
[03-Dec-2018 15:49:02 UTC] PHP Warning: XMLReader::read(): /var/www/html/test.mytestsite.com/wp-content/uploads/2018/12/content-4.xml:1: parser error : Document is empty in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/libs/wxr-importer/WXRImporter.php on line 344
[03-Dec-2018 15:49:02 UTC] PHP Warning: XMLReader::read(): in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/libs/wxr-importer/WXRImporter.php on line 344
[03-Dec-2018 15:49:02 UTC] PHP Warning: XMLReader::read(): ^ in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/libs/wxr-importer/WXRImporter.php on line 344
[03-Dec-2018 15:49:02 UTC] == Start mapping menu locations ==
[03-Dec-2018 15:49:02 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site-helper.php on line 439
[03-Dec-2018 15:49:02 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site-helper.php on line 440
[03-Dec-2018 15:49:02 UTC] 2 ->
[03-Dec-2018 15:49:02 UTC] PHP Notice: Undefined offset: 3 in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site-helper.php on line 439
[03-Dec-2018 15:49:02 UTC] PHP Notice: Undefined offset: 3 in /var/www/html/test.mytestsite.com/wp-content/plugins/gp-premium/sites/classes/class-site-helper.php on line 440
[03-Dec-2018 15:49:02 UTC] 3 ->Thanks,
AllanDecember 3, 2018 at 8:52 am #746905Tom
Lead DeveloperLead DeveloperHmm, it seems your server is having trouble reading the content file.
If you open this file, is there content inside of it?:
wp-content/uploads/2018/12/content-4.xml
December 4, 2018 at 8:34 am #747925Allen
It’s gibberish:
/wp-content/uploads/2018/12$ head content-4.xml
��]{�㶑�{�*��+�����H����cDZ�l�/k�/�K� ����y���?���\7$(i�C���s��dgH����_��h��Gw��ܰ$�”�n�aq B��[�}�Yg�”�~��ם�v�S�Q�H�o����g�␅��oސ%� ?Y��%4�G�{� ��b��”ɈX�{�’$��NG7�EFg���N�Ɇf��
�’y�H�ݒ�g�d$Qxo���%���43�2 b&��b4��-��T�_x �ge�ߦd+�,m�-]1�’�
��)Kn��?PY��m�=
MO����� ʢ���RD����
�y �fl��J��]�XAM�G욬��B�What does that mean?
December 4, 2018 at 10:25 am #747993Tom
Lead DeveloperLead DeveloperWhat program are you opening it up in?
Maybe try with a program like this: https://atom.io/
If it still looks like that, then that’s definitely the issue. Something on your server is corrupting the data on download.
June 15, 2019 at 4:18 pm #930895Khanh Nguyen
I have the same issue and content of content-1.xml also looks the same.
-
AuthorPosts
- You must be logged in to reply to this topic.