StephenH Posted April 20, 2010 Share Posted April 20, 2010 Hi there, I have migrated my site from one host to another. Since the migration I now get an error when I try and check out with paypal. Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mysite/public_html/includes/classes/order.php on line 204 Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/includes/classes/order.php:204) in /home/mysite/public_html/includes/functions/general.php on line 33 Regarding the Cannot modify header information error I have checked that there is no white space before the <?php and after the ?> using nano. I have checked line 204 of order.php and it has the following: line 185 to 206 // customers address $country_query = tep_db_query("select c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, z.zone_name from " . TABLE_COUNTRIES . " c left join " . TABLE_ZONES . " z on z.zone_id = '" . intval($pwa_array_address['entry_zone_id']) . "' where countries_id = '" . intval($pwa_array_address['entry_country_id']) . "'"); $country = tep_db_fetch_array($country_query); $address = array_merge($country, array('customers_firstname' => $pwa_array_customer['customers_firstname'], 'customers_lastname' => $pwa_array_customer['customers_lastname'], 'entry_firstname' => $pwa_array_customer['customers_firstname'], 'entry_lastname' => $pwa_array_customer['customers_lastname'], 'customers_telephone' => $pwa_array_customer['customers_telephone'], 'customers_mobile' => $pwa_array_customer['customers_mobile'], 'customers_email_address' => $pwa_array_customer['customers_email_address'], 'entry_company' => (isset($pwa_array_address['entry_company'])? $pwa_array_address['entry_company']:''), 'entry_street_address' => $pwa_array_address['entry_street_address'], 'entry_suburb' => $pwa_array_address['entry_suburb'], 'entry_postcode' => $pwa_array_address['entry_postcode'], 'entry_city' => $pwa_array_address['entry_city'], 'entry_zone_id' => $pwa_array_address['entry_zone_id'], 'countries_id' => $pwa_array_address['entry_country_id'], 'entry_country_id' => $pwa_array_address['entry_country_id'], 'entry_state' => $pwa_array_address['entry_state'])); $customer_address = $billing_address = $address; Any ideas why I could be getting these error? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.