1.0.8.12 Questions / Comments / Concerns

Ask the community for help and support.
ecartz
Lead Developer
Lead Developer
Posts: 2637
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 181 times

1.0.8.12 Questions / Comments / Concerns

Post by ecartz »

Update instructions (from 1.0.8.11): https://github.com/CE-PhoenixCart/Updat ... /README.md
Update zip: https://github.com/CE-PhoenixCart/Updat ... update.zip
Release: https://github.com/CE-PhoenixCart/Phoen ... /v1.0.8.12

This is the 1.0.8.12 release, in the 1.0.8.* series. Primary changes:

1. Modernize PayPal App

This release only changes the PayPal App, as the PayPal App alone has enough files for a release. This updates from the old functions to the new class methods so that the PayPal App should continue to work in the 1.0.9.* series after the legacy functions are removed.

The next release will remove legacy files. Some are no longer used. Others will move out of core and into apps that can be installed separately. Subsequent releases will focus on updating admin to use the new class methods. The 1.0.8.* series will be finished when all references to the legacy functions are removed everywhere but the admin/includes/application_top.php file and the system hooks. In the 1.0.9.0 release, the legacy functions will still be available but no longer used in core. The 1.0.9.* series will remove the legacy functions entirely so that they are no longer available.

Tags:
artfulweb
VIP Member
VIP Member
Posts: 119
Joined: Thu Oct 29, 2020 12:34 pm
Has thanked: 11 times
Been thanked: 4 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by artfulweb »

Hi Matt,
Thanks for the update.

In admin=>Paypal =>Start the following errors occur:

PHP Notice: Undefined index: Linker in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php on line 21
PHP Fatal error: Uncaught Error: Call to a member function build() on null in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php:21
Stack trace:
#0 /xx/xx/xx/xx/catalog/admin/paypal.php(186): include()
#1 {main}
thrown in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php on line 21

Line 21 is:
<?= $OSCOM_PayPal->getDef('onboarding_intro_body', array('button_retrieve_live_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_live_credentials'), $GLOBALS['Admin']->link('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'live']), 'info'), 'button_retrieve_sandbox_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_sandbox_credentials'), $GLOBALS['Linker']->build('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'sandbox']), 'info'))) ?>
ecartz
Lead Developer
Lead Developer
Posts: 2637
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 181 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by ecartz »

artfulweb wrote: Wed Mar 02, 2022 11:37 am PHP Notice: Undefined index: Linker in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php on line 21
PHP Fatal error: Uncaught Error: Call to a member function build() on null in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php:21
TY. Change $GLOBALS['Linker']->build to $GLOBALS['Admin']->link as it is earlier in the line.
artfulweb
VIP Member
VIP Member
Posts: 119
Joined: Thu Oct 29, 2020 12:34 pm
Has thanked: 11 times
Been thanked: 4 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by artfulweb »

ecartz wrote: Wed Mar 02, 2022 12:29 pm
artfulweb wrote: Wed Mar 02, 2022 11:37 am PHP Notice: Undefined index: Linker in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php on line 21
PHP Fatal error: Uncaught Error: Call to a member function build() on null in /xx/xx/xx/xx/catalog/includes/apps/paypal/admin/content/start.php:21
TY. Change $GLOBALS['Linker']->build to $GLOBALS['Admin']->link as it is earlier in the line.

Thanks, Matt, that works.
On the other hand on clicking on "Retreive Live Credentials" the page refreshes and says "Could not initiate the start account procedure. Please try again in a short while." Is that normal?
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 146
Joined: Sat Oct 26, 2019 9:13 am
Has thanked: 8 times
Been thanked: 5 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by mhsuffolk »

artfulweb wrote: Wed Mar 02, 2022 1:13 pm
On the other hand on clicking on "Retreive Live Credentials" the page refreshes and says "Could not initiate the start account procedure. Please try again in a short while." Is that normal?
I think others have had that problem with later versions of the PP app. I believe the answer was copy paste manually from your PP account.
Live shop Phoenix 1.0.9.0 on PHP 8.0
bathurst
Posts: 4
Joined: Wed Mar 02, 2022 2:27 pm

Paypal Setup

Post by bathurst »

I'm a complete newby to Phoenix & am trying to set CEPhoenix on my new website. However, every time I try to access the "General" tab I get this:

Notice: Undefined index: Linker in /home/iptv/public_html/CEphoenix/includes/apps/paypal/cfg_params/ssl_version.php on line 59

Fatal error: Uncaught Error: Call to a member function build() on null in /home/iptv/public_html/CEphoenix/includes/apps/paypal/cfg_params/ssl_version.php:59 Stack trace: #0 /home/iptv/public_html/CEphoenix/includes/apps/paypal/OSCOM_PayPal.php(342): OSCOM_PayPal_Cfg_ssl_version->getSetField() #1 /home/iptv/public_html/CEphoenix/includes/apps/paypal/admin/content/configure.php(61): OSCOM_PayPal->getInputParameters('G') #2 /home/iptv/public_html/CEphoenix/admin/paypal.php(186): include('/home/iptv/publ...') #3 {main} thrown in /home/iptv/public_html/CEphoenix/includes/apps/paypal/cfg_params/ssl_version.php on line 59

This is a brand new installation any help would be appreciated.
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Paypal Setup

Post by heatherbell »

bathurst wrote: Thu Mar 03, 2022 9:44 pm Happens every time I try to access the general tab on Paypal module
In your /includes/apps/paypal/cfg_params/ssl_version.php
Change Line 59
from

Code: Select all

      $connection_test_url = $GLOBALS['Linker']->build('paypal.php', ['action' => 'ssltest']);
to

Code: Select all

      $connection_test_url = $GLOBALS['Admin']->link('paypal.php', ['action' => 'ssltest']);
philpla
Posts: 27
Joined: Sun Feb 28, 2021 8:37 am
Has thanked: 2 times
Been thanked: 1 time

Re: 1.0.8.12 Questions / Comments / Concerns

Post by philpla »

thx for the update :D

in admin backend if i click paypal -> configure (/admin/paypal.php?action=configure&module=G) i see the following error:

Code: Select all

PHP Warning:  include(/XXX/includes/apps/paypal/modules/G/G.php): failed to open stream: Datei oder Verzeichnis nicht gefunden in /XXX/includes/apps/paypal/OSCOM_PayPal.php on line 159, referer: https://shop.artyle.de/admin/paypal.php?action=configure
PHP Fatal error:  Uncaught Error: Class 'OSCOM_PayPal_G' not found in /XXX/shop_artyle/includes/apps/paypal/OSCOM_PayPal.php:162, referer: https://shop.artyle.de/admin/paypal.php?action=configure
Stack trace:, referer: https://shop.artyle.de/admin/paypal.php?action=configure
 #0 /XXX/includes/apps/paypal/admin/content/configure.php(112): OSCOM_PayPal->getModuleInfo('G', 'title'), referer: https://shop.artyle.de/admin/paypal.php?action=configure
 #1 /XXX/admin/paypal.php(186): include('/var/customers/...'), referer: https://shop.artyle.de/admin/paypal.php?action=configure
 #2 {main}, referer: https://shop.artyle.de/admin/paypal.php?action=configure
thrown in /XXX/includes/apps/paypal/OSCOM_PayPal.php on line 162, referer: https://shop.artyle.de/admin/paypal.php?action=configure
thx for helping
ecartz
Lead Developer
Lead Developer
Posts: 2637
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 181 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by ecartz »

philpla wrote: Fri Mar 04, 2022 10:59 am PHP Warning: include(/XXX/includes/apps/paypal/modules/G/G.php): failed to open stream: Datei oder Verzeichnis nicht gefunden in /XXX/includes/apps/paypal/OSCOM_PayPal.php on line 159, referer: https://shop.artyle.de/admin/paypal.php ... =configure
You could try changing 156-7 to

Code: Select all

      if ( !class_exists($class) ) {
        if (!file_exists(DIR_FS_CATALOG . "includes/apps/paypal/modules/$module/$module.php")) {
          return;
        }
        $this->loadLanguageFile("modules/$module/$module.php");
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: 1.0.8.12 Questions / Comments / Concerns

Post by heatherbell »

philpla wrote: Fri Mar 04, 2022 10:59 am thx for helping
Change the name of your admin folder to something more secure!
Post Reply