Page 16 of 16 FirstFirst ... 6141516
Results 151 to 157 of 157
  1. #151
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,115
    Plugin Contributions
    9

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

    line 370 is here:

    PHP Code:
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'] ?? ''
    https://github.com/torvista/Zen_Cart..._data.php#L370

    my guess is the you are running a version of php less than 7.0 which makes use of the coalesce (??) operator.

    if so, you probably should upgrade your php version and perhaps your version of ZC as php versions less than 7.0 have been end of life for quite some time.

    alternatively, you could try changing the code to:

    PHP Code:
    $breadcrumb_this_page '';
    if (isset(
    $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title']) {
       
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'];

    if line 370 is something different, feel free to ignore everything i said!

    best.
    help with WCAG is now here! PM if you want some help with this. (or any ZC issue).
    if you feel so inclined, feel free to send some cake....

  2. #152
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,323
    Plugin Contributions
    29

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

    My bad, I do forget to set my IDE back to 5.6. Fix pushed.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  3. #153
    Join Date
    Apr 2011
    Posts
    181
    Plugin Contributions
    0

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

    Quote Originally Posted by carlwhat View Post
    line 370 is here:

    PHP Code:
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'] ?? ''
    https://github.com/torvista/Zen_Cart..._data.php#L370

    my guess is the you are running a version of php less than 7.0 which makes use of the coalesce (??) operator.

    if so, you probably should upgrade your php version and perhaps your version of ZC as php versions less than 7.0 have been end of life for quite some time.

    alternatively, you could try changing the code to:

    PHP Code:
    $breadcrumb_this_page '';
    if (isset(
    $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title']) {
       
    $breadcrumb_this_page $breadcrumb->_trail[count($breadcrumb->_trail) - 1]['title'];

    if line 370 is something different, feel free to ignore everything i said!

    best.
    Thank you.

  4. #154
    Join Date
    Apr 2011
    Posts
    181
    Plugin Contributions
    0

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

    I spoke too fast. I am getting another error:

    --> PHP Parse error: syntax error, unexpected '{' in /home/zch1akhw6q3m/public_html/includes/templates/Royal_Fleur/jscript/jscript_plugin_structured_data.php on line 371.


    Sorry for the noob question. I don't know anything about coding. And you are correct. I am on a PHP 5.6 with ZC 1.5.6 version
    . My whole site is due for an update but i haven't managed to get on it yet.

  5. #155
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,323
    Plugin Contributions
    29

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

    First check you are using the current file from GitHub.
    If the error persists, please paste what is on the referenced line of the file.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  6. #156
    Join Date
    Apr 2011
    Posts
    181
    Plugin Contributions
    0

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

    Quote Originally Posted by torvista View Post
    First check you are using the current file from GitHub.
    If the error persists, please paste what is on the referenced line of the file.

    I got the updated version from github and it fixed my previous issue.

    I am having another problem. ( see screenshot)

    All my product have a 3 star rating on google but i don t have any product review.

    Where is it taking the review rating from?

    Also the date showing for the review is the date the product was first added to the store.

    Any ideas regarding the 3 star on all my products??

    the store is at royal-fleur.com

    Any help will appreciated thank you

    Click image for larger version. 

Name:	pdct review1.jpg 
Views:	9 
Size:	64.1 KB 
ID:	19854Click image for larger version. 

Name:	pdct review2.jpg 
Views:	9 
Size:	51.6 KB 
ID:	19855

  7. #157
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,323
    Plugin Contributions
    29

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

    Reviews: that's to prevent a load of Google Rich Tool warnings about no reviews. I've updated the Github readme on this.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

 

 
Page 16 of 16 FirstFirst ... 6141516

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