Zen Cart Logo
Forums / All Other Contributions/Addons / Google Product Search Feeder II [Support Thread]

Google Product Search Feeder II [Support Thread]

Views: 18,151

Results 81 to 94 of 94
26 Jun 2026, 5:32 PM
#81
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Google Product Search Feeder II [Support Thread]

gsh68:

Installed this just now on 1.57c site running php 7.4.33
First run and I get this error.

[25-Jun-2026 16:33:15 Europe/London] PHP Fatal error: Uncaught Error: Class 'App\Models\PluginControl' not found in /includes/classes/gpsfFeedGenerator.php:103
Stack trace:
#0 /home/xxxx/public_html/xxxxxx/gpsf_main_controller.php(62): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /home/xxxx/public_html/xxxxxx/includes/classes/gpsfFeedGenerator.php on line 103

[25-Jun-2026 16:33:15 Europe/London] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=GBP&language=en, IP address: xxxxxx
--> PHP Fatal error: Uncaught Error: Class 'App\Models\PluginControl' not found in /home/xxxx/public_html/xxxxxxx/includes/classes/gpsfFeedGenerator.php:103
Stack trace:
#0 /home/xxxx/public_html/xxxxxx/gpsf_main_controller.php(62): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /home/xxxx/public_html/xxxxxx/includes/classes/gpsfFeedGenerator.php on line 103.

> I'm pretty sure everything uploaded.
> Any tips?
> Cheers.
My tip (which I hate when others respond with this) is to upgrade and/or remove the plugin.  The zc157 versions don't support anywhere close to current PluginControl.

I'll start by updating the documentation to indicate that the minimum supported version is 1.5.8.
26 Jun 2026, 6:43 PM
#82
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

I would also highly recommend you have the client update to at least a PHP 8.X version. The version you're using (7.4) is not even supported and reached it's End Of Life almost 4 years ago.

26 Jun 2026, 8:21 PM
#83
gsh68 avatar

gsh68

Zen Follower

Join Date:
Mar 2011
Posts:
103
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Thanks to both.
I am in the middle of an upgrade - I have a dev site I'm getting ready on ZC 2.2 but still have some snagging before taking it live.

13 Aug 2026, 3:45 PM
#84
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

I have and upgraded zc 2.1.0 on php 8.3.3 from zc1.54 and have the following issue after installing to 1.0.5 the install went well until i ran a feed and was tod request failed check logs.

[13-Aug-2026 08:29:54 America/Boise] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=USD&language=en, IP XXXXX: XXXXXXXXXXX, Language id 1
#0 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(762): zen_debug_error_handler()
#1 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(322): gpsfFeedGenerator->getCategoryInfo()
#2 /XXXXX/XXXXX/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed()
--> PHP Warning: Undefined array key 0 in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php on line 762.

[13-Aug-2026 08:29:54 America/Boise] PHP Fatal error:  Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php:762
Stack trace:
#0 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(762): array_reverse(NULL)
#1 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(322): gpsfFeedGenerator->getCategoryInfo('186')
#2 /XXXXX/XXXXX/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #56, '', '')
#3 {main}
  thrown in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php on line 762

[13-Aug-2026 08:29:54 America/Boise] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=USD&language=en, IP XXXXX: 174.58.200.157
--> PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php:762
Stack trace:
#0 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(762): array_reverse(NULL)
#1 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(322): gpsfFeedGenerator->getCategoryInfo('186')
#2 /XXXXX/XXXXX/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #56, '', '')
#3 {main}
  thrown in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php on line 762.

[13-Aug-2026 08:29:54 America/Boise] Request URI: /gpsf_main_controller.php?key=&feed=fy_un_tp&limit=0&offset=0&currency_code=USD&language=en, IP XXXXX: 174.58.200.157
--> PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php:762
Stack trace:
#0 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(762): array_reverse(NULL)
#1 /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php(322): gpsfFeedGenerator->getCategoryInfo('186')
#2 /XXXXX/XXXXX/public_html/gpsf_main_controller.php(167): gpsfFeedGenerator->generateProductsFeed(Resource id #56, '', '')
#3 {main}
  thrown in /XXXXX/XXXXX/public_html/includes/classes/gpsfFeedGenerator.php on line 762.

Is there a step i missed?

Thanking in advance

14 Aug 2026, 11:21 AM [edited]
#85
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

It appears that a product's master category of 186 isn't a valid category.

Here's a link to the associated GitHub issue: https://github.com/lat9/gpsf/issues/54

14 Aug 2026, 11:55 AM [edited]
#86
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

lat9:

It appears that a product's master category of 186 isn't a valid category.
Here's a link to the GitHub issue that will track that change: https://github.com/lat9/gpsf/issues/54

15 Aug 2026, 3:34 PM
#87
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Thank you for the info lat9!

I think I put a bandaid until an update is done?
I Removed this line from gpsf_main_controller.php file,

$categoryPath = array_reverse($categoryPath);

Pasted this:

if (!is_array($categoryPath) || empty($categoryPath)) {
    return []; // prevents fatal crash
}

$categoryPath = array_reverse($categoryPath);

I was told this makes it GPSF PHP‑8 safe and prevents the crash even if a category is missing.
This is my first time sharing a tip, hopefully it helps someone or i did it wrong, 😄
By the way, the new zen cart site looks awesome!

4 Sep 2026, 5:33 PM
#88
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

v1.1.0 of Google Product Search Feed II is now available for download: https://www.zen-cart.com/plugins/google-product-search-feed-ii-vb2379

This release contains changes associated with these 12 GitHub issues: https://github.com/lat9/gpsf/issues?q=is%3Aissue%20milestone%3Av1.1.0

Note that this release drops support for Zen Cart 1.5.8 (i.e. ZC 2.0.0 and later are required).

25 Sep 2026, 9:39 AM
#89
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Hi there,

I tried 1.10 and I seem to get the following error:-

[25-Sep-2026 10:36:37 Europe/London] PHP Fatal error: Uncaught TypeError: Cannot assign string to property gpsfFeedGenerator::$currencyValue of type int|float in /includes/classes/gpsfFeedGenerator.php:90
Stack trace:
#0 /gpsf_main_controller.php(75): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /includes/classes/gpsfFeedGenerator.php on line 90

I am in UK so maybe its a currency thing? Was okay on previous versions

Regards,

James

25 Sep 2026, 9:56 AM
#90
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,293
Plugin Contributions:
39

Re: Google Product Search Feeder II [Support Thread]

heathenmagic:

Hi there,

I tried 1.10 and I seem to get the following error:-

[25-Sep-2026 10:36:37 Europe/London] PHP Fatal error: Uncaught TypeError: Cannot assign string to property gpsfFeedGenerator::$currencyValue of type int|float in /includes/classes/gpsfFeedGenerator.php:90
Stack trace:
#0 /gpsf_main_controller.php(75): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /includes/classes/gpsfFeedGenerator.php on line 90

I am in UK so maybe its a currency thing? Was okay on previous versions

Regards,

James

replace line 90 in includes/classes/gpsfFeedGenerator.php

$this->currencyValue = $currencies->get_value($this->currencyCode);

with

$this->currencyValue = (float)$currencies->get_value($this->currencyCode);

Might do the trick for you =)

PRO-Webs, Inc. since 2003 https://pro-webs.net/

25 Sep 2026, 1:29 PM
#91
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Google Product Search Feeder II [Support Thread]

Oh wow thanks that worked a treat!

mprough:

heathenmagic:

Hi there,

I tried 1.10 and I seem to get the following error:-

[25-Sep-2026 10:36:37 Europe/London] PHP Fatal error: Uncaught TypeError: Cannot assign string to property gpsfFeedGenerator::$currencyValue of type int|float in /includes/classes/gpsfFeedGenerator.php:90
Stack trace:
#0 /gpsf_main_controller.php(75): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /includes/classes/gpsfFeedGenerator.php on line 90

I am in UK so maybe its a currency thing? Was okay on previous versions

Regards,

James

replace line 90 in includes/classes/gpsfFeedGenerator.php

$this->currencyValue = $currencies->get_value($this->currencyCode);

with

$this->currencyValue = (float)$currencies->get_value($this->currencyCode);

Might do the trick for you =)

26 Sep 2026, 12:22 PM
#92
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

heathenmagic:

Oh wow thanks that worked a treat!

mprough:

heathenmagic:

Hi there,

I tried 1.10 and I seem to get the following error:-

[25-Sep-2026 10:36:37 Europe/London] PHP Fatal error: Uncaught TypeError: Cannot assign string to property gpsfFeedGenerator::$currencyValue of type int|float in /includes/classes/gpsfFeedGenerator.php:90
Stack trace:
#0 /gpsf_main_controller.php(75): gpsfFeedGenerator->__construct()
#1 {main}
thrown in /includes/classes/gpsfFeedGenerator.php on line 90

I am in UK so maybe its a currency thing? Was okay on previous versions

Regards,

James

replace line 90 in includes/classes/gpsfFeedGenerator.php

$this->currencyValue = $currencies->get_value($this->currencyCode);

with

$this->currencyValue = (float)$currencies->get_value($this->currencyCode);

Might do the trick for you =)

What version of Zen Cart is in use?

26 Sep 2026, 8:44 PM
#94
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Google Product Search Feeder II [Support Thread]

heathenmagic:

Hi there,

I am on 2.1 but working on upgrading asap.

Regards,

James

Sigh, I'm going to have to stop supporting multiple Zen Cart versions; the $currencies->value() method was updated in ZC 2.2.0 to return a float|int. The suggestion that @mprough provided is what I would have suggested!