Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

Send keeps reverting to 20 members only

$
0
0

We've got an Umbraco (7.7.4) set up behind an AWS load balancer, SSL offloads at the LB, .lic in the bin folder

In umbracoSettings.config we've set:

<web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false" umbracoApplicationUrl="https://www.FULLDOMAIN.com" disableRedirectUrlTracking="true">

But it will still, at random, drop the licence and limit the send to 20 members.

Any ideas?


Member Login Issue

$
0
0

Hello all.

I've installed Umbraco 7.12.4 (on IIS Express) using Visual Studio Code and things have been going well until now.

Basically, "Member" account creation through the Back Office works correctly. However, none of these accounts can log in, with the following error appearing in Chrome "devtools":

"http://localhost:42507/umbraco/backoffice/UmbracoApi/Authentication/PostLogin 400 (Bad Request)"

I have followed the tutorial on https://our.umbraco.com/documentation/Getting-Started/Data/Members/ and:

  • Created a Member ("test").
  • Created a Member Group ("Registered Users") & assigned the Member.
  • Created a "test page".
  • Under "Public access" for the "test page", added "Role Based Protection" for the Member group ("Registered Users").
  • Defined the "Login" & "Error" pages for the "Role based Protection" applied to the "test" page.

..Yet when I attempt to log in with any Member account, I see "Login failed for user test" & the error in DevTools.

Can anyone enlighten me as to why this is happening? I've followed the tutorials on both our.umbraco and umbraco.tv and simply cannot get this to work. I'm wondering if there is something I have missed out in the steps above.

Thanks in advance for your time.

Preview scheduled publish

$
0
0

Is there any way to preview a scheduled published page?

An issue in mail sending a Contact form Email Template to an email address using MVC

$
0
0

Hi, I'm using the MVC Contact form and I wrote the code for SendEmail in my Controller Action method and I get the mailSettings details from mailSettings. Now I'm unable to send the emails from the deployed cloud website but its working good in my local project. Below is my SendEmail method.

 private int SendEmail(string subject, string mailBody, string toAddress, HttpPostedFileBase file)
 {
        if (toAddress != null)
        {
            Configuration configurationFile = WebConfigurationManager.OpenWebConfiguration("~/web.config");
            MailSettingsSectionGroup mailSettings = configurationFile
                .GetSectionGroup("system.net/mailSettings") as MailSettingsSectionGroup;
            if (mailSettings != null)
            {
                MailMessage msg = new MailMessage();
                msg.IsBodyHtml = true;
                msg.Subject = subject;
                msg.From = new MailAddress(mailSettings.Smtp.From, "My Website");
                msg.Body = mailBody.ToString();
                msg.To.Add(new MailAddress(toAddress));
                if (file != null)
                {
                    string fileName = Path.GetFileName(file.FileName);
                    msg.Attachments.Add(new Attachment(file.InputStream, fileName));
                }
                using (var smtp = new SmtpClient())
                {
                    smtp.Host = mailSettings.Smtp.Network.Host;
                    smtp.Port = mailSettings.Smtp.Network.Port;
                    smtp.UseDefaultCredentials = mailSettings.Smtp.Network.DefaultCredentials;
                    smtp.EnableSsl = mailSettings.Smtp.Network.EnableSsl;
                    var credential = new NetworkCredential
                    {
                        UserName = mailSettings.Smtp.Network.UserName,  // replace with valid value
                        Password = mailSettings.Smtp.Network.Password  // replace with valid value
                    };
                    smtp.Credentials = credential;
                    try
                    {
                        smtp.Send(msg);
                    }
                    catch (Exception ex)
                    {
                        string _errorMsg = ex.Message;
                    }
                    finally
                    {

                    }
                }
            }
        }
        return 1;
    }

And my mailSettings code is

<mailSettings>
  <smtp from="mymail@gmail.com" deliveryMethod="Network">
    <network host="smtp.gmail.com" userName="mymail@gmail.com" password="****" port="587" enableSsl="true" defaultCredentials="false"/>
  </smtp>
</mailSettings>

Please suggest me a good solution.

file upload button

$
0
0

Hi, I have a file upload field in my form, and I was wondering if I could "cache" or something the file before it gets saved to the server. so that the user could upload multiple files at once.

does that make sense?? is it even posible?

Could not retrieve media 0000 from Examine index

$
0
0

Hi there, I'm currently having some trouble with a site we build in Umbraco 7.3.4.

The logs are currently flooded with this message:

Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache - Could not retrieve media 108450 from Examine index, reverting to looking up media via legacy library.GetMedia method

*media ID changes for every line

It has a lot of images in a specific folder within the Media section.

So far, I've located the node which is using a certain mediaID (I pick one from the logfile). The media items is present on that content-node. It also exists within the Media section, and all files are in place.

At this point, I'm out of idea's. The only thing I can think of, is a timeout occuring when the indexer is trying to retrieve media items. And therefore doesn't include these items in the index.

What could cause this? Has anybody any idea?

Exporting large media library in package

$
0
0

I have Umbraco set up on a staging environment and am trying to migrate everything to the production environment. I've gotten everything moved over via packages except the Media Library.

The Media Library has 400 folders and the package file is 300MB. I've been trying to install the package on the production server. It uploads but the upload progress % goes up to about 10 or 12 then resets at 0%.

Is there any alternative to migrating the Media Library? I can FTP the files to the server in the /Media folder but Umbraco won't recognize them in the Media Library.

Any help would be very appreciated.

Build Error

$
0
0

I get a build error from the project that was generated by: UaaS.cmd

Severity Code Description Project File Line Suppression State Error The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?) C:\Umbraco\Test1\UmbracoTest.Web\Umbraco\PartialViewMacros\Templates\Gallery.cshtml 40


LeBlender v1.0.9.2 Data Type disappeared

$
0
0

I've upgraded Umbraco from 7.3.1 to 7.10.4 in several steps, and the upgrade seems to work as it should.

Then I've installed LeBlender version 1.0.9.2 via Nuget packages for solutions. After defining my data type properties, they have disappeared the next time I open them, and nothing works.

See dropdown menu in the upper right corner.

One solution is probably to uninstall version 1.0.9.2, and install version 1.0.8.4 instead, I suppose. But does anyone have a solution for datatype to version 1.0.9.2?

enter image description here

enter image description here

Pageination code not working

$
0
0

Hello all,

I hope someone can help, I'm trying to add pageination code to my website I've added the following code;

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.GuideList>
    @using ContentModels = Umbraco.Web.PublishedContentModels;
    @{
    Layout = "Master.cshtml";

    int pageSize = 3; // How many items per page
    int page; // The page we are viewing

    /* Set up parameters */

    if (!int.TryParse(Request.QueryString["page"], out page))
    {
    page = 1;
    }

    /* This is your basic query to select the nodes you want */

    var nodes = Model.Content.Children.Where(x => x.DocumentTypeAlias == "GuideDocument").OrderBy("CreateDate desc");

    int totalNodes = nodes.Count();
    int totalPages = (int)Math.Ceiling((double)totalNodes / (double)pageSize);

    /* Bounds checking */

    if (page > totalPages)
    {
    page = totalPages;
    }
    else if (page < 1)
    {
    page = 1;
    }

    }



    <div class="body-section">
        <div class="body-container w-container">
            <h1 class="home-page-heading">@Model.Content.Name</h1>

              @foreach(var item in nodes.Skip((page-1)*pageSize).Take(pageSize))
    {

            foreach(var pDocument in Model.Content.Children())
            {
            var documentPicker = pDocument.GetPropertyValue<IPublishedContent>
                ("documentPicker");
                var linkPicker = pDocument.GetPropertyValue<string>
                    ("UrlPicker");

                    <div class="faq-wrapper">
                        <div class="guidandpolicies-wrapper">
                            <div class="w-row">
                                <div class="w-col w-col-2">


                                    @{
                                    if (documentPicker != null)
                                    {
                                    <a href="@documentPicker.Url" target="_blank" class="document-link-block w-inline-block"><img src="/images/policies_image_1policies_image.png"></a>
                                    }else if(!string.IsNullOrEmpty(linkPicker)){
                                    <a href="@linkPicker" target="_blank" class="document-link-block w-inline-block"><img src="/images/policies_image_1policies_image.png"></a>

                                    }
                                    }



                                </div>
                                <div class="w-col w-col-10">
                                    <div class="guidanceandpolicies-info-div">
                                        <h5 class="gnp-title">

                                            @{
                                            if (documentPicker != null)
                                            {
                                            <a href="@documentPicker.Url" target="_blank" class="document-link-text">@pDocument.GetPropertyValue("documentTitle")</a>
                                            }else if(!string.IsNullOrEmpty(linkPicker)){
                                            <a href="@linkPicker" target="_blank" class="document-link-text">@pDocument.GetPropertyValue("documentTitle")</a>
                                            }
                                            }


                                        </h5>
                                        <div class="gnp-document-info">@pDocument.GetPropertyValue("documentDescription")</div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
             }       
         {
        if (totalPages > 1)
        {
            <div class="center">
            <div class="pagination">
                    @if (page > 1)
                    {
                        <a href="?page=@(page-1)">Prev</a>
                    }
                    @for (int p = 1; p < totalPages + 1; p++)
                    {
                    <a href="?page=@p" class="@(p == page ? "active" : string.Empty)">@p</a>
                    }
                    @if (page < totalPages)
                    {
                        <a href="?page=@(page+1)">Next</a>
                    }
            </div>
            </div>

                    }
                    }
                    }
        </div>
    </div>

But for some reason it doesn't seem to work? I dont even get any error messages. The page loads but now it just doesn't show any body content.

Am I missing something?

Thanks

Azure Deployment returns Server Error in '/' Application - Help?

$
0
0

I am attempting to deploy an Umbraco 7 website to an Azure server that I developed locally in Visual Studio. I used Visual Studio to publish the site to Azure and it seemed to work. However when I attempt to access the website I get a Compilation Error.

Server Error in '/' Application.

Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0246: The type or namespace name 'createsend_dotnet' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 2:  using System.Collections.Generic;
Line 3:  using System.Web.Mvc;
Line 4:  using createsend_dotnet;  -- This is the line that threw the error.
Line 5:  using USNStarterKit.USNModels;
Line 6:  using Umbraco.Web;

Source File: d:\home\site\wwwroot\App_Code\USNControllers\USNNewsletterSignupSurfaceController.cs    Line: 4

Does this issue seem familiar to anyone? I have searched around but have been unable to find anything. Please let me know if you have any ideas or questions!

Michael Valente

Is there a way to get the translated versions of a page from the original page?

$
0
0

I'm looking into creating a tool to automatically convert all internal links to link to the translated versions of those links for their respective languages. Is there currently a way to find the translated version of the page from the original page? If not, it would be a nice feature enhancement, perhaps running it through umbraco's relationship api.

Upgrade from 4.0.2.1 -> upgrade path and potential issues

$
0
0

I inherited a site. Yeah, its made with Umbraco and even worse with ASP... never used ASP. Ah well, its code and database, I'll figure it out. ;)

I will need to get back on this, but my intention is to get the site up to date and during the upgrade process I may stumble over a number of problems, but the main concern is basic static page content, nothing fancy, just text and images. Starting off following this path unless I see any issues related to the versions: https://our.umbraco.com/documentation/Getting-Started/Setup/Upgrading/version-specific

I will of course find out more details about the site, I know you will ask, but rest assured I have done these things before and I am not overly worried since Umbraco is alive and well, with continued development and what seems like a great community support.

The most relevant question right now is do I risk having to redo the site during upgrade or will the pages content remain in place? The layout is rather simple, but I need to get a grip of it of course. Styles/Themes may have been abandoned over time.

Anyone of you familiar with this task?

May the force be with you. Now to find out how I set up an ASP testing environment, tips? I am used to www.apachefriends.org/index.html but don't have much experience with IIS...

Multiple Navbars

$
0
0

Hi!

I have a scenario where I have a main top navigation and a footer navigation(privacy, copyright).

What i would like is in the content section to have a mainNav and a footerNav node. Under these nodes i would like to build the navs.

Example.

topNav -- home

-- about us

-- contact

footerNav

-- privacy

-- copyright

Ofcourse Home should be the home page when landing on the website. When using the about us item you should go to www.site.com/about-us instead of www.site.com/topNav/about-us.

Any ideas how to go about it this way?

Umbraco content items with image not displayed

$
0
0

An item that have a property Media picker is not shown on the result page if we select image on create event! But if we leave the field empty and create it like this it is shown! I'm currently working on Umbraco 7.11.1 version!


Remove backoffice installed package not visible under packages in backoffice

$
0
0

Hi guys

I've run into an issue where I want to upgrade Translation Manager from Jumoo but, when I go to "Packages" in backoffice to uninstall it as instructed in release notes of a new version of the package, the package is nowhere to be found.

What is the process of deleting a package and removing every trace of it, so that I can install the newest version of the package?

When trying to install the package via nuget without having removed the package I get an error saying something about "umbraco-api-translationsSettings"...

I hope you are able to help me.

Thanks in advance.

/ Allan Lange

Umbraco 8 - Courier

$
0
0

Hi,

can you let me know if Courier will be available for Umbraco 8?

Thanks

Jon

RenderMvcController and constructor?

$
0
0

It seems my constructor is never called, I'm I doing something wrong? I got it working in a surfacecontroller, should I just use that instead?

Code example:

ExampleController : RenderMvcController{
  private readonly IExampleService exampleService;

  public ExampleController(IExampleService exampleService){
    this.exampleService  = exampleService;  
  }

  public override ActionResult Index(RenderModel model){
    return base.Index(createobjectmodel);
  }
}

Thanks!

ExceptionMessage: Circular component dependency detected: Umbraco.Web.UmbracoContext

$
0
0

Hi everyone,

I'm using this Our.Umbraco.IoC package for dependency injection with AutoFac. This package resolves all Umbraco dependencies for us, so we can take care only about our stuff.

But I'm getting circular dependency exception from time to time about UmbracoHelper constructor injection. I can't figure out what is the problem?

Here is a detailed explanation: https://github.com/Shazwazza/Our.Umbraco.IoC/issues/7

Thanks for any suggestions!

Some newsletters have unsubscribe issues

$
0
0

On some newsletters I'm getting this error when people click on the [unsubscribe] link: "Could not remove the e-mail. It's either already removed or something is wrong with the configuration. Please contact the web site administrator." Other newsletters work fine, sent to the same mailing list.

Does anyone have a clue as to where to start looking to fix this?

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>