Developer forum

Forum » CMS - Standard features » "No layout selected for website" when sending email

"No layout selected for website" when sending email

Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Hi there.

I am having some trouble with sending marketing emails after updating to 9.6.7 from 9.4.11.
We have 3 sites under our solution and we can send an email from one of them but not the other two.
When previewing the email under the content tree it looks correct but when previewing in the marketing part, it gives us an error "No layout selected for website".

I already checked the website settings and a template is set for all websites, also for the email (page and paragraph).

Can you give me any tips on what mistmatch to look for?

 

 

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

HI,

Ensure the permisions on your content for user you login is not lost after upgrading, area-domen settings are available if was set up. Actually, preview in email should be OK if it can be done in content via Show/Tool-Preview features as you have written.  I've tested upgrade my test environment from last DW94 to last DW96 and was not able to reproduce it. Please, share URL to your solution to have extra research if you still have the issue after adjusting. 

BR, Oleg QA  

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Hi again.

I looked at permissions and did not find anything.

However, I found out that when I log into the admin on one domain I can only send email from that domain and not the other two. 

Is this a bug or normal behaviour ?

 

 

 

 

marketing_domain.PNG
 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Asdis,

I was able to reproduce the issue on my test environment based on last DW9.7 as well, TFS 70125 has been created against the bug. It will be fixed in upcoming DW release. Thanks for observing.

BR, Oleg QA 

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Asdis

The problem regarding #70125 "No layout selected for website" in email page from site-domain other than current one has now been resolved in Dynamicweb version 9.7.2 and 9.6.15

To upgrade please choose this version from download:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Thank you :) 

 
Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

The assignment related to the topic of this thread was put on hold a while ago and now recently I have been following up on it. I have read through the abandoned cart documentation and followed all of the steps correctly and everything works except for sending the actual email. Let me list down what I have been trying and what and how things have been failing.

When the scheduled task is executed by the scheduler both on our staging and live environment, the email is missing the template and the user only sees the text "No layout selected for website" (see attached image). However when I manually execute a scheduled task (only tried this on our staging platform), the layout is working correctly.

Also when I execute the "Preview" functionality both on staging and live I get the email with the layout working correctly.

The version of DW currently in use is 9.8.10


Logs after manual execution

2021-01-19 10:32:30.8712|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: task execution started
2021-01-19 10:32:41.0277|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: Method Dynamicweb.EmailMarketing.EmailScheduleHandler.ExecuteRepeating returned: Nothing
2021-01-19 10:32:41.0277|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: task execution finished


Logs after automatic execution

2021-01-19 10:30:03.1429|INFO|ScheduledTasks|TaskExecute has been activated.
2021-01-19 10:30:03.1429|INFO|ScheduledTasks|Task 'Abandoned Cart' with ID '8' execution is started
2021-01-19 10:30:03.1429|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: task execution started
2021-01-19 10:30:03.2054|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: Method Dynamicweb.EmailMarketing.EmailScheduleHandler.ExecuteRepeating returned: Nothing
2021-01-19 10:30:03.2054|INFO|ScheduledTasks|Task 'Abandoned Cart' ID=8: task execution finished
.....
2021-01-19 10:30:03.3461|INFO|ScheduledTasks|Successfully executed all 6 tasks; time spent: 0,205 s


The setup for the email


The html of the email when it fails

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><span
    style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0; mso-hide:all;"></span><img
    src="http://staging-ellingsen.hysing.is/Admin/Public/EmailMessaging/MessageTracker.ashx?MessageId=459&amp;RecipientId=5333444"
    style="position: absolute; height: 1px; width: 1px; top: 0; left: 0" alt="">No layout selected for website

 


Please let me know if you need any more information 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I think it is because your page with the abondoned cart is unpublished.

So when not logged into the backend, which you are when previewing, no one has access to the page. Also not the scheduled task...

Votes for this answer: 1

 

You must be logged in to post in the forum