+ Reply to Thread
Results 1 to 2 of 2

Thread: Moved to new server - Fatal Error Message

  1. #1
    Client
    Join Date
    Jan 2009
    Location
    Bedford UK
    Posts
    9
    Squirrelcart version
    v2.6.3

    Moved to new server - Fatal Error Message

    Have just moved SC ver 3.1.0 to a new sever. The back-end has installed OK and appears to be working Ok but the hgome page no longer loads and shows the following message:
    Fatal error: Cannot redeclare restock() (previously declared in /home/fhlinux007/d/digitalmicroscopecamerasonline.co.uk/user/htdocs/squirrelcart/functions/common/restock.func.php:26) in /home/fhlinux007/d/digitalmicroscopecamerasonline.co.uk/user/htdocs/squirrelcart/functions/storefront/common/restock.func.php on line 82

    Any ideas what has gone wrong? Would be grateful for any pointers to sort it out.

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Fatal error: Cannot redeclare restock() (previously declared in /home/fhlinux007/d/digitalmicroscopecamerasonline.co.uk/user/htdocs/squirrelcart/functions/common/restock.func.php:26) in /home/fhlinux007/d/digitalmicroscopecamerasonline.co.uk/user/htdocs/squirrelcart/functions/storefront/common/restock.func.php on line 82

    Any ideas what has gone wrong?
    Yes...

    This indicates the error occurred on line 82 of squirrelcart/functions/storefront/common/restock.func.php:
    ... in /home/fhlinux007/d/digitalmicroscopecamerasonline.co.uk/user/htdocs/squirrelcart/functions/storefront/common/restock.func.php on line 82
    The error is:
    Cannot redeclare restock()
    It is trying to declare a function that has already been declared (setup). It is doing this because you have 2 copies of the restock.func.php file in two different directories.

    This file does not belong there in v3.1.0 or any other version:
    squirrelcart/functions/storefront/common/restock.func.php

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts