HTTP 401 with Siteground hosting

More
11 Nov 2010 10:53 #413 by angelcomas
Hello ,
I am using Siteground as a hosting provider and I get the error

Invalid HTML content! (The HTTP server returned error code "401". Only a 2xx response is acceptable.)
Can you help me?

Thanks in advance

Angel Comas

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 11:11 #414 by pete
Hello Angel Comas,

That means the MailChimp server can not access the newsletter html file on your server. Do you use a htaccess login or some other user authentication on your site? Please post the url of your site and the name of a campaign you created in Joomailer. That allows me to take a closer look at what's causing the problem.

Kind regards,
Pete

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 12:54 #418 by angelcomas
Hi Pete, thanks for your quick response.

The url is www.laquintaclub.com and the campaign is "Prueba 2" . My htaccess does not have any special auth setup and I am using joomla 1.15.14

Kind regards

Angel

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 13:13 #419 by pete
Ok, the campaign draft looks alright and is accessible.
Can you please try something and let me know what happens. Edit the file administrator/components/com_joomailermailchimpintegration/controllers/send.php
add this at the end of line 227 (after "$send = $MC->campaignSendTest( $c_id, $emails );")

var_dump($MC);die;

Then try to send a campaign TEST and post the output here.

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 13:36 #420 by angelcomas
I got the same result as previously with both (test and send)

Angel

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 16:09 #421 by pete
The reason of that error message in your case is that you included an @ in the from name of your campaign. This is not allowed. Unfortunately the API returns the same error as if the content wasn't accessible or invalid. We will implement a check to prevent such characters to be included in the from name but for now you can just remove the @ and it should send your campaigns.

Kind regards,
Pete

Edit: Disallowed characters in the from name are double quotes (") and the @ sign.

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 16:20 #422 by angelcomas
Pete, thank you very much for your help and your time

Best regards

Angel

Please Log in or Create an account to join the conversation.

More
11 Nov 2010 16:24 #423 by pete
You're welcome. Thanks for the bug report ;)

Please Log in or Create an account to join the conversation.

More
18 Nov 2011 15:48 #2121 by d-den
Hi Pete,

I'm having the error with invalid content when testing a campaign too.
I did all the previous tips I found:
- archive directory in root with 766 rights for the dir and all files
- no .htaccess that reject any ip's or sockets
- no password protection
- no illegal characters @ or " as a name

I added the code: var_dump($MC);die; in the send.php and .....
...here I got the following error when saving/creating the campaign:

JDatabaseMySQL::query: 1146 - Table 'xxx.n8xiq_k2_items' doesn't exist SQL=SELECT a.*, b.name, c.name as category FROM n8xiq_k2_items as a LEFT JOIN n8xiq_users as b ON b.id = a.created_by LEFT JOIN n8xiq_k2_categories as c ON c.id = a.catid WHERE a.published =1

Any help is needed to get this component going. I hope you have some ideas on how to solve this.

Thanks.

Dennis

Please Log in or Create an account to join the conversation.