Page 20 of 20 FirstFirst ... 10181920
Results 191 to 193 of 193
  1. #191
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

    LOG FILE showing the following:

    PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/MYDOMAIN/public_html/includes/modules/pages/product_info/jscript_structured_data_product.php on line 38.

    PHP Code:
    $reviewCount sizeof($reviewArray);
    if (
    $reviewCount != 0) {
      
    $ratingValue array_sum($ratingSum) / $reviewCount;
    } else {
      
    $ratingValue 0;

    Is there a fix?
    20 years a Zencart User

  2. #192
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

    OK - this seems to be a legacy issue with a piece of script I got elsewhere.

    I suspended the relevant file (jscript_structured_data_product.php) and the log error is not happening now. Site seems to be functioning OK.
    20 years a Zencart User

  3. #193
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,590
    Plugin Contributions
    30

    Default Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

    Firstly, use the only-version_that-gets_updated from GitHib:

    https://github.com/torvista/Zen_Cart-Structured_Data
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 20 of 20 FirstFirst ... 10181920

Similar Threads

  1. Replies: 13
    Last Post: 27 Jun 2019, 05:31 AM
  2. v150 Contact# structured data markup
    By ShopVille in forum General Questions
    Replies: 9
    Last Post: 12 Nov 2014, 03:01 PM
  3. I want to add Facebook open graph tags
    By stevemax in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2011, 07:07 PM
  4. Where do I add facebook open graph tags?
    By surlybroad in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2011, 04:12 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR