ulefos Posted March 22, 2010 Share Posted March 22, 2010 Hi This is urgent as im going round in circles this is my error Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxxxxx/public_html/admin/customers.php Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxxxx/public_html/admin/customers.php Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxxxxx/public_html/admin/customers.php Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxxxxx/public_html/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/admin/includes/classes/object_info.php on line 18 Administration i have been through the oscommerce site and found the answer to the above 3 warnings and added this ------- Find these lines: $customer_info = array_merge($country, $info, $reviews); $cInfo_array = array_merge($customers, $customer_info); and change them to: $customer_info = array_merge((array)$country, (array)$info, (array)$reviews); $cInfo_array = array_merge((array)$customers, (array)$customer_info); this just left this Warning: reset() [function.reset]: Passed variable is not an array or object in /home/allpawst/public_html/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/allpawst/public_html/admin/includes/classes/object_info.php on line 18 Administration when a customer creates an account the infomation is not in admin/customer the database shows the customers deatils but the customer id is 0 instead of following on the customers_default_address_id has come up NULL instead of following on the order customer_info doesnt seem to be updating also when a customer creats an order the customers/shipping address is not shown in the order process i have recently moved my web hosting MySQL 5.0.89-community-log 5.2.9 (Zend: 2.2.0) oscommerce 2.2 <?php /* $Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class objectInfo { // class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } } ?> if any of this makes sense to anybody please could you help urgently Link to comment Share on other sites More sharing options...
spooks Posted March 23, 2010 Share Posted March 23, 2010 Because of the way the code is written there are a number of circumstances that can create this issue, but as you don't provide full info on just what you did.... The most common is customer creates a account, then you delete some countries, including that customers, now as the counrty don't exist for that customer when you read that record the app breaks Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
ulefos Posted March 23, 2010 Author Share Posted March 23, 2010 thanks for replying dont quite know what i done i uploaded my site from previous hosting company to new hosting company uploaded database via myphpadmin (imported) old database from old hosting company have lost serveal orders due to this error but i think i have sorted it i checked through my admin/configure.php and found a small problem (which I have corrected)this seems to have corrected the problem Could i just ask, when i login to admin and it is https, then click on anything in admin should the pages be https or http i believe i have full ssl installed but there is no paddlock on my admin pages apart from login any suggestions Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted March 23, 2010 Share Posted March 23, 2010 Could i just ask, when i login to admin and it is https, then click on anything in admin should the pages be https or http i believe i have full ssl installed but there is no paddlock on my admin pages apart from login any suggestions Mine stays in https mode all the time. Don't remember what else I did other than in the /admin/includes/configure.php file I made the 'http' catalog server = https://... Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
spooks Posted March 23, 2010 Share Posted March 23, 2010 when i login to admin and it is https, then click on anything in admin should the pages be https or http i believe i have full ssl installed but there is no paddlock on my admin pages apart from login You have to set up to use your ssl, installing is only the start. Your behaviour means you have a ssl link to your liogin, but your admin configure file is not set to use it. normally you set HTTP_SERVER, HTTPS_SERVER and HTTPS_CATALOG_SERVER to point to your secure server in admin configure Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
ulefos Posted March 24, 2010 Author Share Posted March 24, 2010 thanks spooks i managed to sort it out everything pointing where it should be, found lots of info on the oscommerce site thanks again teresa Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.