Forums / Addon Admin Tools / Superglobals Plus

Superglobals Plus

Views: 22,680

Results 81 to 100 of 107
29 Jun 2017, 11:59 AM
#81
lat9 avatar

lat9

Administrator

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

Superglobals Plus

lat9:

I've just submitted v1.6.5 to the plugins for review, correcting the popup display that "got lost" in the v1.6.4 update.
... and it's now available for download.

17 Sep 2018, 11:27 AM
#82
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Superglobals Plus

On a test server I have

  • Zen Cart version 1.5.5f
  • PHP 7.2.9

I am getting the following warnings

[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning:  sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2#1  sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5  superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6  require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]


[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning:  sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2
#1  sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4  superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5  superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6  require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]

This may need some fixing in a future version

17 Sep 2018, 1:24 PM
#83
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: Superglobals Plus

Design75:

On a test server I have

  • Zen Cart version 1.5.5f
  • PHP 7.2.9

I am getting the following warnings

[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2#1 sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5 superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6 require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]

[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2
#1 sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5 superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6 require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]

> This may need some fixing in a future version

PHP 7.1.19 seems to be the highest version for ZC v1.5.5f.

jpda
17 Sep 2018, 2:03 PM
#84
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Superglobals Plus

jpda:

PHP 7.1.19 seems to be the highest version for ZC v1.5.5f.

jpda
Thanks, but I already knew that. My point was that on newer php versions a change is needed for this addon.

17 Sep 2018, 4:46 PM
#85
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

Design75:

On a test server I have

  • Zen Cart version 1.5.5f
  • PHP 7.2.9

I am getting the following warnings

[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2#1 sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5 superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6 require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]

[17-Sep-2018 10:33:05 Europe/Amsterdam] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php on line 174
[17-Sep-2018 10:33:05 Europe/Amsterdam] Request URI: /index.php?main_page=compare, IP address: 143.177.116.2
#1 sizeof() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:174]
#2 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:221]
#3 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:211]
#4 superglobals_format() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/functions/extra_functions/superglobals.php:60]
#5 superglobals_echo() called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:274]
#6 require(/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/zen4all-dev/domains/compare.zen4all-dev.nl/public_html/index.php:97]

> This may need some fixing in a future version
GitHub issue created for tracking: <https://github.com/lat9/super_globals_plus/issues/11>
7 Jan 2019, 1:28 PM
#86
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

lat9:

GitHub issue created for tracking: https://github.com/lat9/super_globals_plus/issues/11
I've just submitted v2.0.0 of Super Globals Plus to the Zen Cart plugins area for review. This version, compatible will Zen Cart versions 1.3.9a-1.5.6a, contains the changes associated with the following GitHub-identified issues:

#11: Need to check is_countable for PHP 7.2+
#12: Remove admin/template overwrites from this distribution; now covered in installation instructions.

10 Jan 2019, 1:46 PM
#87
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

lat9:

I've just submitted v2.0.0 of Super Globals Plus to the Zen Cart plugins area for review. This version, compatible will Zen Cart versions 1.3.9a-1.5.6a, contains the changes associated with the following GitHub-identified issues:

#11: Need to check is_countable for PHP 7.2+
#12: Remove admin/template overwrites from this distribution; now covered in installation instructions.
Now available for download from the Zen Cart plugins area: https://www.zen-cart.com/downloads.php?do=file&id=524

13 Jun 2019, 12:55 PM
#88
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

I've just submitted v2.0.1 of Super Globals to the plugin moderators for review and will post back here once it's available for download.

This release contains the changes associated with the following GitHub issues:

#13: (Documentation) Correct admin-footer constant error
#14: Correct "Only variables should be passed by reference"

Thanks, @torvista, for identifying the issues!

17 Jun 2019, 4:36 PM
#89
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

lat9:

I've just submitted v2.0.1 of Super Globals to the plugin moderators for review and will post back here once it's available for download.

This release contains the changes associated with the following GitHub issues:

#13: (Documentation) Correct admin-footer constant error
#14: Correct "Only variables should be passed by reference"

Thanks, @torvista, for identifying the issues!
Now available for download from the Zen Cart plugins area: https://www.zen-cart.com/downloads.php?do=file&id=524

18 Aug 2019, 11:03 PM
#90
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,862
Plugin Contributions:
18

Re: Superglobals Plus

PHP 7.2.21
MySQL 5.7.27
ZC 1.5.6c New Install
Apache
No Categories or Products

Installed Mods:
MagicThumb
Instant Search
Mod List - (All latest forum or github version)
Report All Errors
Responsive Color Changes
Sitemap XML
Super Globals Plus
USPS
zenNonCaptcha
ckeditor
clone template
display logs
Encrypted Master Password

Getting:```
[18-Aug-2019 20:17:52 UTC] Request URI: /156c//keepalive.php?_=1566159280046, IP address: 000.000.000.000
#1 include(/home/
/public_html/156c/includes/functions/extra_functions/superglobals.php) called at [/home//public_html/156c//includes/functions/extra_functions/superglobals.php:78]
#2 require(/home//public_html/156c//includes/functions/extra_functions/superglobals.php) called at [/home//public_html/156c//includes/init_includes/init_general_funcs.php:45]
#3 require(/home//public_html/156c//includes/init_includes/init_general_funcs.php) called at [/home//public_html/156c/includes/autoload_func.php:48]
#4 require(/home/
/public_html/156c/includes/autoload_func.php) called at [/home//public_html/156c//includes/application_top.php:171]
#5 require(/home//public_html/156c//includes/application_top.php) called at [/home//public_html/156c//keepalive.php:9]
--> PHP Warning: Use of undefined constant SHOW_SUPERGLOBALS_QUERYCACHE - assumed 'SHOW_SUPERGLOBALS_QUERYCACHE' (this will throw an Error in a future version of PHP) in /home/******/public_html/156c/includes/functions/extra_functions/superglobals.php on line 62.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2019, 11:15 AM
#91
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

@dbltoe, the issue appears to be twofold:

  1. I'll get /includes/functions/extra_functions/superglobals.php updated to check for the presence of that constant before use.

  2. Since that setting was introduced back in 2012, it looks like ***you ***might not have copied /admin/includes/functions/extra_functions/superglobals.php (which does the plugin's database initialization).

19 Aug 2019, 12:00 PM
#92
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,862
Plugin Contributions:
18

Re: Superglobals Plus

Here's what's at admin/includes/functions/extra_functions/superglobals.php```

<?php// ----- // Starting with v1.6.0 of the plugin, perform the auto-install of the various configuration items. // $configurationGroupTitle = 'Superglobals'; $configuration = $db->Execute("SELECT configuration_group_id FROM " . TABLE_CONFIGURATION_GROUP . " WHERE configuration_group_title = '$configurationGroupTitle' LIMIT 1"); if ($configuration->EOF) { $db->Execute("INSERT INTO " . TABLE_CONFIGURATION_GROUP . " (configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('$configurationGroupTitle', 'Superglobals Settings', '1', '1');"); $configuration_group_id = $db->Insert_ID(); $db->Execute("UPDATE " . TABLE_CONFIGURATION_GROUP . " SET sort_order = $configuration_group_id WHERE configuration_group_id = $configuration_group_id;"); } else { $configuration_group_id = $configuration->fields['configuration_group_id']; } // ----- // Set the various configuration items, if Super Globals wasn't previously installed. // if (!defined ('SHOW_SUPERGLOBALS')) { $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Enable Superglobals (catalog)', 'SHOW_SUPERGLOBALS', 'false', 'If true, the Superglobals will be shown in the shop at the bottom of the pages (and depending on the settings below).', $configuration_group_id, 10, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Enable Superglobals (admin)', 'SHOW_SUPERGLOBALS_ADMIN', 'false', 'If true, the Superglobals will be shown in the admin at the top of pages (and depending on the settings below).', $configuration_group_id, 15, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show Superglobals in Popup', 'SHOW_SUPERGLOBALS_POPUP', 'true', 'If true the Superglobals will be displayed in a popup window, using javascript. Set to false if you do not want or can not use javascript and the Superglobals will be displayed at the bottom of each page.', $configuration_group_id, 18, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show the Superglobals to all (no IP check)', 'SHOW_SUPERGLOBALS_TO_ALL', 'false', 'If true, the Superglobals will be shown to every visitor (= Security risk).', $configuration_group_id, 20, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'List of allowed IP addresses (comma separated list)', 'SHOW_SUPERGLOBALS_IP', '127.0.0.1,1,::1', 'Enter a comma separated list of allowed IP addresses. Default setting: 127.0.0.1,1,::1 (=localhost)', $configuration_group_id, 30, NULL, NULL)"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Maximum recursion level', 'SHOW_SUPERGLOBALS_MAX_LEVEL', '12', 'Enter the maximum recursion level. Default setting: 12. This prevents infinite loops in case of recursion (" . '$GLOBALS' . " recursion is automatically detected). 0 disables the maximum recursion level protection', $configuration_group_id, 32, NULL, NULL)"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$GLOBALS' . " (shows all globals)', 'SHOW_SUPERGLOBALS_ALL', 'false', 'Show the contents of all Globals as well as all Super Globals. If enabled, the below settings for showing Super Globals will be overridden.', $configuration_group_id, 34, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show the \"queryCache\" object?', 'SHOW_SUPERGLOBALS_QUERYCACHE', 'false', 'If <b>Show " . '$GLOBALS' . "</b> is set to \"true\", show the contents of the queryCache object?. If enabled, the amount of time required to format the " . '$GLOBALS' . " will be impacted.', $configuration_group_id, 35, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Filter HTTP_ variables', 'SHOW_SUPERGLOBALS_FILTER_HTTP', 'true', 'If true, the <em>deprecated</em> HTTP_ variables are filtered out (recommended).', $configuration_group_id, 36, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_GET' . "', 'SHOW_SUPERGLOBALS_GET', 'false', 'Show the contents of this variable.', $configuration_group_id, 40, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_POST' . "', 'SHOW_SUPERGLOBALS_POST', 'true', 'Show the contents of this variable.', $configuration_group_id, 50, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_COOKIE' . "', 'SHOW_SUPERGLOBALS_COOKIE', 'false', 'Show the contents of this variable.', $configuration_group_id, 60, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_REQUEST' . "', 'SHOW_SUPERGLOBALS_REQUEST', 'false', 'Show the contents of this variable.', $configuration_group_id, 65, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_SESSION' . "', 'SHOW_SUPERGLOBALS_SESSION', 'true', 'Show the contents of this variable.', $configuration_group_id, 70, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_SERVER' . "', 'SHOW_SUPERGLOBALS_SERVER', 'false', 'Show the contents of this variable.', $configuration_group_id, 80, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_ENV' . "', 'SHOW_SUPERGLOBALS_ENV', 'false', 'Show the contents of this variable.', $configuration_group_id, 90, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show " . '$_FILES' . "', 'SHOW_SUPERGLOBALS_FILES', 'false', 'Show the contents of this variable.', $configuration_group_id, 100, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show defined CONSTANTS', 'SHOW_SUPERGLOBALS_GET_DEFINED_CONSTANTS', 'false', 'Show all defined constants (Only switch on when needed, slows down page views!).', $configuration_group_id, 110, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Show included files', 'SHOW_SUPERGLOBALS_GET_INCLUDED_FILES', 'false', 'Show all included (and required) files.', $configuration_group_id, 120, NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')"); } if (!defined ('SHOW_SUPERGLOBALS_EXCLUSIONS')) { $db->Execute ("INSERT INTO " . TABLE_CONFIGURATION . " ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Super Globals Exclusions', 'SHOW_SUPERGLOBALS_EXCLUSIONS', 'configuration,saniGroup1,main_category_tree', 'Use this field to identify (using a packed, comma-separated list) any Super Globals that should <b>not</b> be displayed if <b>Show " . '$GLOBALS' . "</b> is set to \"true\". These variables typically are large arrays that do not contain pertinent information.<br />Default: <em>configuration,saniGroup1,main_category_tree</em>', $configuration_group_id, 37, NULL, NULL)"); } //---- // If the installation supports admin-page registration (i.e. v1.5.0 and later), then register the Superglobals configuration. // if (function_exists('zen_register_admin_page')) { if (!zen_page_key_exists('configSuperglobals')) { zen_register_admin_page('configSuperglobals', 'BOX_CONFIGURATION_SUPERGLOBALS', 'FILENAME_CONFIGURATION', "gID=$configuration_group_id", 'configuration', 'Y', $configuration_group_id); } } // ----- // Pull in the echo_superglobals() function. // define('SHOW_SUPERGLOBALS_FROM_ADMIN', TRUE); include (DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'extra_functions/superglobals.php'); ```

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2019, 12:19 PM
#93
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

What's the history of the site? Was this an upgrade or an initial install?

19 Aug 2019, 12:42 PM
#94
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,862
Plugin Contributions:
18

Re: Superglobals Plus

As stated earlier, put up new files for 1.5.6c (with no demo), immediately installed the mods, did not create any categories or products.
The error showed up once and has not repeated itself (sorry, left that part out)

PHP 7.2.21
MySQL 5.7.27
ZC 1.5.6c New Install
Apache
No Categories or Products

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2019, 12:48 PM
#95
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

OK, that makes sense (and the correction I've got on GitHub will, er, correct that).

The issue is that, on initial install, that storefront extra_functions file is loaded, but the configuration has not yet been set.

19 Aug 2019, 12:57 PM
#96
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,862
Plugin Contributions:
18

Re: Superglobals Plus

Figured it was something simple but wanted to let you know when and how it happened.

Thanks, again, for all you do for ZC

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

24 Aug 2019, 6:59 PM
#97
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

I've just submitted v2.0.2 to the Zen Cart moderators for review and will post back here once it's available for download.

 This release contains the change associated with the following GitHub issue (thanks, @dbltoe):

#15: Ensure configuration setting presence prior to use

4 Sep 2019, 12:49 PM
#98
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

lat9:

I've just submitted v2.0.2 to the Zen Cart moderators for review and will post back here once it's available for download.

 This release contains the change associated with the following GitHub issue (thanks, @dbltoe):

#15: Ensure configuration setting presence prior to use
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=524

29 Sep 2019, 3:59 PM
#99
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

I've just submitted v2.1.0 of Super Globals for the Zen Cart moderators' review and will post back here once it's available for download.

This version makes use of Zen Cart notifications rather than directly-input code blocks to enable a fairly drop-in plugin for zc156b and later; see GitHub issue #16 for details.

2 Oct 2019, 2:50 PM
#100
lat9 avatar

lat9

Administrator

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

Re: Superglobals Plus

lat9:

I've just submitted v2.1.0 of Super Globals for the Zen Cart moderators' review and will post back here once it's available for download.

This version makes use of Zen Cart notifications rather than directly-input code blocks to enable a fairly drop-in plugin for zc156b and later; see GitHub issue #16 for details.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=524