After installing the Content Areas Plugin I get this Fatal error. Any idea how to get this going? Thanks.
Fatal error: Call to a member function appendChild() on null in www/lists/admin/plugins/ContentAreas/ContentAreaBase.php on line 53
phpList version 3.3.1
I solved it for now. As a test I included the sample html from the plugin. And guess what that is working nice. So i must have a fault in my html. template than
Have been a bit to fast. Including my own template results in the error again. So what could be my mistake?
Sorry a software error occurred:
Please report a bug when reporting the bug, please include URL and the entire content of this page.
Fatal error: Uncaught exception ‘ErrorException’ with message ‘DOMDocument::loadHTML(): error parsing attribute name in Entity, line: 428’ in /var/www/l/www/lists/admin/plugins/ContentAreas/TemplateModel.php:204 Stack trace: #0 [internal function]: phpList\plugin\Common\Exception::errorHandler(2, ‘DOMDocument::lo…’, ‘/var/www/www…’, 204, Array) #1 /var/www//www/lists/admin/plugins/ContentAreas/TemplateModel.php(204): DOMDocument->loadHTML(‘loadHtml(’__construct(’<!DOCTYPE html …’) #4 /var/www/www. /www/lists/admin/plugins/ContentAreas.php(120): phpList\plugin\ContentAreas\TemplateModel::isTemplateBody(’<!DOCTYPE html …’) #5 /var/www/www.p in /var/www/www. /www/lists/admin/plugins/ContentAreas/TemplateModel.php on line 204
phpList version 3.3.1
I have all the plugins in place. With the sample-template from the Content Area plugin it is w0rking fine. But not with my own template though! Seems that this: error parsing attribute name.
Is causing an error?
How to use the correct attribute names? Can I also have one for images? data-edit=“article-image” ?
Why is that? This is just the “Foundation e-mail” grid code. If I have to leave that out than my design is gone as well my responsive layout. I tried it with-out and than the error is gone. but as said my design is gone also.
As you can see in the screen shot the repeating part above and the original layout below having padding and other text formatting :
Ok, did not see the quotation marks there thanks. Now it is better. Even my images editing is working. The hide-for-small was just there for testing but does not work. The idea was on small screens only show the images (on a mobile). I had an e-mail coming in which had that applied I tried to copy that using the Foundation css.
One minor thing I now lost my header logo image might be a path or so which is no longer valid? I have my logo hard-coded in the template.
@MrMailer Using your template the Preview seems to display without any errors. Also, sending an email using the template seems to display ok on an android phone. The article text does not expand to fill the whole width but remains on the left hand side.
Sorry, I’m not able to debug the template html. But if you can show that the plugin is somehow changing the html in an unexpected way then I try to fix such a problem.
This is the error that is generated when previewing the message. In the source code of the html received in my mail-prog I do not see any strange html although the source is hard to read with my mac mail. Is there a better way to explore the mail source code on a mac?
@MrMailer This is probably the cause of the problem
`
Some article text here!
`
When you use CKEditor to edit the content it appears to wrap the content with its own p tags, which means you end up with nested p tags, which is invalid html. You should use a div element instead of p.