Announcement

Collapse
No announcement yet.

In version 8, my customers get a 'outside of scope' message when clicking on a link.

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

    In version 8, my customers get a 'outside of scope' message when clicking on a link.

    When account customer logs in, everything is fine unless the user goes to home page then clicks through to another page.

    They then receive the following error: -

    A General Script Error Occurred
    --------------------------------------------------------------------------
    Error: The requested file (acatalog/,<whatever_page>.html) is outside
    the scope of the script. If you believe the requested page should be
    served please contact the site operator.
    --------------------------------------------------------------------------
    Press the Browser back button and try again or contact the site owner


    The problem is caused by the links including a reference to the site folder that should not be there.
    There is a workaround, but it requires editing one of the scripts.

    Please go to your site folder* (it will be called 'Site1' if there is no other site within the software, otherwise it will be the site folder corresponding to the current site) and open the file 'AccountScript.pl' in a plain text editor (such as 'Notepad' with word wrap switched off).

    Search for:-

    Force BASE HREF

    you should see: -

    #
    # Force BASE HREF to a valid value to avoid broken images
    #

    Immediately before these three comment lines insert:-

    #
    # Replace PRODUCTPAGE=acatalog/my.html by PRODUCTPAGE=my.html
    #
    $sHTML =~ s/PRODUCTPAGE=acatalog\//PRODUCTPAGE=/gi;

    It should then look like: -

    #
    # Replace PRODUCTPAGE=acatalog/my.html by PRODUCTPAGE=my.html
    #
    $sHTML =~ s/PRODUCTPAGE=acatalog\//PRODUCTPAGE=/gi;

    #
    # Force BASE HREF to a valid value to avoid broken images
    #

    Save the file and close the program.

    Once you have done this update the web site and the section links for logged in customers on the brochure home page will no longer include 'acatalog/' which was the cause of the problem.

    * Depending on the installation option chosen or operating system used, the 'Site' folder can be found in either 'My Documents', 'Documents', 'Shared Documents' or 'Program Files' in the folder 'Actinic vX\Sites\' (with X replacing the version number).

    NOTE: All versions after v11.03 will have a file path of 'C:\Program Files\SellerDeck xxxx'.
Working...
X