×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: error building the newsletter form

error building the newsletter form 10 years 2 months ago #27971

  • bob
  • bob's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

First: thanks for this great and useful component. It worked great until the following issue.
Since the last update (com_cmc-1.5.1.zip), i have an error in the module as follow: It seems that there is an error building the newsletter form. Most probably one of your fields contains invalid characters. If the problem persist, contact support on compojoom.com
I know they are only php warnings but here is what i can see wen i turn on error reporting in joomla:
Warning: SimpleXMLElement::__construct(): Entity: line 39: parser error : xmlParseEntityRef: no name in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740
Warning: SimpleXMLElement::__construct(): /option><option value="Manufacturing">Manufacturing</option><option value="Oil & in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740
Warning: SimpleXMLElement::__construct(): ^ in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740
Warning: SimpleXMLElement::__construct(): Entity: line 39: parser error : xmlParseEntityRef: no name in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740
Warning: SimpleXMLElement::__construct(): tion value="Manufacturing">Manufacturing</option><option value="Oil & Gas">Oil & in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740
Warning: SimpleXMLElement::__construct(): ^ in /Applications/MAMP/htdocs/btj321/libraries/joomla/form/form.php on line 740

I've checked the options of my mailchimp signup form and there is no strange character or anything wrong i can see. I've also looked at the logs and apart from the warnings i added above, i could not see anything relevant.

I've tried the solution posted here: compojoom.com/forum/cmc-mailchimp-for-jo...fter-update-to-1-5-1 but without any luck.
I'm developing on Mac using MAMP with the following:
- Joomla! 3.3.3
- Apache 2.2.26
- php 5.5.10
-mySQL 5.5.34

Any help or indication of what could cause this issue would be greatly appreciated.

Thank you in advance.

Cheers

error building the newsletter form 10 years 2 months ago #27972

  • bob
  • bob's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
well i think i found the issue.

For one of my list field (on mailchimp), i had many option to choose for. And in some of them i was using a slash "/".
For example: Architecture/Engineering or Advertising/Marketing/PR .
As soon as i replaced the slashes "/" with dashes "-", then everything was showing properly.

I'm not a php guru but my conclusion is that the script does not escape slashes "/" if any in the option value, therefore breaking the output code, resulting in displaying error without php errors.

I hope that will help others and hopefully see a fix very soon.

Cheers
  • Page:
  • 1
Time to create page: 0.101 seconds