Quantcast
Viewing all articles
Browse latest Browse all 1632

Extension Requests • Form Maker/Creator Request

Using this Extension
Form Maker/Creator: viewtopic.php?t=2400921
Not sure if this is the correct location to ask for this since this Mod is marked as ABD

Error Message Issues I am having is these:
ISSUE 1 - When on a topic and User Hits REPLY to a Topic it gives the Error Message
ISSUE 2 - When Creating a New Post when One hits PREVIEW button if the text field is empty it also gives the Error Message

Code:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 41: DOMDocument::loadXML(): Empty string supplied as input
So I was looking around and I found this fix that checks for if ($mode <>'reply')

Code:

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;}}
That fixed ISSUE 1 for the Topic REPLY issue. However ISSUE 2 when creating a New Topic Post and the Writing Field is empty it still gives the error

Code:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 41: DOMDocument::loadXML(): Empty string supplied as input
Changing the if ($mode <>'reply') to if ($mode <>'post') FIXES ISSUE 2 but than it recreates ISSUE 1
So it is basically between Choosing One fix over the other.

Code:

if ($mode <>'post') 

I tried using an ELSE IF statement but if try this than both stop working.
So

Code:

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;}elseif ($mode <>'post') //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;}}

Statistics: Posted by Dead Man — Wed Jul 10, 2024 3:55 pm



Viewing all articles
Browse latest Browse all 1632

Trending Articles