Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default Can't seem to edit new products?

    Hi

    Weird thing happening with my ZC store. For some reason when I add new products, I can't edit them?

    I can go into existing products and edit them fine. But anything new that I add does not let me edit it. When I click edit it, I get a blank product screen. It's the same ID number. So if I put all the information back in it will update the product, but I can't make adjustments to products as it just shows blank fields.

    I know this is hard to diagnose because it's behind the admin wall. But any ideas?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can't seem to edit new products?

    See if post #6 applies to your editing issues ...
    http://www.zen-cart.com/forum/showthread.php?t=153143
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default Re: Can't seem to edit new products?

    Nope 'fraid not. Both those things are fine otherwise on my site.

    Still can't seem to work it out. I can create and edit categories fine. It's weird.

  4. #4
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Can't seem to edit new products?

    1) anything showing up in your /cache older?

    2) Have you recently added any new add-ons

    3) Have your hosts changed anything on the server recently
    Webzings Design
    Semi retired from Web Design

  5. #5
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default Re: Can't seem to edit new products?

    Hi

    In my Cache folder I have lots of debug files. An example file name would be myDEBUG-adm-1309940535-874917.log

    The contents are the same in all:

    [06-Jul-2011 09:22:15] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/*****/public_html/******/includes/classes/object_info.php on line 29
    [06-Jul-2011 09:22:15] PHP Warning: Variable passed to each() is not an array or object in /home/******/public_html/**********/includes/classes/object_info.php on line 30

    and the contents of object_info.php:

    PHP Code:
      class objectInfo {



    // class constructor

        
    function objectInfo($object_array) {

    //this line should be added, but should be tested first:

    //      if (!is_array($object_array)) return;

          
    reset($object_array);

          while (list(
    $key$value) = each($object_array)) {

            
    $this->$key zen_db_prepare_input($value);

          }

        }

      }

    ?> 
    Any help?

  6. #6
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default Re: Can't seem to edit new products?

    oh and recently my host changed my account to a new server. The IP changed, but all my sites appear to be working otherwise.

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

    Default Re: Can't seem to edit new products?

    Quote Originally Posted by wizer View Post
    [06-Jul-2011 09:22:15] PHP Warning: reset() [function.reset]: Passed variable is not an array or object in /home/*****/public_html/******/includes/classes/object_info.php on line 29
    That message is telling you that data passed from *other* scripts in your site to the object_info class is in the wrong format. Usually empty values.
    That commonly happens when pulling data from the database but related pieces are missing, such as things like countries when trying to match up address pieces. It usually happens when drawing info retrieved from database, not from processing submitted data on a page. But, it's impossible to guess what addons you might have which are interrupting normal operation.

    Quote Originally Posted by wizer View Post
    oh and recently my host changed my account to a new server. The IP changed, but all my sites appear to be working otherwise.
    That's VERY important information.
    Files could have been damaged in the transfer.


    Most efficient place to start: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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. Can't seem to edit products
    By GigiCS in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 11 May 2011, 01:34 AM
  2. Can't edit products
    By stevensmedia in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 4 May 2011, 08:57 PM
  3. Truly randomize New Products list? (they only seem randomized within a small group)
    By Yuchant in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Oct 2007, 01:31 PM
  4. I can't seem to grasp how the **** to edit the default templete.
    By seeker in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jan 2007, 03:36 PM

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