Jump to content

 

dswood

Member Since 19 Mar 2016
Offline Last Active Jun 08 2022 12:33 PM
-----

#345731 Google Json+Ld On Product Pages Question

Posted by dswood on 29 January 2022 - 03:06 AM

I upgraded to csc 4.14.1 a week or 2 ago. Google Search Console is emailing "Product Issues" emails saying "Rating is missing required best and/or worst values". Looking at the html, json+ld had a best value but no worst value. So (like an idiot), I installed/enabled the new Product Ratings addon. Now, there's no json-ld at all and the 'Google rich snippets preview' on the products SEO tab no longer show any review stars.

 

Question is, how to get the json+ld code in my product html so satisfy google. Am I doing something wrong or will I need an addon to add that functionality? I see an addon in the marketplace from Simtech that looks good but only supports up to 4.13..

 

--------------------

Later: I bought the Simtech JSON-LD addon and its documentation says to "use the Comments and Reviews addon to collect reviews and ratings." But, now that I've installed the new "Product Review" addon, the old Comments and Reviews addon doesn't collect any product reviews and there is no json+ld 'aggregateRating' data in the product pages. So, I disabled the new "Product Reviews" and the "Comments and Reviews" addon works again in that it added aggregateRating to the json+ld. Now I'm back where I started, with no 'worstRating' entry. Sigh.. At least my best seller is still on page 1 of google search results, though it's at the bottom of the page.

 

Btw, I'm pretty sure that 'worstRating' should be '1' in all cases. With the 'bestRating' being 5 they indicate the range of possible values.

 

-----------------

Ummm, never mind. Today, Google Search Console now shows zero errors or warnings for review snippets. I have no idea what happened here. BUT, I really like the new Product Reviews addon but can't use it because it doesn't produce any json/ld for google.




#343161 Problem Updating Store In Subdirectory

Posted by dswood on 17 October 2021 - 05:16 AM

Never mind. I'm back in business!

 

The problem was that,

  1. .htaccess instructed apache to rewrite all HTTP requests as HTTPS and csc sees the HTTPS request.
  2. But csc was not configured to use HTTPS in the settings_objects table.
  3. Around line 359 in app/functions/fn_control in the fn_dispatch() function is code that was redirecting admin.php back to admin.php, resulting in an endless loop.
  4. It was working fine locally because .htaccess wasn't rewriting the url to use HTTPS.

 

So, the fix was to simply set secure_admin to 'Y' in the settings_objects table.

 

I suppose this endless loop situation might be avoided if fn_dispatch() raises an exception when it's about to redirect to the request uri.




#343157 Problem Updating Store In Subdirectory

Posted by dswood on 16 October 2021 - 02:13 PM

I'm trying to update my store from v4.3.6 to 4.7.2. 
My 436 store is at the root of a shared FastComet domain public_html.
 
I copied the site and database locally, added a subdirectory and used Store Import to upgrade to 472. It works fine locally. Using wamp64 on a Windows machine.
 
After copying the subdirectory to the live site, the front end works fine but the admin page won't load. It seems to try to load but the progress circle thingy next to the url in chrome seem to go into an erratic infinite loop until it times out. By that, I mean it doesn't just go round and round a a normal page that take a long time to load does. It starts to do that but then starts over and over again.
 
I changed the storefront and secure_storefront urls in the cscart_companies table to 'www.domain.com/cscart472'
I've deleted the /var/cache directory, 
 
The php log file is empty.
 
When I cancel reloading and view source, this all that appear:
<meta http-equiv="Refresh" content="0;URL=http://domain.com/cscart472/admin.php"/>
 
In config.local.php, I changed the settings at the bottom of the file to:
//if (PRODUCT_STATUS != '' && !defined('DEVELOPMENT')) {
    ini_set('display_errors', 'on');
    ini_set('display_startup_errors', true);
    define('DEVELOPMENT', true);
//}
 
And the endless loop stops and this is the page source:
 
I added to .htaccess:
RewriteBase /cscart472
 
No change.
 
I disabled the seo addon by setting seo status = 'D'
 
No change.
 
I tried php versions 70 and 56
 
php memory_limit is set to 512m
 
I'm stumped. Got any ideas what else I could try?