Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Location
    China
    Posts
    75
    Plugin Contributions
    0

    Default googlebot or bingbot create error message when visist our website,html_header.php

    First argument should be an array in /home/estanda1/public_html/includes/templates/theme339/common/html_header.php on line 51

    My website:e-standard got above issue, the main page works okay for anyone,normal visit will not pop up this error ,only the crawler,but i could not figure out what's going on and how to fix this problem,it seems i did not make change on line 51,i would be appreciate if any expert could help

  2. #2
    Join Date
    Nov 2013
    Location
    China
    Posts
    75
    Plugin Contributions
    0

    Default Re: googlebot or bingbot create error message when visist our website,html_header.php

    First argument should be an array in /home/estanda1/public_html/includes/templates/theme339/common/html_header.php on line 51

    My website:e-standard got above issue, the main page works okay for anyone,you could open and review the pages,but i could not figure out what's going on and how to fix this problem,it seems i did not make change on line 51,i would be appreciate if any expert could help
    <?php

    /**

    * Common Template

    *

    * outputs the html header. i,e, everything that comes before the \</head\> tag <br />

    *

    * @package templateSystem

    * @copyright Copyright 2003-2010 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $

    */

    /**

    * load the module for generating page meta-tags

    */

    require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));

    /**

    * output main page HEAD tag and related headers/meta-tags, etc

    */

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?> xmlns:fb="http://ogp.me/ns/fb#" itemscope itemtype="http://schema.org/Product">



    <head>

    <title><?php echo META_TAG_TITLE; ?></title>

    <?php

    ################ start of AutoOpenGraph ###################



    $store_name = "E-standard.org"; //e.g. "Samanthas Power Tools", or "Gus' China Shop".

    $store_url = "http://www.e-standard.org"; //url to your store (no trailing '/')

    $product_type = "product"; //type of product you're selling (see tutorial)

    $use_addr = 0; //use address? if yes, set $use_addr = 1; (no quotes). edit lines below suitably.

    $use_email = 0; //use email address? if yes, set $use_email = 1; (no quotes) edit lines below suitably.

    $use_phone = 0; //use phone number? if yes, set $use_phone = 1; (no quotes) edit line below suitably.



    //if $use_addr is set to 1;

    $mystreet = "123 Your Street Name"; //change to your street address.

    $mycity = "City"; //your city

    $mystate = "State"; //Your State. Facebook exaple uses abbreviation.

    $myzip = "zipcode"; //you're zip/postal code.

    $mycountry = "USA"; //your country. Facebook example uses acronym.



    //if $use_email is set to 1;

    $myemail_address = "[email protected]"; // your email



    //if use_phone is set to 1

    $myphone_number = "+1-123-12345678"; //format: +country code - area code - number.



    //no need to edit below this line:

    extract($product_info_metatags->fields);

    extract($category_metatags->fields);

    $prod_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];



    //get defined image or default

    $myImage= zen_get_products_image((int)$_GET['products_id']);

    $img = simplexml_load_string($myImage);

    $img = $img['src'];

    if($this_is_home_page){ $depends = $store_name; $product_type = "website"; }

    else if ($categories_name){ $depends = $categories_name; $product_type = "website"; }

    else if ($products_name){ $depends = $products_name; }

    else { $depends = META_TAG_TITLE; $product_type = "website"; }

    //print_r($product_info_metatags);

    ################# end of AutoOpenGraph ####################

 

 

Similar Threads

  1. v154 Error message on website when installing new template
    By Awalji in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 May 2015, 03:25 PM
  2. Error message when testing checkout at my website
    By mmullen in forum General Questions
    Replies: 1
    Last Post: 29 Aug 2008, 05:21 PM
  3. error message when customers create an account
    By indulgence in forum General Questions
    Replies: 3
    Last Post: 19 Nov 2007, 08:32 PM
  4. Error Message when trying to create account
    By kimberlyeddy in forum Managing Customers and Orders
    Replies: 14
    Last Post: 5 Aug 2007, 04:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg