Thread: Parsing error

Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    red flag Parsing error

    Hello, in trying to access admin from a new installation, I get the following error:

    Parse error: parse error, unexpected T_IF, expecting ',' or ';'
    admin/includes/init_includes/init_admin_auth.php on line 9

    Here is a copy of the file init_admin_auth.php

    <?php echo $PHP_SELF
    /**
    * @package admin
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: init_admin_auth.php 3001 2006-02-09 21:45:06Z wilt $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    if (!(basename($PHP_SELF) == FILENAME_LOGIN . '.php')) {
    if (!isset($_SESSION['admin_id'])) {
    if (!(basename($PHP_SELF) == FILENAME_PASSWORD_FORGOTTEN . '.php')) {
    zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    }
    }
    }

    if ((basename($PHP_SELF) == FILENAME_LOGIN . '.php') and (substr_count(dirname($PHP_SELF),'//') > 0 or substr_count(dirname($PHP_SELF),'.php') > 0)) {
    zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    }
    ?>

    Thanks in advance for any help.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Parsing error

    Check the following files

    /includes/configure.php file
    /admin/includes/configure.php file.

    see if the paths to the admin files are correct.

    Remember not to end the path with a forward slash ( / )

  3. #3
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Parsing error

    Hi Bird, I made the changes but no difference.


 

 

Similar Threads

  1. XML parsing error- Canada Post
    By mike_m29 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 27 Apr 2012, 06:17 AM
  2. Parsing error on godaddy in the admin section
    By alterego55 in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2010, 05:16 PM
  3. Canada Post Module XML Parsing Error
    By jhadur in forum Built-in Shipping and Payment Modules
    Replies: 25
    Last Post: 8 May 2009, 06:57 PM
  4. Parsing Error...Help Please.
    By HandcraftedUK in forum General Questions
    Replies: 0
    Last Post: 8 Aug 2008, 12:31 PM
  5. Google checkout - Error parsing XML
    By andyase in forum Addon Payment Modules
    Replies: 2
    Last Post: 1 Oct 2007, 09:34 AM

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