Page 1 of 8

v1.0.8.1 Questions / Comments / Concerns

Posted: Sat Mar 27, 2021 11:27 am
by ecartz
Update instructions (from 1.0.8.0): https://github.com/CE-PhoenixCart/Updat ... .1/1.0.8.0
Update zip: https://github.com/CE-PhoenixCart/Updat ... update.zip
Release: https://github.com/CE-PhoenixCart/Phoen ... g/v1.0.8.1

This is the 1.0.8.1 release, the start of the 1.0.8.* series. Primary changes:

1. Continues to replace the old naming scheme.
2. Replaces manually loaded function files with autoloaded class methods (getting classy).
3. Updates the certificate bundle for use with curl.
4. Converts to utf8mb4 for better internationalization support.
5. Adds a new hook for use by link rewriters.
6. Introduces chain hooks.
7. Better handling of countries in orders inserted before payment completion.

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sat Mar 27, 2021 1:56 pm
by mhsuffolk
1.0.8.1 PHP 7.4 Xampp
Updated the database tables collation using the database tables.php page
All tables updated correctly but this error was thrown at completion.

Fatal error: Uncaught Error: Call to undefined method Button::set_link() in D:\Phoenix_1_0_8_0\htdocs\****\database_tables.php:216 Stack trace: #0 {main} thrown in D:\Phoenix_1_0_8_0\htdocs\****\database_tables.php on line 216

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sat Mar 27, 2021 2:34 pm
by ecartz
mhsuffolk wrote: Sat Mar 27, 2021 1:56 pm 1.0.8.1 PHP 7.4 Xampp
Updated the database tables collation using the database tables.php page
All tables updated correctly but this error was thrown at completion.

Fatal error: Uncaught Error: Call to undefined method Button::set_link() in D:\Phoenix_1_0_8_0\htdocs\****\database_tables.php:216 Stack trace: #0 {main} thrown in D:\Phoenix_1_0_8_0\htdocs\****\database_tables.php on line 216
TY. https://github.com/CE-PhoenixCart/Phoen ... c830064e45

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sat Mar 27, 2021 8:57 pm
by philpla
Many thx for the new version ... and for the great work at all!!!

one point:
for the PayPal app ... the function getBalance did stop working for me.
After some research I found that the XHR call to admin/paypal.php has GET vars joined wrong
?action=balance&subaction=retrieve&type=live
I changed

Code: Select all

  $.get('{$get_balance_url}'.replace('PPTYPE', type), function (data) {
to

Code: Select all

  $.get('{$get_balance_url}'.replace('PPTYPE', type).replaceAll('&','&'), function (data) {
and it works now ... but anyway this is just a work around.

Maybe someone can look on it.

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sun Mar 28, 2021 11:42 am
by Fiber
New install with xampp in admin>Tools>Database Tables>thickbox right corner click all, and then choose a option for example analyze db tables see fatal error...

Code: Select all

Fatal error: Uncaught Error: Call to undefined function set() in E:\xampp\htdocs\1081\admin06\database_tables.php:85 Stack trace: #0 {main} thrown in E:\xampp\htdocs\1081\admin06\database_tables.php on line 85

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sun Mar 28, 2021 11:49 am
by ecartz
Fiber wrote: Sun Mar 28, 2021 11:42 am New install with xampp in admin>Tools>Database Tables>thickbox right corner click all, and then choose a option for example analyze db tables see fatal error...

Code: Select all

Fatal error: Uncaught Error: Call to undefined function set() in E:\xampp\htdocs\1081\admin06\database_tables.php:85 Stack trace: #0 {main} thrown in E:\xampp\htdocs\1081\admin06\database_tables.php on line 85
TY. https://github.com/CE-PhoenixCart/Phoen ... 1900d90493

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sun Mar 28, 2021 4:55 pm
by vmn
Vanilla 1.0.8.1 full installation.

If DEFAULT_IMAGE is set:

[28-Mar-2021 19:35:50 Europe/Helsinki] PHP Notice: Undefined variable: src in /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/image.php on line 102
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP Stack trace:
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 1. {main}() /opt/lampp/htdocs/shop/admin/configuration.php:0
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 2. require() /opt/lampp/htdocs/shop/admin/configuration.php:41
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 3. hooks->call() /opt/lampp/htdocs/shop/admin/includes/template_top.php:41
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 4. hooks->cat() /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/hooks.php:144
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 5. hook_admin_siteWide_hMenu->listen_injectBodyStart() /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/hooks.php:150
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 6. tep_image() /opt/lampp/htdocs/shop/includes/hooks/admin/siteWide/hMenu.php:80
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 7. Image->__toString() /opt/lampp/htdocs/shop/admin/includes/functions/html_output.php:72
...


Fix for includes/system/versioned/1.0.8.1/image.php:

public function __toString() {
$src = $this->parameters['src']; //VMN added
if (defined('DEFAULT_IMAGE') && !Text::is_empty(DEFAULT_IMAGE) && !is_file("{$this->prefix}$src")) {
...
}
}

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sun Mar 28, 2021 6:29 pm
by ecartz
vmn wrote: Sun Mar 28, 2021 4:55 pm If DEFAULT_IMAGE is set:

[28-Mar-2021 19:35:50 Europe/Helsinki] PHP Notice: Undefined variable: src in /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/image.php on line 102
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP Stack trace:
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 1. {main}() /opt/lampp/htdocs/shop/admin/configuration.php:0
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 2. require() /opt/lampp/htdocs/shop/admin/configuration.php:41
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 3. hooks->call() /opt/lampp/htdocs/shop/admin/includes/template_top.php:41
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 4. hooks->cat() /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/hooks.php:144
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 5. hook_admin_siteWide_hMenu->listen_injectBodyStart() /opt/lampp/htdocs/shop/includes/system/versioned/1.0.8.1/hooks.php:150
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 6. tep_image() /opt/lampp/htdocs/shop/includes/hooks/admin/siteWide/hMenu.php:80
[28-Mar-2021 19:35:50 Europe/Helsinki] PHP 7. Image->__toString() /opt/lampp/htdocs/shop/admin/includes/functions/html_output.php:72
TY. https://github.com/CE-PhoenixCart/Phoen ... 2915db599a

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Sun Mar 28, 2021 10:23 pm
by Owl
If you select the "Override" template:

Fatal error: Uncaught Error: Call to a member function real_escape_string() on array in /xxx/xxx/xxx/xxx/includes/functions/database.php:71 Stack trace: #0 /xxx/xxx/xxx/xxx/includes/functions/sessions.php(36): tep_db_input('d8tl1rkk5o2jaii...') #1 [internal function]: _sess_write('d8tl1rkk5o2jaii...', 'sessiontoken|s:...') #2 [internal function]: session_write_close() #3 {main} thrown in /xxx/xxx/xxx/xxx/includes/functions/database.php on line 71

PHP 7.4

Re: v1.0.8.1 Questions / Comments / Concerns

Posted: Mon Mar 29, 2021 12:39 am
by Owl
Went for the Clean install and also got this: