Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Location
    Cheyenne WY
    Posts
    25
    Plugin Contributions
    0

    Default Error when adding a catagory

    Hey all, I just got this error when adding a catagory

    Array ( [categories_id] => 12 [admin_id] => 1 )
    Warning: Cannot modify header information - headers already sent by (output started at /home/content/b/r/e/my_site/html/admin/categories.php:168) in /home/content/b/r/e/my_site/html/admin/includes/functions/general.php on line 21

    it worked fine until i added admin_restrict 1.0.8 last night, and the only other thing I have done today is add a test admin, and product attibutes, I noticed the problem when I went to the catagories and try to select it and it would not go into the subcatagories, so I added a new catagory and that when I get this error. It is weird though because if i click the back button a couple of time the catagory shows up.

  2. #2
    Join Date
    Dec 2008
    Location
    Cheyenne WY
    Posts
    25
    Plugin Contributions
    0

    Default Re: Error when adding a catagory : problem with admin profile v1.0.8

    never mind I found it.

    Before installing anything edit the file install_admin_profiles.sql all the way to the end :
    Replace

    #
    # Create table structure for table `admin_allowed_categories`
    #

    DROP TABLE IF EXISTS `admin_allowed_categories`;
    CREATE TABLE `admin_allowed_pages` (
    `categories_id` int(11) NOT NULL default '0',
    `admin_id` int(11) NOT NULL default '0'
    ) TYPE=MyISAM;

    with this:

    #
    # Create table structure for table `admin_allowed_categories`
    #

    DROP TABLE IF EXISTS `admin_allowed_categories`;
    CREATE TABLE `admin_allowed_categories` (
    `categories_id` int(11) NOT NULL default '0',
    `admin_id` int(11) NOT NULL default '0'
    ) TYPE=MyISAM;

    Second thing :
    For Zen Cart 1.3.8a version if you use the pre-patched files in the folder named "extras - patched files for ZC1.3.8".

    Edit the file categories.php line 168 or search for print_r($sql_allow);
    and comment the line out like this
    //print_r($sql_allow);
    or delete it.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Error when adding a catagory

    Just for clarity, that's not actually Admin Profiles (which only goes up to version 1.0.7), but Admin Users - Restrict Product Categories, which was a brave but flawed attempt to extend Admin Profiles.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v150 Error when changing to a catagory
    By sam123jo02 in forum General Questions
    Replies: 2
    Last Post: 26 Feb 2012, 12:40 AM
  2. Error when adding 13 items
    By teebo in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2008, 06:56 PM
  3. Error when adding item to cart
    By Sabine_in_MG in forum General Questions
    Replies: 1
    Last Post: 29 Apr 2008, 11:26 PM
  4. Error recieved when there is only 1 product in catagory
    By Rowan_H in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 23 Sep 2006, 11:22 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