Results 1 to 7 of 7

Hybrid View

  1. #1
    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?

  2. #2
    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,385
    Blog Entries
    7
    Plugin Contributions
    81

    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