Announcement

Collapse
No announcement yet.

PHP Parse errors

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

    PHP Parse errors

    Im hoping one of you php wizkids can help pointme in the right direction, i am upgrading a V8 site and all seems well except for apparent coding errors.

    i have the following code and wondered if anyone can spot the mistake, if there is one

    Code:
    <actinic:variable name="CatalogURL" /><actinic:block php="true">echo Ref2file('<actinic:variable name="ProductID" />');</actinic:block>
    any help would be much appreciated

    D

    #2
    Use

    <actinic:variable name="ProductID" encoding="perl" selectable="false" />

    and I've no idea where the Ref2file function is defined.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks norman will give it a try

      the ref2file is a Gabe thing, this is an empty layout, that generates rss feeds from the catalogue best sellers and new product listing

      D

      Comment


        #4
        Thanks again Norman, works like a treat

        i use it here http://kitesrus.co.uk/acatalog/test/..._Products.html

        D

        Comment


          #5
          Have you tried clicking on the green arrows?

          OK. The forum has shortened the link but if you hover over it you'll see a fatal error message.

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            oooh mike thanks

            i checked it generated the feed, but not the links - typical, ok so the parse error is fixed and i need to do some work on the other bit.

            weres gabe when you need him

            D

            Comment


              #7
              oh dear

              I think i broke something, or v9 did, weres them sections gone?

              D

              Comment


                #8
                v9 did.

                its php support is sketchy, as i'v found. there are plenty of oddities.

                ref2file is a fundtion that takes a section id reference and converts it to its filename, something that actinic cannot do.

                Comment


                  #9
                  Hi Gabe

                  I know, i have given up for the time, i need to swap the sites over, well i want to, so will revisit this bit sometime soon, i have hidden the rss feeds for now

                  D

                  Comment

                  Working...
                  X