My url is: https://mhmr.fwpromo.com/
Version: 1.5.1
No Added Plugins.
I am unable to add products to my catalog! I receive these errors in my logs every time I try, after filling in all the info and clicking "preview":
PHP Warning: reset() expects parameter 1 to be array, null given in /home/fwpromo9/public_html/mhmr/zcadmin/includes/classes/object_info.php on line 29
PHP Warning: Variable passed to each() is not an array or object in /home/fwpromo9/public_html/mhmr/zcadmin/includes/classes/object_info.php on line 30
Here is the contents of object_info.php
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: object_info.php 1969 2005-09-13 06:57:21Z drbyte $
//
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);
}
}
}
?>
The website works great, but has not been touched since 2015. All of a sudden I was asked to add a few products and BOOM!! The only thing I know has changed was that I added SSL security (https:) I did not build the website, and am just learning the Zen Cart way of doing things, but really need help with this. I have spent 3 days trying to figure it out.
Bookmarks