Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yiannis Vavouranakis 38 posts 78 karma points
    May 20, 2013 @ 17:02
    Yiannis Vavouranakis
    0

    Stuck in sending

    Hello.

    We are evaluating the package, and attempted to send a newsletter to 2 subscribers.

    Sending a test message works fine, we receive the newsletter without issues.

    However, sending to a test list of 2 subscribers has a problem: 
    We get the page that says "Initializing sending service. May take several minutes" and then it "hangs" (it keeps querying the url "/umbraco/NewsletterStudio/Pages/NewsletterSendout.aspx/TestWeb", sending in the newsletter id and getting a JSON response containing the above message. It's been like that for more than an hour, so I believe it is safe to say that it has hung.

    In the database, the particular newsletter is marked with status 4. 

    We would have already purchased a license for the package, however as you can understand, for the time being, this is a showstopper for us. Please help us resolve the issue, as we are in a rather urgent need for a working newsletter package in umbraco.

    We are using umbraco 4.9, on a win2008/IIS7.5 server, with .NET 4.

    Thank you in advance.

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 20, 2013 @ 18:54
    Markus Johansson
    0

    Hi Yiannis!

    Thank you for using the package! Lets try to figure out whats wrong.

    Have you configured the smtp correctly? Status 4 means completed....

    public const Int32 Created = 0;
    public const Int32 Paused = 1;
    public const Int32 InProgress = 2;
    public const Int32 Error = 3;
    public const Int32 Completed = 4;

    Is there any email tracking items created? (look at the db table ns_EmailTrackingItems), what kind of status do they have?

    What does the call to /TestWeb return?

    Have a look here as well to try to track down the problem. http://support.newsletterstudio.org/customer/portal/articles/1147738-i-get-an-error-what-is-wrong-

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 21, 2013 @ 00:07
    Yiannis Vavouranakis
    0

    Hello.

    Thank you for the list of status codes, quite useful.

    Actually, I believe that smtp is set correctly, seeing that sending the newsletter to a test email goes through flawlessly.

    On the other hand, I seem to have had a minor change in behaviour:

    Now, when I FIRST try to send a new (saved) draft, I get

     "d":"\u003cspan style=\u0027color:red\u0027\u003eAn service-error has occured. The sending was aborted. Please try again.\u003c/span\u003e"}


    No email tracking items are created.

    I am not seeing anything inside app_data/logs, BUT!

    This is in UmbracoLog table:

    NsletterStudio, SendNewsletterService: Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery : System.Data.SqlClient.SqlException (0x80131904):

     The INSERT statement conflicted with the FOREIGN KEY constraint "FK_EmailTrackingItemNewsletter1". The conflict occurred in database "LaoudisDB", table "LaoudisDBO.ns_Newsletters", column 'Id'.  The statement has been terminated.     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()     at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)     at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)     at umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteNonQuery(String commandText, SqlParameter[] parameters)     at umbraco.DataLayer.SqlHelper`1.ExecuteNonQuery(String commandText, IParameter[] parameters)

     In all subsequent attempts to send the newsletter the response from /testWeb is invariably

    {"d":"\u003cdiv class=\"sendoutAjax\"\u003e\u003cp\u003eInitializing sending serivce. May take several minutes.\u003c/p\u003e\u003c/div\u003e"}

    without any errors being logged, or email tracking items being creted.

    Any insight into this will be greatly appreciated.

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 21, 2013 @ 09:17
    Markus Johansson
    0

    Hi!

     

    I see, it looks like there is something wrong with your relations in the db. Is this a clean install or an upgrade? Did you reinstall the package or something?

    It looks like its the "FK_EmailTrackingItemNewsletter1" that is creating this issue. 

    Is there a "FK_EmailTrackingItemNewsletter"? 

    I would recommend you to do a clean install in a new enviroment and compare the dbs.

     

    / m
     

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 21, 2013 @ 10:39
    Yiannis Vavouranakis
    0

    Hello.

    This is a clean install - though I believe it is 1.3.2 or 1.3.3 (if that makes a difference). The FK_EmailTrackingItemNewsletter1 exists and is a foreign key constraint between ns_EmailTrackingItems.NewsletterId (foreign) and ns_Newsletters.Id (primary), with "No Action" in both Delete and Update Action. There is no "FK_EmailTrackingItemNewsletter", only a "FK_EmailTrackingItemNewsletter1" (a query to sys.objects says so, and I have no reason to doubt it :) ).

    Regards,

    Yiannis

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 21, 2013 @ 12:12
    Markus Johansson
    0

    Hi!

    Should not matter as this part of the code have not changed. Can you try in another clean install of Umbraco and see if you have the same problem? What db are you using?

     

    / m

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 21, 2013 @ 12:22
    Yiannis Vavouranakis
    0

    I'm using SQL Server 2008.

    A clean install in a different umbraco instance is not really an option at this point.

    I would have deleted and re-installed the package on the site - however it seems that the package does not appear in the list of installed packages, so I guess I'll have to delete it by hand. 

    If I'm not mistaken, I'll have to

    1. remove all tables with the "ns_" prefix from the database,
    2. delete the newsletterstudio.dll  from the bin folder
    3. delete the entire newsletterstudio folder in umbraco.
    4. edit tinyMCE.config, and dashboard.config to remove references to newsletterstudio.

    Then I can proceed with a new istallation.

    Am I missing something in that list? (apart from the obvious "0. Backup")

     

    Regards
    Yiannis 

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 21, 2013 @ 12:30
    Markus Johansson
    0

    Hi!

    The package, if installed correctly, should show in the list of installed packages and both install/uninstall should work automatic.

    Any way... your list of actions looks good. The config-files for TinyMCE is important - but you'll get errors if there is any issue with them.

    / m 

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 21, 2013 @ 13:39
    Yiannis Vavouranakis
    0

    Unfortunately no cigar...

    I found references to newsletter studio in a few more configs (application.config, umbracoSettings.config, treeIcons.config), plus two folders in umbraco_client/tinyMCE/plugins, and a few entries in language files. I recycles the application pool to force a config re-read, then tried to install newsletter studio from the package repository, however I'm getting the below error.

    It seems that I have a leftover config value somewhere, but I can't for the life of me figure out where.

    System.ArgumentExceptionAn item with the same key has already been added.

    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: An item with the same key has already been added.
       at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at umbraco.cms.businesslogic.packager.Installer.LoadConfig(String tempDir)
       at umbraco.presentation.developer.packages.Installer.startInstall(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.umbraco_developer_packages_installer_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

     

    Regards,
    Yiannis 

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 21, 2013 @ 14:04
    Markus Johansson
    100

    Did you get this error during install? Well, it uses some built in install actions that may effect other files as well. I would start to look in the TinyMCE-config... for dubble values of any kind.

     

    / m 

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 21, 2013 @ 14:16
    Yiannis Vavouranakis
    0

    Well...

    After all this fiddling, I was forced to restore from the backup, because it seems I had broken something in umbraco (media edit would throw a null reference error). However, what I did, was install the database tables manually instead of restoring them from the backup, and then pass in the template (skin) on top. This seems to have done the trick, as I was able to successfully send a newsletter to my (newly created) test list.

    Thank you for bearing with me even though I had not yet purchased a license - I will be doing so promptly though.

    Regards,
    Yiannis 

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 21, 2013 @ 15:30
    Markus Johansson
    0

    Hi!

    Finally! I'm glad to hear that you found a solution! To bad that we did not find the source to the problems. I guess it had someting to do with the FKs.

    No problem Yiannis!

    Just let me know if you need any futher assistans!

    // Markus

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 22, 2013 @ 10:46
    Yiannis Vavouranakis
    0

    Hello again.

    We tried to purchase a license yesterday, but there seems to be an issue with our VAT number, the order form does not accept it as valid, though the official tool by EU at http://ec.europa.eu/taxation_customs/vies/vatResponse.html says it is valid - I've sent an email to support but haven't yet got a reply...

     

    Regards,

    Yiannis

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 22, 2013 @ 10:51
    Markus Johansson
    0

    Thats the tool that is being used by the web service. Could be an issue with the web shop. I'll anwser you questions from the support-email.

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 22, 2013 @ 10:53
    Markus Johansson
    0

    Hi!

    Did not get any email, which address are you using?

  • Yiannis Vavouranakis 38 posts 78 karma points
    May 22, 2013 @ 11:06
    Yiannis Vavouranakis
    0

    Hopefully you can understand my reluctance to disclose my email address on the forum. I sent an email to support yesterday around 15:40 EET (i.e. 12:40 UTC).

    I wish this forum had a "private message" function...

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    May 22, 2013 @ 13:37
    Markus Johansson
    0

    Hi!

    I mean which of our emails? The [email protected]? Please use my email, markus [at sign goes here] enkelmedia.se

     

    // m

Please Sign in or register to post replies

Write your reply to:

Draft