[3.2][DEV] Form Maker/Creator

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
scheccia
Registered User
Posts: 46
Joined: Fri Feb 10, 2017 8:16 am

Re: [3.2][DEV] Form Maker/Creator

Post by scheccia » Sun Sep 22, 2019 9:51 am

the extension call preview when click on reply and I have this error

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/dmzx/formcreator/event/listener.php on line 395: Undefined variable: fieldcontents
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 20: DOMDocument::loadXML(): Empty string supplied as input
[phpBB Debug] PHP Notice: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 23: Trying to get property 'message' of non-object
there is a fix?

scheccia
Registered User
Posts: 46
Joined: Fri Feb 10, 2017 8:16 am

Re: [3.2][DEV] Form Maker/Creator

Post by scheccia » Sun Sep 22, 2019 3:36 pm

fix

Code: Select all

if ($message === '')
		{
			if ($mode <>'reply'){ //mod
			$message = $this->grab_form_data($forum_id);
			foreach ($files as $key => $name)
			{
				$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);
			}
			$message_parser->message = $message;

		$post_data = $message_parser->message;
		}
		}

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [3.2][DEV] Form Maker/Creator

Post by Hippie459MN » Mon Sep 23, 2019 2:36 am

I am kind of having the same issue. Since I updated to phpbb 3.2.7 I get this if I try to hit the preview button or from the quick reply hitting the priview and full editor button, if the text box is empty. Disabling the extension and everything works.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 20: DOMDocument::loadXML(): Empty string supplied as input

Fatal error: Uncaught InvalidArgumentException: Cannot load XML: in /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php:23 Stack trace: #0 /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderers/PHP.php(127): s9e\TextFormatter\Renderer->loadXML('') #1 /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php(31): s9e\TextFormatter\Renderers\PHP->renderRichText('') #2 /home2/hippie74/public_html/hydrostreamforums/phpbb/textformatter/s9e/renderer.php(250): s9e\TextFormatter\Renderer->render(NULL) #3 /home2/hippie74/public_html/hydrostreamforums/includes/message_parser.php(1383): phpbb\textformatter\s9e\renderer->render(NULL) #4 /home2/hippie74/public_html/hydrostreamforums/posting.php(1529): parse_message->format_display(true, 1, true, false) #5 {main} thrown in /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php on line 23
scheccia wrote:
Sun Sep 22, 2019 3:36 pm
fix

Code: Select all

if ($message === '')
		{
			if ($mode <>'reply'){ //mod
			$message = $this->grab_form_data($forum_id);
			foreach ($files as $key => $name)
			{
				$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);
			}
			$message_parser->message = $message;

		$post_data = $message_parser->message;
		}
		}
What file is that in?

scheccia
Registered User
Posts: 46
Joined: Fri Feb 10, 2017 8:16 am

Re: [3.2][DEV] Form Maker/Creator

Post by scheccia » Mon Sep 23, 2019 10:04 am

Hippie459MN wrote:
Mon Sep 23, 2019 2:36 am
I am kind of having the same issue. Since I updated to phpbb 3.2.7 I get this if I try to hit the preview button or from the quick reply hitting the priview and full editor button, if the text box is empty. Disabling the extension and everything works.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 20: DOMDocument::loadXML(): Empty string supplied as input

Fatal error: Uncaught InvalidArgumentException: Cannot load XML: in /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php:23 Stack trace: #0 /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderers/PHP.php(127): s9e\TextFormatter\Renderer->loadXML('') #1 /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php(31): s9e\TextFormatter\Renderers\PHP->renderRichText('') #2 /home2/hippie74/public_html/hydrostreamforums/phpbb/textformatter/s9e/renderer.php(250): s9e\TextFormatter\Renderer->render(NULL) #3 /home2/hippie74/public_html/hydrostreamforums/includes/message_parser.php(1383): phpbb\textformatter\s9e\renderer->render(NULL) #4 /home2/hippie74/public_html/hydrostreamforums/posting.php(1529): parse_message->format_display(true, 1, true, false) #5 {main} thrown in /home2/hippie74/public_html/hydrostreamforums/vendor/s9e/text-formatter/src/Renderer.php on line 23
scheccia wrote:
Sun Sep 22, 2019 3:36 pm
fix

Code: Select all

if ($message === '')
		{
			if ($mode <>'reply'){ //mod
			$message = $this->grab_form_data($forum_id);
			foreach ($files as $key => $name)
			{
				$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);
			}
			$message_parser->message = $message;

		$post_data = $message_parser->message;
		}
		}
What file is that in?
listener.php

Post Reply

Return to “Extensions in Development”