Error: “An error has occurred in the script on this Page”

Error: “An error has occurred in the script on this Page” ?

Support Team Asked on December 14, 2017 in Sage.
Add Comment
  • 1 Answer(s)
    • Displays Error: “Script Error Line 26 C:\[Location]\what’s new” appears when opening the program
    • Displays Error: An error has occurred in the script on this Page”
      Line: [Line Number]
      Char: [Character]
      Error: Object doesn’t support this property or method: ‘PAWWeb.HostApp’
      Code: 0
      URL: [Directory/WhatIsNew/[Location].htm]
      Do you want to continue running scripts on this page?
    • Receive error at following actions:
      • Opening the program
      • Clicking on Select for Payroll and selecting filter criteria
      • Selecting Maintain, [maintenance window]
      • Accessing WebSync Wizard
      • Selecting Services, Credit Card Processing
    • Cannot use the Close button on the What’s New splash screen
    • Script error cannot display opening program
    • Script error on What’s New Page
    • Script error on What’s New Window
    • This page can’t be displayed
    • Page cannot be displayed


    • The latest Service Release was not installed
    • Using a version of Internet Explorer that is not supported
    • Program not installed in Program Files (x86) directory on a 64-bit computer
    • Invalid program path files
    • Damaged or incomplete installation
    • User Account Control (UAC) settings are set too high
    • Opening Select for Payroll Entry

    Note: If you are also seeing the error “Assertion Failed: System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {22743F12-6056-4120-A3FE-98200361EF91} failed due to the following error: 80131040.” after going through the Script Error,.

    Section I: Install latest Service Release

    1. Open Sage 50—U.S. Edition
    2. Select Services, Check for Updates, and then select Check Now
    3. Select Download
    4. Close Sage 50
    5. Service Release will now install
    6. Verify that you get no errors when opening Sage 50

    Section II: Sage Advisor

    1. Open Sage 50
    2. Select Help
    3. Select Sage Advisor Settings
    4. Clear Show the Setup Advisor on-screen assistance box
    5. Click OK
    6. Close Sage 50 for the changes to take effect
    7. Open Sage 50
    8. Open a Maintenance screen and verify that you no longer get an error

    Section III: Install on a 64 bit computer

    Note: If you have a 64 bit computer, you will need to verify the program is installed in the Program Files (x86) directory. The program path for example should look like this: PROGRAMPATH=C:\PROGRA~2\Sage\PEACHT~1\.

    1. To check the current installed program path
    2. If your program path does not look similar to the sample above, uninstall the program
    3. Reinstall the program, being careful to select the Program Files (x86) directory for the program files

    Section IV: Damaged or incomplete installation

    1. Close Sage 50
    2. Browse to the program path;
    3. Rename PTToday folder to OLDPTToday
    4. Rename ProductServices folder to OLDProductServices
    5. Run Repair
    6. Disable any anti virus and reinstall the latest Service Release;
    7. Verify that Sage 50 opens without error.

    Section V: Disable User Account Control

    1. Disable UAC;
    2. Verify that you no longer receive the error and that you can pay multiple employees

    Section VI: Add to Compatibility View Settings

    1.  In Internet Explorer go up to Tools and then down to Compatibility View Settings
    2.  Add

    Section VII: Add to Trusted Sites

    1. In Internet Explorer go up to Tools and Select Internet Options
    2. Click Trusted Sites
    3. Click Sites and then click Add
    4. Add and
    5. Click Close
    6. Click Apply and then click OK

    Section VIII: Rename USERPREF.DAT

    Section IX: Internet Explorer not supported

    1. Install supported version of Internet Explorer
    2. Consult IT Technician for assistance


    Note: If you are still getting the error, you can disable the What Is New information page from opening when you log into your company.

    1. Open Registry Editor.  Press Windows+R keys, type regedit, and then click OK
    2. Browse to the top to File and then down to Export, and save a backup somewhere you will remember.
    3. Browse to HKEY_CURRENT_USER\Software\Peachtree\Version\[Release Number]\One Time Messages
      • Release 2017: 24
      • Release 2016: 23
      • Release 2015: 22
      • Release 2014: 21
      • Release 2013: 20
    4. Double-click WhatIsNew, and then change Value data field to 1
    5. Verify that you no longer receive the error message
    6. If the error message comes back after installing an update, it is due to value of registry reset back to 0; the registry key will need to be updated again

    Note: If you are using the workaround for the registry and they are on a terminal server, the registry change must be made on each profile.

    Note: If there are script errors in What’s New, the WebSync Wizard will not function, and there will be no ability to access Services, Credit Card Processing.  Disabling the WhatIsNew key will not restore these functions, but only suppress the script errors that occur when opening Sage 50.

    Source: Sage Community forums.

    Disclaimer: Sage Accounting Solution is an independent provider of Sage Related services and is not affiliated with Sage.

    See More: Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Sage issue to ensure minimal downtime and continue running your business. First try to resolve the issue yourself by looking for a resolution described below. If you are experiencing too many issues, you may want to more info Call Sage Tech Support Number


    Support Team Answered on December 14, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.