Page 3 of 6

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

Posted: 13. May 2019 19:51
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/

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

Posted: 13. May 2019 19:56
by Kirk
Did you follow the instructions correctly?

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

Posted: 13. May 2019 20:00
by Solidjeuh
Yes, deleted vendor folder from /ext/board3/portal
Upload the files from the .zip
Clear forum & browser cache.

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

Posted: 13. May 2019 20:17
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!

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

Posted: 13. May 2019 20:19
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!

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

Posted: 13. May 2019 20:45
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.

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

Posted: 13. May 2019 21:02
by TrekRed
Kirk. No solution? When 0 blocks are normal, why do they change when changing?

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

Posted: 13. May 2019 21:12
by Kirk
Unfortunately, I have no solution for you. On my board it works without problems.

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

Posted: 13. May 2019 21:26
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! :)

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

Posted: 13. May 2019 21:33
by TrekRed
Kirk. In the style of Prosilver, the same mistake means that it is not a matter of style, but of extension!

Global Bekanntmachungen

Posted: 15. May 2019 15:02
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

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

Posted: 15. May 2019 20:03
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?

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

Posted: 16. May 2019 11:34
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?

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

Posted: 16. May 2019 13:41
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

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

Posted: 16. May 2019 14:01
by Kirk
@TrekRed
There is no update before. After an update, the compact mode should also work.

@Fritschie
Ist dieser Fehler auch in prosilver?