Cannot load XML: Premature end of data in tag r line 1

Aktuelle Version: 2.1.0
Veröffentlicht: 26.10.2015
Forum rules
Vor dem erstellen neuer Supportanfragen bitte zuerst in die board3 Portal FAQ schauen und die Suche benutzen!
Viele Fragen sind bereits schon gestellt und beantwortet worden.
Bitte auch unsere Forumsregeln lesen und beachten!
User avatar

Solidjeuh
Valued Contributor
Posts: 61
Joined: 26. January 2017 13:12
phpBB.com User: Froddelaar
Location: Aalst, Belgium
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Solidjeuh »

Kirk wrote: 13. May 2019 17:07 Here is a fix: https://www.board3.de/viewtopic.php?f=72&t=11577
I'm receiving a white page with this page. Cleared the cache.

Code: Select all

[Mon May 13 19:47:57.013001 2019] [fcgid:warn] [pid 28758:tid 139978805835520] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44524] mod_fcgid: stderr: #4 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/portal/fetch_posts.php(632): board3\\portal\\portal\\fetch_posts->shorten_message('<r><URL ur in /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/TextIterator.php on line 120, referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700419 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function Marc1706\\TextShortener\\striipos() in /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/TextIterator.php:120, referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700531 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: Stack trace:, referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700549 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: #0 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/TextIterator.php(79): Marc1706\\TextShortener\\TextIterator->closeOpenTags(), referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700566 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: #1 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/Shortener.php(102): Marc1706\\TextShortener\\TextIterator->iterate('50'), referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700583 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: #2 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/Shortener.php(91): Marc1706\\TextShortener\\Shortener->buildShortenedText('50'), referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700599 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: #3 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/portal/fetch_posts.php(658): Marc1706\\TextShortener\\Shortener->shortenText('50'), referer: https://www.solidjeuh.be/
[Mon May 13 19:47:59.700615 2019] [fcgid:warn] [pid 23703:tid 139978837305088] [client 2a02:a03f:54ed:c600:a0ed:f828:7398:5838:44556] mod_fcgid: stderr: #4 /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/portal/fetch_posts.php(632): board3\\portal\\portal\\fetch_posts->shorten_message('<r><URL ur in /var/www/vhosts/solidjeuh.be/httpdocs/ext/board3/portal/vendor/marc1706/phpbb-text-shortener/src/TextIterator.php on line 120, referer: https://www.solidjeuh.be/
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Kirk »

Did you follow the instructions correctly?
Gruß Udo
User avatar

Solidjeuh
Valued Contributor
Posts: 61
Joined: 26. January 2017 13:12
phpBB.com User: Froddelaar
Location: Aalst, Belgium
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Solidjeuh »

Yes, deleted vendor folder from /ext/board3/portal
Upload the files from the .zip
Clear forum & browser cache.
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

TrekRed
Active Member
Posts: 39
Joined: 12. May 2019 20:05

Re: Cannot load XML: Premature end of data in tag r line 1

Post by TrekRed »

Kirk wrote: 13. May 2019 19:38
TrekRed wrote: 13. May 2019 18:58 but the blocks are all parted and are not visible
How is this to be understood?

A lee sign is also a sign.
What style are you using?
Please give me a link to your board.
TrekRed wrote: 13. May 2019 19:35 You expose 500 characters and a white page with the error: HTTP ERROR 500. You set 0 and everything is fine, only the whole topic!
I don't have this error, everything is displayed correctly.
What PHP version do you use?
1. Links: https://1smerch1.ru/
2. PHP 7.2.6
3. Styles: https://www.phpbb.com/customise/db/styl ... ntu_lucid/ 3.2.5

Included themes are not in a compact style!
Last edited by TrekRed on 13. May 2019 20:35, edited 1 time in total.

TrekRed
Active Member
Posts: 39
Joined: 12. May 2019 20:05

Re: Cannot load XML: Premature end of data in tag r line 1

Post by TrekRed »

If you turn on 0, then everything is normal, but the whole topic! The width of the blocks is different, the whole page has moved!
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Kirk »

@Solidjeuh
Open: root/ext/board3/portal/composer.json
Find:

Code: Select all

    "require": {
        "php": ">=5.3.3",
        "nickvergessen/phpbb-tool-trimmessage": "1.3.*"
    },
Replace with:

Code: Select all

	"require": {
		"php": ">=5.3.3",
		"marc1706/phpbb-text-shortener": "^0.1.0"
	},
@TrekRed
I'm afraid I can't understand this.
I am using this customized version in my testboard.
Gruß Udo

TrekRed
Active Member
Posts: 39
Joined: 12. May 2019 20:05

Re: Cannot load XML: Premature end of data in tag r line 1

Post by TrekRed »

Kirk. No solution? When 0 blocks are normal, why do they change when changing?
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Kirk »

Unfortunately, I have no solution for you. On my board it works without problems.
Gruß Udo
User avatar

Solidjeuh
Valued Contributor
Posts: 61
Joined: 26. January 2017 13:12
phpBB.com User: Froddelaar
Location: Aalst, Belgium
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Solidjeuh »

Kirk wrote: 13. May 2019 20:45 @Solidjeuh
Open: root/ext/board3/portal/composer.json
Find:

Code: Select all

    "require": {
        "php": ">=5.3.3",
        "nickvergessen/phpbb-tool-trimmessage": "1.3.*"
    },
Replace with:

Code: Select all

	"require": {
		"php": ">=5.3.3",
		"marc1706/phpbb-text-shortener": "^0.1.0"
	},
@TrekRed
I'm afraid I can't understand this.
I am using this customized version in my testboard.
Found the error. You need to set "Max length" to 80 or more.
When you set it on "70", you get that error.

But it's good like that.
I can confirm that the fix works! :)
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

TrekRed
Active Member
Posts: 39
Joined: 12. May 2019 20:05

Re: Cannot load XML: Premature end of data in tag r line 1

Post by TrekRed »

Kirk. In the style of Prosilver, the same mistake means that it is not a matter of style, but of extension!

Fritschie
Active Member
Posts: 13
Joined: 29. March 2019 20:58
phpBB.de User: Fritschie

Global Bekanntmachungen

Post by Fritschie »

Kirk, ich habe das selbe Problem wenn ich in "Global Bekanntmachungen" Werte von 600 Zeichen einstelle zerschisst es das Portal.
https://www.anlagenmeisterei.de/images/screenshot.jpg
Last edited by Fritschie on 19. May 2019 19:37, edited 1 time in total.
www.anlagenmeisterei.de phpBB 3.2.5 + Portal3 2.1
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Kirk »

Laut deinem Bild hast du den "Kompakter Block-Stil" aktiviert, da sollten die Einstellungen für die Länge der Beiträge gar nicht greifen.
Ist es in prosilver auch?
Gruß Udo

TrekRed
Active Member
Posts: 39
Joined: 12. May 2019 20:05

Re: Cannot load XML: Premature end of data in tag r line 1

Post by TrekRed »

Do you plan to update with the correction of all errors, turn on not compact mode, because Doesn't it work in Prosilver and other steels?

Fritschie
Active Member
Posts: 13
Joined: 29. March 2019 20:58
phpBB.de User: Fritschie

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Fritschie »

Kirk wrote: 15. May 2019 20:03 Laut deinem Bild hast du den "Kompakter Block-Stil" aktiviert, da sollten die Einstellungen für die Länge der Beiträge gar nicht greifen.
Ist es in prosilver auch?
Als der Screenshot von einem User gemacht wurde war der "Kompakter Bekanntmachungen-Block-Stil:" aus und es waren 480 Zeichen eingestellt
Das was Du in der Mitte sehen kannst ist schon der nächste Block "Aktuelle Beiträge" und den hat es so unter die anderen Blöcke gedrückt.
Die Bekanntmachungen wäre oben darüber.
Ich kann das Forum gern mal auf Xampp installieren das Problem nachstellen einen einen gesamten Screenshot der Seite machen wenn es zur Ursachenfindung hilft?

Jörg
www.anlagenmeisterei.de phpBB 3.2.5 + Portal3 2.1
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Cannot load XML: Premature end of data in tag r line 1

Post by Kirk »

@TrekRed
There is no update before. After an update, the compact mode should also work.

@Fritschie
Ist dieser Fehler auch in prosilver?
Gruß Udo
Locked

Return to “Board3 Portal 2.1.x - Deutscher Support”