Madinson Posted December 16, 2004 Posted December 16, 2004 Hi there I changes a lot at my shop...hm, there I use the contribution buy with one click..and so on. Now I' m next to the finish, but I can't remove this error at the checkout_confirmation.php: Rechnungsadresse (Bearbeiten) Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Zahlungsweise (Bearbeiten) Bezahlen ?ber Telefon just create...and sell..sell...sell.....
TOM63 Posted December 18, 2004 Posted December 18, 2004 high matthias, i have the same problem. did you get any info about it? tom
stevel Posted December 18, 2004 Posted December 18, 2004 You will have to find where that function is called from and check the arguments. There is not enough information here to know what the cause is. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
TOM63 Posted December 18, 2004 Posted December 18, 2004 on the order confirmation page i get following error message in the delivery adress field: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/chs/misdns.net/home/html/billy-baroo/catalog/includes/functions/general.php on line 42 does anybody know what is wrong or what do i have to change thanks in advance tom ps: billing and delivery address on the page before only had a "," and when i changes the address everything was fine. (the matter is that we changed to 2.2 ms2 from older version and maybe it is other version for address book??
kagg Posted December 19, 2004 Posted December 19, 2004 Change the following code in checkout_shipping.php: if (!tep_session_is_registered('sendto')) { tep_session_register('sendto'); $sendto = $customer_default_address_id; } else { to: if (!tep_session_is_registered('sendto')) { $sendto = $customer_default_address_id; tep_session_register('sendto'); } else { Change following code in checkout_payment.php: if (!tep_session_is_registered('billto')) { tep_session_register('billto'); $billto = $customer_default_address_id; } else { To: if (!tep_session_is_registered('billto')) { $billto = $customer_default_address_id; tep_session_register('billto'); } else {
TOM63 Posted December 19, 2004 Posted December 19, 2004 that is not working for my problem. in checkout_shipping and checkout_payment i still get no address, only a ',' and on checkout_confirmation the warning message above mentioned shows up. but i saw that this is only for the old addresses and customers we imported from the old database. for new registered it works. any help? thanks
kagg Posted December 20, 2004 Posted December 20, 2004 Have you imported customers addresses from MS1 database? If yes, have you upgraded the data to MS2?
TOM63 Posted December 20, 2004 Posted December 20, 2004 yes i did. upgrade to ms2? any help where i can find this info rgds
kagg Posted December 20, 2004 Posted December 20, 2004 How did you upgraded to MS2? Did you just installed MS2 and then import the old datbase into MS2 version? Or you have run the upgrade file (ms1_to_ms2.php) on your old database?
TOM63 Posted December 20, 2004 Posted December 20, 2004 we got ms2 from our hosting company and then we imported the old data base (only data).
TOM63 Posted December 20, 2004 Posted December 20, 2004 ok, i just found in the knowledge base the upgrade files are located in extra folder in the shop. will try my best, but probablly i'm back to the forum soon. is the upgrade file working as well with alteres and modified files form ms1?
kagg Posted December 20, 2004 Posted December 20, 2004 No. Upgrade only replaces tye old files with new MS2 files and upgrade the database structure and data inside the old MS1 database.
TOM63 Posted December 20, 2004 Posted December 20, 2004 ok, thank you for help :thumbsup: . i think i just did a mistake upgrading the ms2 db instead of ms1 and then passing it into new db. so now i start over again as all files are mixed up. :angry: rgds
lsamp Posted December 27, 2004 Posted December 27, 2004 I had the same problem with this warning: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Have you made any changes to the Countries or Address Book databases? In my case, I had deleted a bunch of the Countries, and I got that error message when I tried to check-out with a current account. I was able to fix it by going to my countries database and changing the United States countries_id to 1, then in the address_book database changing the entry_country_id for all of the customers to 1, also. I hopes this helps!
MovieMaG Posted January 14, 2005 Posted January 14, 2005 I had the same problem with this warning: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Have you made any changes to the Countries or Address Book databases? In my case, I had deleted a bunch of the Countries, and I got that error message when I tried to check-out with a current account. I was able to fix it by going to my countries database and changing the United States countries_id to 1, then in the address_book database changing the entry_country_id for all of the customers to 1, also. I hopes this helps! <{POST_SNAPBACK}> You are brilliant. Thanx!
L!mit Posted February 3, 2005 Posted February 3, 2005 I have the same problem, if I go back (edit) and re- select an account under billing everything works again and the error is gone. Any help would be great! Hi there I changes a lot at my shop...hm,there I use the contribution buy with one click..and so on. Now I' m next to the finish, but I can't remove this error at the checkout_confirmation.php: Rechnungsadresse (Bearbeiten) Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Warning: htmlspecialchars() expects parameter 1 to be string, array given in /is/htdocs/55555/www.shop.de/catalog/includes/functions/general.php on line 42 Zahlungsweise (Bearbeiten) Bezahlen ?ber Telefon <{POST_SNAPBACK}>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.