Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Location
    Abbottabad, Pakistan
    Posts
    60
    Plugin Contributions
    0

    Default PHP Fatal error: Cannot redeclare check_page()

    Hello,

    I recently upgraded a zen cart website from 1.3.8 to 1.5.6c. Everything was working but now I started getting 500 error when I try to login to the admin. When checked logs I get

    [30-Jul-2019 18:08:33 UTC] PHP Fatal error: Cannot redeclare check_page() (previously declared in /home/*****/public_html/usa/*****/includes/functions/admin_access.php:16) in /home/****/public_html/usa/*****/includes/functions/admin_profiles.php on line 76

    [30-Jul-2019 18:08:33 UTC] Request URI: /usa/s3cur3/, IP address: 182.180.14.3
    --> PHP Fatal error: Cannot redeclare check_page() (previously declared in /home/*****/public_html/usa/*****/includes/functions/admin_access.php:16) in /home/*****/public_html/usa/*****/includes/functions/admin_profiles.php on line 76.

    Can anyone help?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: PHP Fatal error: Cannot redeclare check_page()

    Did you previously have the Admin Pages plugin installed? That was, to my remembrance, the basis for the admin-page structure used by Zen Cart since 1.5.0.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Fatal error: Cannot redeclare check_page()

    /admin/includes/functions/admin_profiles.php isn't part of original Zen Cart files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 5 Jan 2017, 04:43 PM
  2. Replies: 14
    Last Post: 4 May 2012, 10:30 AM
  3. PHP Fatal error: Cannot redeclare class upload
    By cshart in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Dec 2011, 06:33 AM
  4. PHP Fatal error: Cannot redeclare class cache
    By snk429 in forum General Questions
    Replies: 15
    Last Post: 16 Feb 2011, 10:08 PM
  5. PHP Fatal error: Cannot redeclare class order
    By sketchhgal in forum General Questions
    Replies: 7
    Last Post: 25 Jun 2010, 09:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR