Announcement

Collapse
No announcement yet.

Actinic generated paths and the cgi-bin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Actinic generated paths and the cgi-bin

    I haven't used Actinic before and am currently working on a project for a client and having a few problems. I'm guessing this is an overall setup problem with the site as it seems to manifest in a few different ways. I'll explain one example below.

    Using this code...

    Code:
    <img src="<actinic:variable name="ProductImageFileName" />" alt="<Actinic:Variable Name="ProductName"/>" text="<Actinic:Variable Name="ProductName"/>" width="150" />
    ...inside a...

    Code:
    <actinic:variable name="ProductList" />
    Everything works fine and I get product images next to an image. If I enter an invalid character in a quantity box and hit add to cart I end up on a page in the cgi-bin but with no images.

    On the product list page the image tag has a src property of "13330Q06.jpg" which obviously finds it inside the acatalog folder. Inside the cgi-bin the src property is the same but of course the image cannot be found within that folder.

    So actinic is forming the links to things not seeming to take the cgi-bin into account. I tried...

    Code:
    <img src="/acatalog/<actinic:variable name="ProductImageFileName" />" alt="<Actinic:Variable Name="ProductName"/>" text="<Actinic:Variable Name="ProductName"/>" width="150" />
    ...but it started doing some very weird things and linking to the local pathname on my development machine.

    I've had the same issues with images linked in the CSS for the site and even the actinic Javascript includes. I've fixed it up to this point with a horrible bodge by sticking any files I need on a totally different server and linking to them absolutely on the other domain which seems to make Actinic ignore them. I can't reuse this bodge for the product images though as obviously it needs to be dynamic so the customer can add their products etc.

    I'm hoping this is a simple configuration error on my part. Any help would be greatly appreciated.

    I'm using Actinic Designer 9.0.5.0.0.0.JHZA and the host is Actinic themselves.

    Many thanks, Steve

    #2
    Are all cgi-bin pages not including images or just when you have an add to cart error message?. Usually cgi-bin not including images would be if you have not correctly added the Actinic header code which includes a base reference tag for the acatalog/store folder.
    Peblaco

    Comment


      #3
      An URL of a problem page would help a lot.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Originally posted by peblaco View Post
        Are all cgi-bin pages not including images or just when you have an add to cart error message?. Usually cgi-bin not including images would be if you have not correctly added the Actinic header code which includes a base reference tag for the acatalog/store folder.
        Thanks peblaco. I added...

        Code:
        <base href="http://www.domain.com/acatalog/" />
        ...into the header however now the section links point to /acatalog/acatalog/

        I may be missing something absolutely trivial here as I overwrote the entire code Actinic started with with a different layout. Not the best idea in hindsight maybe.

        Comment


          #5
          Originally posted by NormanRouxel View Post
          An URL of a problem page would help a lot.
          Will just remove the base href and reupload so you can see the problem in action.

          Comment


            #6
            Don't add the basehref in yourself, there's a specific layout to do that, use that. Probably best that you license a new site and check the head area out and have yours the same as that, it's not an area you want to be messing around with too much with actinic, leave it well alone.

            Comment


              #7
              Originally posted by leehack View Post
              Don't add the basehref in yourself, there's a specific layout to do that, use that. Probably best that you license a new site and check the head area out and have yours the same as that, it's not an area you want to be messing around with too much with actinic, leave it well alone.
              Perfect, just needed the proper Actinic base href to sort it all out.

              Code:
              <actinic:variable name="BaseHref" />
              Thank you all for your quick help.

              Comment


                #8
                HI guys

                Im having this same problem with a new site; www.ecowoodburners.com

                Ive followed the tips in this and may other threads but cant seem to fix it, images and css are missing in the cgi-bin, all links broken too, seems like a base href problem for sure

                I have reset all basehref mentions in the library to factory settings and am now stuck, the code seems to be correct as well,

                If anyone has any ideas that would be fantastic, maybe i can get some sleep as this site is live!

                Cheers guys
                Barry

                Comment


                  #9
                  Looks like someone has been screwing around in the head area of the template, the meta tags are all screwed up on the pages in question. If you don't have any strange characters such as " or ' in your meta tags, then i'd license a new site and take a look in the head area and get yours back to that state. The head area is not an area to mess with or touch.

                  You may also be able to do a compare in the design library (right click) to compare the template against the original. If it's your own template then open up an existing actinic template and note how it should be done (just copy paste a good head area into yours is probably the best thing to do, bearing in mind anything extra you've added also).

                  Comment


                    #10
                    Hi Lee

                    Thank you! once again you save the day amigo

                    i removed the offending meta keywords and description and everything works fine.

                    I cant see what the problem was with what I was doing though, here is the offending code (and ive done this on lots of other sites without issue)

                    <meta name="description" content="Ecological stoves, burners, fireplaces and accesories at Eco Wood Buners.com with <actinic:variable name="PageTitle" /> in Spain." />
                    <meta name="keywords" content="eco, ecology, stoves, burners, fireplaces, <actinic:variable name="PageTitle" />, wood, multi fuel, />

                    All i can think of is that using the variable like that caused the problem, but i always do this without problems before, Mmmmm....

                    Ive left the variable in the <title> tag and thats fine, strange

                    Thanks Lee, much obliged

                    Comment


                      #11
                      Originally posted by Barry View Post
                      <meta name="description" content="Ecological stoves, burners, fireplaces and accesories at Eco Wood Buners.com with <actinic:variable name="PageTitle" /> in Spain." />
                      <meta name="keywords" content="eco, ecology, stoves, burners, fireplaces, <actinic:variable name="PageTitle" />, wood, multi fuel, />
                      The second line has no closing ", perhaps that's the issue?

                      PS - you have put buners not burners in the tag.

                      Comment


                        #12
                        That was it Lee, the missing "

                        fantastic, thanks very much for all the help, kudos too for spotting the deliberate mistake

                        Regards
                        Barry

                        Comment


                          #13
                          No problem Barry, HTH.

                          Comment

                          Working...
                          X