Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Cosmetics" Joomla/VirtueMart template.

Topic-icon unserialize Error with hot_cosmetics17_hotstart

More
5 years 4 months ago #13366 by wvq
wvq created the topic: unserialize Error with hot_cosmetics17_hotstart
I've just installed hot_cosmetics17_hotstart.zip and get the following error:

Notice: unserialize() [function.unserialize]: Error at offset 0 of 20 bytes in C:\wamp\www\nuevo-todo-stencil\administrator\components\com_virtuemart\helpers\config.php on line 380


Attachments:

Please Log in to join the conversation.

More
5 years 4 months ago #13373 by ivan.milic
ivan.milic replied the topic: Re: unserialize Error with hot_cosmetics17_hotstart
did you maybe used previously created database?

Please Log in to join the conversation.

More
5 years 4 months ago #13374 by ivan.milic
ivan.milic replied the topic: Re: unserialize Error with hot_cosmetics17_hotstart
also try this: open that file at line 380 , you will see this:
foreach($config as $item){
				$item = explode('=',$item);
				if(!empty($item[1])){
					// if($item[0]!=='offline_message' && $item[0]!=='dateformat' ){
					if($item[0]!=='offline_message' ){
						$pair[$item[0]] = unserialize($item[1] );
					} else {
						$pair[$item[0]] = unserialize(base64_decode($item[1]) );
					}

				} else {
					$pair[$item[0]] ='';
				}

			}

modify it like this:
			foreach($config as $item){
			  try{
				$item = explode('=',$item);
				if(!empty($item[1])){
					// if($item[0]!=='offline_message' && $item[0]!=='dateformat' ){
					if($item[0]!=='offline_message' ){
						$pair[$item[0]] = unserialize($item[1] );
					} else {
						$pair[$item[0]] = unserialize(base64_decode($item[1]) );
					}

				} else {
					$pair[$item[0]] ='';
				}
			}catch(Exception $e){
			}

			}

Please Log in to join the conversation.

More
5 years 4 months ago #13376 by wvq
wvq replied the topic: Re: unserialize Error with hot_cosmetics17_hotstart
Hi,

1) I did not use a previously created database. I used the sample one that's inside the instalation pack.

2) I've modified what you told me to and I still get the same errors:

Unserialize error:



Unserialize error:



Undefined variable: columnLayout in C:\wamp\www\nuevo-todo-stencil\templates\hot_cosmetics\index.php on line 241

Attachments:

Please Log in to join the conversation.

More
5 years 4 months ago #13379 by ivan.milic
ivan.milic replied the topic: Re: unserialize Error with hot_cosmetics17_hotstart
Open database table `j6qjs_virtuemart_configs` , first row value in column 'config' should has this value by defaut:
shop_is_offline=s:1:"0";|offline_message=czo3MzoiT3VyIFNob3AgaXMgY3VycmVudGx5IGRvd24gZm9yIG1haW50ZW5hbmNlLiBQbGVhc2UgY2hlY2sgYmFjayBhZ2FpbiBzb29uLiI7|use_as_catalog=s:1:"0";|currency_converter_module=s:14:"convertECB.php";|order_mail_html=s:1:"1";|dateformat=czo4OiIlbS8lZC8leSI7|useSSL=s:1:"0";|dangeroustools=s:1:"0";|debug_enable=s:4:"none";|google_jquery=s:1:"1";|multix=s:4:"none";|pdf_button_enable=s:1:"1";|show_emailfriend=s:1:"1";|show_printicon=s:1:"0";|show_out_of_stock_products=s:1:"1";|coupons_enable=s:1:"0";|coupons_default_expire=s:3:"1,D";|weight_unit_default=s:2:"KG";|lwh_unit_default=s:1:"M";|list_limit=s:2:"10";|showReviewFor=s:3:"all";|reviewMode=s:10:"registered";|showRatingFor=s:4:"none";|ratingMode=s:10:"registered";|reviews_autopublish=s:1:"1";|reviews_minimum_comment_length=s:3:"100";|reviews_maximum_comment_length=s:4:"2000";|vmtemplate=s:7:"default";|categorytemplate=s:7:"default";|showCategory=s:1:"1";|categorylayout=s:7:"default";|categories_per_row=s:1:"4";|productlayout=s:7:"default";|products_per_row=s:1:"3";|vmlayout=s:7:"default";|show_featured=s:1:"1";|featured_products_per_row=s:1:"3";|show_topTen=s:1:"1";|topten_products_per_row=s:1:"3";|show_recent=s:1:"1";|show_latest=s:1:"1";|assets_general_path=s:33:"components/com_virtuemart/assets/";|media_category_path=s:35:"images/stories/virtuemart/category/";|media_product_path=s:34:"images/stories/virtuemart/product/";|media_manufacturer_path=s:39:"images/stories/virtuemart/manufacturer/";|media_vendor_path=s:33:"images/stories/virtuemart/vendor/";|img_resize_enable=s:1:"1";|img_width=s:3:"150";|img_height=s:3:"150";|no_image_set=s:11:"noimage.gif";|no_image_found=s:14:"arrow_down.png";|browse_orderby_field=s:23:"p.virtuemart_product_id";|browse_orderby_fields=a:4:{i:0;s:13:"p.product_sku";i:1;s:15:"c.category_name";i:2;s:9:"m.mf_name";i:3;s:14:"p.product_name";}|browse_search_fields=a:6:{i:0;s:13:"p.product_sku";i:1;s:15:"c.category_name";i:2;s:22:"c.category_description";i:3;s:9:"m.mf_name";i:4;s:14:"p.product_name";i:5;s:16:"p.product_s_desc";}|show_prices=s:1:"1";|price_access_level_published=s:1:"0";|price_show_packaging_pricelabel=s:1:"0";|show_tax=s:1:"1";|basePrice=s:1:"1";|basePriceText=s:1:"1";|basePriceRounding=s:1:"2";|variantModification=s:1:"1";|variantModificationText=s:1:"1";|variantModificationRounding=s:1:"2";|basePriceVariant=s:1:"1";|basePriceVariantText=s:1:"1";|basePriceVariantRounding=s:1:"2";|basePriceWithTax=s:1:"1";|basePriceWithTaxText=s:1:"1";|basePriceWithTaxRounding=s:1:"2";|discountedPriceWithoutTax=s:1:"1";|discountedPriceWithoutTaxText=s:1:"1";|discountedPriceWithoutTaxRounding=s:1:"2";|salesPriceWithDiscount=s:1:"1";|salesPriceWithDiscountText=s:1:"1";|salesPriceWithDiscountRounding=s:1:"2";|salesPrice=s:1:"1";|salesPriceText=s:1:"1";|salesPriceRounding=s:1:"2";|priceWithoutTax=s:1:"0";|priceWithoutTaxText=s:1:"0";|priceWithoutTaxRounding=s:1:"2";|discountAmount=s:1:"1";|discountAmountText=s:1:"1";|discountAmountRounding=s:1:"2";|taxAmount=s:1:"1";|taxAmountText=s:1:"1";|taxAmountRounding=s:1:"2";|check_stock=s:1:"0";|automatic_payment=s:1:"1";|automatic_shipping=s:1:"1";|agree_to_tos_onorder=s:1:"1";|oncheckout_show_legal_info=s:1:"1";|oncheckout_show_register=s:1:"1";|oncheckout_show_steps=s:1:"0";|oncheckout_show_register_text=s:47:"COM_VIRTUEMART_ONCHECKOUT_DEFAULT_TEXT_REGISTER";|seo_disabled=s:1:"0";|seo_translate=s:1:"0";|seo_use_id=s:1:"0";|soap_ws_cat_on=s:0:"";|soap_ws_cat_cache_on=s:1:"1";|soap_auth_getcat=s:1:"1";|soap_auth_addcat=s:1:"1";|soap_auth_upcat=s:1:"1";|soap_auth_delcat=s:1:"1";|soap_auth_cat_otherget=s:1:"1";|soap_auth_cat_otheradd=s:1:"1";|soap_auth_cat_otherupdate=s:1:"1";|soap_auth_cat_otherdelete=s:1:"1";|soap_ws_user_on=s:0:"";|soap_ws_user_cache_on=s:1:"1";|soap_auth_getuser=s:1:"1";|soap_auth_adduser=s:1:"1";|soap_auth_upuser=s:1:"1";|soap_auth_deluser=s:1:"1";|soap_auth_user_otherget=s:1:"1";|soap_auth_user_otheradd=s:1:"1";|soap_auth_user_otherupdate=s:1:"1";|soap_auth_user_otherdelete=s:1:"1";|soap_ws_prod_on=s:0:"";|soap_ws_prod_cache_on=s:1:"1";|soap_auth_getprod=s:1:"1";|soap_auth_addprod=s:1:"1";|soap_auth_upprod=s:1:"1";|soap_auth_delprod=s:1:"1";|soap_auth_prod_otherget=s:1:"1";|soap_auth_prod_otheradd=s:1:"1";|soap_auth_prod_otherupdate=s:1:"1";|soap_auth_prod_otherdelete=s:1:"1";|soap_ws_order_on=s:0:"";|soap_ws_order_cache_on=s:1:"1";|soap_auth_getorder=s:1:"1";|soap_auth_addorder=s:1:"1";|soap_auth_uporder=s:1:"1";|soap_auth_delorder=s:1:"1";|soap_auth_order_otherget=s:1:"1";|soap_auth_order_otheradd=s:1:"1";|soap_auth_order_otherupdate=s:1:"1";|soap_auth_order_otherdelete=s:1:"1";|soap_ws_sql_on=s:0:"";|soap_ws_sql_cache_on=s:1:"1";|soap_auth_execsql=s:1:"1";|soap_auth_execsql_select=s:1:"1";|soap_auth_execsql_insert=s:1:"1";|soap_auth_execsql_update=s:1:"1";|soap_ws_custom_on=s:0:"";|soap_ws_custom_cache_on=s:1:"1";|soap_EP_custom=s:24:"VM_CustomizedService.php";|soap_wsdl_custom=s:18:"VM_Customized.wsdl";|manufacturer_per_row=s:0:"";|css=s:1:"1";|jquery=s:1:"1";|jprice=s:1:"1";|jsite=s:1:"1";|oncheckout_show_images=s:1:"0";|seo_sufix=s:7:"-detail";|task=s:4:"save";|option=s:14:"com_virtuemart";|view=s:6:"config";|819abb747fa1beac3e4945721f756a3b=s:1:"1";|1dd6a6b70baee1cba1620dcf2770f6a2=s:1:"1";|dd6fa07d42aee9f0bc3f2e8a1b63051b=s:1:"1";|d93776c862e3d41e555aba4b1ee37429=s:1:"1";|4fbcc77cc19410b2fbcebc0d54a6cc62=s:1:"1";|enable_content_plugin=s:1:"0";|show_manufacturers=s:1:"1";|oncheckout_only_registered=s:1:"0";|40058f5193cb37a61ab697129051d625=s:1:"1";

set (return) that value and see what happens after.

Please Log in to join the conversation.

More
5 years 4 months ago #13381 by wvq
wvq replied the topic: Re: unserialize Error with hot_cosmetics17_hotstart
Yes, the table jos173_virtuemart_configs seems to have that same value in column config. As I have not checked word by word I've copied/pasted the value you sent and then saved but I still get the same errors.

Please Log in to join the conversation.

Time to create page: 0.151 seconds

Links, Partners and Social Media