Jump to content

Seo Modul Gibt Fehlermeldung Aus


Recommended Posts

Hallo, ich muss mich mal an euch wenden zwecks eines Moduls.

 

Ich bekomme immer diese Fehlermeldung im Backend, wenn ich einen Artikel z.B. Deaktiviere

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Warning in Zeile 400 der Datei /var/www/vhosts/xxxx/httpdocs/xxxx/modules/smartseoplus/include/buyaddons.php
[2] implode(): Invalid arguments passed

Es handelt sich um dieses Modul:

http://codecanyon.net/item/prestashop-seo-module-smart-seo-prestashop-with-baseo/10271761

 

Ich hatte ja schon öfter Probleme damit. Nun habe ich ja den Shop neu installiert und trotzdem gibt es Fehler. Da der Entwickler sich aber einen Dreck um mich als Kunden kümmert und mich gekonnt ignoriert und PayPal mein Geld nicht raus rückt bzw. dem Verkäufer das Geld zugesteht habe ich jetzt dieses Tool und wollte es mit einer ganz sauberen Installation testen.

 

Ich habe ein wenig die Hoffnung, das jemand von euch mir da eventuell behilflich sein kann eine Lösung zu finden (Ein Backup von FTP und DB habe ich vor der Installation komplett gemacht).

 

Zeile 400 ist:

"PRODUCT_TAG" =>   implode(',',$product->tags[$id_lang]),  

Gehört zur Funktion generateProductsSEO

	function generateProductSeo($product_id,$id_lang){
		$product=new Product($product_id,true,$id_lang);
		$short_code=array(
			"PRODUCT_NAME" => $product->name,
			"CATEGORY_NAME" => $product->category,
			"PARENT_CATEGORY_NAME" => '',
			"SHOP_NAME" =>  Configuration::get('PS_SHOP_NAME'),
			"PRODUCT_EAN13" => empty($product->ean13)?'':$product->ean13,
			"PRODUCT_UPC" 	=> empty($product->upc)?'':$product->upc,
			"PRODUCT_ID" => $product_id,
			"PRODUCT_SEO_META_TITLE" => $product->meta_title,
			"PRODUCT_SEO_META_DESCRIPTION" => $product->meta_description,
			"PRODUCT_SEO_META_KEYWORDS" => $product->meta_keywords,
			"PRODUCT_SEO_FRIENDLY_URL" => $product->link_rewrite,
			"MANUFACTURER_NAME" => $product->manufacturer_name,
			"SUPPLIER_NAME" => $product->supplier_name,
			"PRODUCT_DESCRIPTION" =>  $product->description,
			"PRODUCT_DESCRIPTION_SHORT" =>  $product->description_short,
			"PRODUCT_REFERENCE" =>  $product->reference,
			"PRODUCT_TAG" =>   implode(',',$product->tags[$id_lang]),  
		);
		
		// xây dựng Parent category
		$category=new Category($product->id_category_default,$id_lang);
		$categories=$category->getParentsCategories($id_lang);
		$n=count($categories);
		if($n>=3){// trừ category home và category chính nó
			$parent_name=array();
			for($i=$n-2;$i>=1;$i--){
				$parent_name[]= Tools::link_rewrite($categories[$i]['name'],null);
			}
			$short_code['PARENT_CATEGORY_NAME']=implode("/",$parent_name);
		}
		// 
		$product_link_rewrite		= Configuration::get('product_link_rewrite_'.$id_lang);
		$product_page_title			= Configuration::get('product_page_title_'.$id_lang);
		$product_meta_keyword		= Configuration::get('product_meta_keyword_'.$id_lang);
		$product_meta_description	= Configuration::get('product_meta_description_'.$id_lang);
		// duyệt qua các short code
		foreach($short_code AS $code => $value){
			// nếu phần tử nào rỗng thì xóa luôn ký tự / sau nó trong link
			if(empty($value)) $product_link_rewrite=str_ireplace('{'.$code.'}/', $value,$product_link_rewrite);
			
			if($code!="PARENT_CATEGORY_NAME")// giữ lại / trong parent category name
				$product_link_rewrite=str_ireplace('{'.$code.'}', Tools::link_rewrite($value,null),$product_link_rewrite);
			else
				$product_link_rewrite=str_ireplace('{'.$code.'}', $value,$product_link_rewrite);
			$product_page_title=str_ireplace('{'.$code.'}',$value,$product_page_title);
			$product_meta_keyword=str_ireplace('{'.$code.'}',$value,$product_meta_keyword);
			$product_meta_description=str_ireplace('{'.$code.'}',$value,$product_meta_description);
		}
		$product_link_rewrite =strtolower($product_link_rewrite);
		//echo '<pre>';print($product_link_rewrite);die;
		$params=array(
				'sef_url' 			=> $product_link_rewrite,
				'non_sef_url'   	=> "id_product=$product_id&controller=product&id_lang=$id_lang",
				'link_type'   		=> 'M',
				'hits'   			=> 0,
				'id_lang'   		=> $id_lang,
				'object_type'   	=> 'product',
				'object_id'   		=> $product_id,
				'page_title'   		=> pSQL($product_page_title),
				'meta_keywords'   	=> pSQL($product_meta_keyword),
				'meta_description'  => pSQL($product_meta_description)
			);
		updateSignleUrl($product_link_rewrite,$params,$id_lang);
	}

Naja, die Hoffnung stirbt zuletzt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...