Zen Cart Logo
Forums / Customization from the Admin / Can't seem to edit new products?

Can't seem to edit new products?

Views: 1,332

Results 1 to 7 of 7
5 Jul 2011, 8:49 PM
#1
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

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?

5 Jul 2011, 11:17 PM
#3
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

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.

6 Jul 2011, 2:32 AM
#4
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

6 Jul 2011, 8:30 AM
#5
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

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:

  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 Jul 2011, 8:31 AM
#6
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

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.

6 Jul 2011, 9:03 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't seem to edit new products?

wizer:

[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.

wizer:

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.php/Troubleshoot_-_Diagnosing_Obscure_Issues