php - Unserialize error opencart 2.1.0.1 -
im getting error in error log on opencart 2.1.0.1
php notice: unserialize(): error @ offset 0 of 2 bytes in /home/zachovek/public_html/vqmod/vqcache/vq2-catalog_controller_module_d_quickcheckout.php on line 1392
when customer placing order via quickcheckout , @ same time registering new profile - error appears not - products in order not showing! following line of code:
$data['custom_field'] = unserialize($customer_info['custom_field']);
how can fix it? thank you!
you can use json_encode
instead of serialize
function , json_decode
instead of unserialize
Comments
Post a Comment