Jump to content

RobinSomes

Member
  • Posts

    45
  • Joined

  • Last visited

Posts posted by RobinSomes

  1. 4 hours ago, bsmither said:

    1. No.

    2. Unknown.

    3. There was something similar. That person unchecked the GD extension in the Cpanel, saved, then re-checked it, saved.

    If you can get into admin, at the bottom of the left pane Navigation, click PHP Info.

    On that screen, scroll to the table gd. That table will be located between ftp and gettext, if it is loaded - not present otherwise.

     

    Many thanks,

    I can access admin - I simply have a red warning at the top of the dashboard:

    WARNING: Your store appears to be using source code from 6.5.1 but the database is still at 6.4.10. Please complete the upgrade by running the setup process.

    The rest of the pages work as normal, and the shop itself still seems to function (though I haven't tried putting through a test purchase).

    Looking at PHP Info, there is a "GD Imaging" entry in the Module Authors table - but no separate table just for gd between ftp and gettext.

    In Control Panel, I have unchecked gd , saved, re-checked and saved, which has made no difference.

    In other words, CPanel says it's installed, but it isn't. Job for the hosting co., then.

    Thanks again,

    Robin

  2. 7 minutes ago, bsmither said:

    I added more to my post above. Please reload this forum page.

    There is no urgency in removing the debugging code. It does not affect how CubeCart runs.

    Many thanks indeed. It's very much appreciated. I have the original versions of all the edited files; I'll restore them in a couple of days if things are all still in order. Will now set about the hosting providers and see what they can do about ionCube.

    Thanks again.

  3. 17 minutes ago, bsmither said:

    The safe mode is still true?

    Have CubeCart clear it's internal cache. (Although needing to do that, if that fixes it, is very strange.)

     

    Hmmm. Despite me uploading the *modified* version of global.inc.php, again, yes it *was* still true. How embarrassing. It looks like FileZilla reports a successful upload, even if the target file was set to 0444 and wasn't actually overwritten.

    So, now that $glob['safe_mode'] really does = false, suddenly things look a whole lot rosier. PayPal options appear all over the Checkout page, and (hopefully I haven't redacted too many bits):
    Debug Messages:
    [0] HookLoader::load:285:We found class.cubecart.display_gateways in the hook list.
    [1] HookLoader::load:291:The hook file exists and passed the security check: /[REDACTED]l/piscesconservation.com/cube/modules/plugins/paypal_commerce/hooks/class.cubecart.display_gateways.php
    [2] :15:PayPal Commerce:Array ( [status] => 1 [countries] => [client_id] => [READCTED] [client_secret] =>[REDACTED] [merchantIdInPayPal] => [REDACTED] [merchantId] => [REDACTED] [status_change_time] => capture [settlement] => capture [smart_layout] => horizontal [smart_color] => gold [smart_shape] => rect [smart_label] => checkout [smart_tagline] => true [smart_height] => 40 [ccf] => 1 [3ds] => 1 [install_time] => 1677101689 [pay_later_button] => 1 [venmo_button] => 0 [pay_later_messaging] => 1 [plm_home] => 1 [plm_category] => 1 [plm_product] => 1 [plm_cart] => 1 [plm_payment] => 1 [display_pdp] => 1 [primary_email] =>[REDACTED] [webhook_id] => [REDACTED] )
    [3] Cubecart::_listPaymentOptions:2319:Gateways? Yes:How many? 2
    [4] Cubecart::_listPaymentOptions:2322:Gateway => Array ( [module_id] => 1584 [module] => gateway [folder] => SagePay [status] => 1 [default] => 1 [countries] => [position] => 0 )
    [5] Cubecart::_listPaymentOptions:2322:Gateway => Array ( [plugin] => 1 [base_folder] => paypal_commerce [folder] => paypal_commerce [desc] => /cube/modules/plugins/paypal_commerce/images/gb.jpg [default] => 1 )

     

  4. 12 minutes ago, bsmither said:

    Re-edit globals.inc.php and set safe mode to true.

    Then, in admin, Manage Extensions, delete the Product Addons plugin. (Maybe just disabling the plugin will suffice.)

    Then, re-edit globals.inc.php and set safe mode to false.

    If you haven't done so already, convince your hosting provider to install ionCube to your server environment.

    Yes. I'm on PHP 8.0.x at the moment, for which ionCube will never be available, according to this:
    https://blog.ioncube.com/2022/08/12/ioncube-php-8-1-support-faq-were-almost-ready/

    The hosting provider offers PHP 8.1.x as an option, for which ionCube may or may not be available, depending what one reads and where - it's certainly not enabled in the current PHP installation as standard, but I will ask them.

    My alternative would be to switch back to PHP 7.4 - on which the shop site worked well for a couple of years - but then the other domain under the same hosting account would start throwing error messages at me, as it's Joomla-based and requires at least 8.0. Leaving aside the usual wisdom of updating to the latest stable versions of everything.

    Meanwhile, back in CubeCart; with safe mode set to false:
    Debug Messages:
    [0] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [1] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [2] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [3] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [4] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [5] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [6] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [7] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [8] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [9] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [10] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [11] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [12] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [13] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [14] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [15] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [16] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [17] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [18] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [19] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [20] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [21] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [22] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [23] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [24] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [25] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [26] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [27] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [28] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [29] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [30] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [31] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [32] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [33] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [34] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [35] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [36] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [37] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [38] Cubecart::_listPaymentOptions:2319:Gateways? Yes:How many? 1
    [39] Cubecart::_listPaymentOptions:2322:Gateway => Array ( [module_id] => 1584 [module] => gateway [folder] => SagePay [status] => 1 [default] => 1 [countries] => [position] => 0 )
    [40] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [41] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [42] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [43] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [44] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [45] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [46] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [47] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [48] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [49] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [50] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [51] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [52] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [53] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [54] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [55] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [56] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [57] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [58] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [59] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [60] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [61] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [62] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [63] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [64] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [65] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [66] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [67] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [68] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [69] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [70] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [71] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [72] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [73] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [74] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [75] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [76] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [77] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [78] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [79] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [80] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [81] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [82] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [83] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [84] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [85] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [86] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [87] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [88] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [89] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [90] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [91] HookLoader::load:279:Whoa! Safe Mode is enabled!
    [92] HookLoader::load:279:Whoa! Safe Mode is enabled!

  5. 5 hours ago, bsmither said:

    In the file /includes/global.inc.php:

    Find:
    
    $glob['safe_mode'] = true;
    
    Change to:
    
    $glob['safe_mode'] = false;

    This file is probably set to "Read-Only" by the operating system. You will need to change that so that the file can be edited.

    "Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance."

    On both the shop and the admin pages.

  6. 3 hours ago, bsmither said:

    No message from the PayPal hook.

    This will check if CubeCart is even becoming aware of PayPal's hooks.

    In /classes/hookloader.class.php:

    Near lines 450-452, find:
    
                    $this->_hook_list[$hook['trigger']][$hook['plugin']] = $hook;
                }
                return true;
    
    On the same line, after the closing parenthesis on the middle line, add:
    
    foreach ($this->_hook_list as $hook['trigger'] => $trigger_plugin) { $GLOBALS['debug']->debugMessage(__METHOD__.':'.__LINE__.':'.'Hooks: '.$hook['trigger'].' => '.print_r($trigger_plugin,true)); }

     

    Debug Messages:
    [0] HookLoader::_build_hooks_list:451:Hooks: admin.navigation => Array ( [product_addons] => Array ( [hook_id] => 204 [plugin] => product_addons [hook_name] => Noodleman :: Navigation Menu Item [enabled] => 1 [trigger] => admin.navigation [filepath] => [priority] => 0 ) )
    [1] HookLoader::_build_hooks_list:451:Hooks: admin.product.save.post_process => Array ( [product_addons] => Array ( [hook_id] => 205 [plugin] => product_addons [hook_name] => Noodleman :: Save Addons [enabled] => 1 [trigger] => admin.product.save.post_process [filepath] => [priority] => 0 ) )
    [2] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.display_product => Array ( [product_addons] => Array ( [hook_id] => 206 [plugin] => product_addons [hook_name] => Noodleman :: Product Page [enabled] => 1 [trigger] => class.cubecart.display_product [filepath] => [priority] => 0 ) )
    [3] HookLoader::_build_hooks_list:451:Hooks: controller.index => Array ( [product_addons] => Array ( [hook_id] => 207 [plugin] => product_addons [hook_name] => Listener [enabled] => 1 [trigger] => controller.index [filepath] => [priority] => 0 ) [paypal_commerce] => Array ( [hook_id] => 241 [plugin] => paypal_commerce [hook_name] => Index Controller [enabled] => 1 [trigger] => controller.index [filepath] => [priority] => 0 ) )
    [4] HookLoader::_build_hooks_list:451:Hooks: class.cart.clear => Array ( [product_addons] => Array ( [hook_id] => 208 [plugin] => product_addons [hook_name] => Empty Cart [enabled] => 1 [trigger] => class.cart.clear [filepath] => [priority] => 0 ) [paypal_commerce] => Array ( [hook_id] => 247 [plugin] => paypal_commerce [hook_name] => Clear Cart [enabled] => 1 [trigger] => class.cart.clear [filepath] => [priority] => 0 ) )
    [5] HookLoader::_build_hooks_list:451:Hooks: class.cart.construct.pre => Array ( [product_addons] => Array ( [hook_id] => 209 [plugin] => product_addons [hook_name] => Construct Pre [enabled] => 1 [trigger] => class.cart.construct.pre [filepath] => [priority] => 0 ) [paypal_commerce] => Array ( [hook_id] => 252 [plugin] => paypal_commerce [hook_name] => Prevent basket changes [enabled] => 1 [trigger] => class.cart.construct.pre [filepath] => [priority] => 0 ) )
    [6] HookLoader::_build_hooks_list:451:Hooks: class.order.products.add.pre => Array ( [product_addons] => Array ( [hook_id] => 210 [plugin] => product_addons [hook_name] => Order Inventory [enabled] => 1 [trigger] => class.order.products.add.pre [filepath] => [priority] => 0 ) )
    [7] HookLoader::_build_hooks_list:451:Hooks: controller.admin => Array ( [product_addons] => Array ( [hook_id] => 211 [plugin] => product_addons [hook_name] => Custom Admin JS [enabled] => 1 [trigger] => controller.admin [filepath] => [priority] => 0 ) )
    [8] HookLoader::_build_hooks_list:451:Hooks: admin.category.save.pre_process => Array ( [product_addons] => Array ( [hook_id] => 212 [plugin] => product_addons [hook_name] => Category Clone [enabled] => 1 [trigger] => admin.category.save.pre_process [filepath] => [priority] => 0 ) )
    [9] HookLoader::_build_hooks_list:451:Hooks: class.gui.head_js => Array ( [paypal_commerce] => Array ( [hook_id] => 242 [plugin] => paypal_commerce [hook_name] => JS [enabled] => 1 [trigger] => class.gui.head_js [filepath] => [priority] => 0 ) )
    [10] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.display_basket.alternate => Array ( [paypal_commerce] => Array ( [hook_id] => 243 [plugin] => paypal_commerce [hook_name] => Checkout Smart Button [enabled] => 1 [trigger] => class.cubecart.display_basket.alternate [filepath] => [priority] => 0 ) )
    [11] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.pre_basket => Array ( [paypal_commerce] => Array ( [hook_id] => 244 [plugin] => paypal_commerce [hook_name] => Create Order [enabled] => 1 [trigger] => class.cubecart.pre_basket [filepath] => [priority] => 0 ) )
    [12] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.construct.confirm => Array ( [paypal_commerce] => Array ( [hook_id] => 245 [plugin] => paypal_commerce [hook_name] => Create Customer [enabled] => 1 [trigger] => class.cubecart.construct.confirm [filepath] => [priority] => 0 ) )
    [13] HookLoader::_build_hooks_list:451:Hooks: class.cart.update => Array ( [paypal_commerce] => Array ( [hook_id] => 246 [plugin] => paypal_commerce [hook_name] => Update order [enabled] => 1 [trigger] => class.cart.update [filepath] => [priority] => 0 ) )
    [14] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.display_gateways => Array ( [paypal_commerce] => Array ( [hook_id] => 248 [plugin] => paypal_commerce [hook_name] => Display Gateway or Make Payment [enabled] => 1 [trigger] => class.cubecart.display_gateways [filepath] => [priority] => 0 ) )
    [15] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.construct.cancel => Array ( [paypal_commerce] => Array ( [hook_id] => 249 [plugin] => paypal_commerce [hook_name] => Cancel PayPal Commerce [enabled] => 1 [trigger] => class.cubecart.construct.cancel [filepath] => [priority] => 0 ) )
    [16] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.construct.callback.gateway => Array ( [paypal_commerce] => Array ( [hook_id] => 250 [plugin] => paypal_commerce [hook_name] => Path to plugin gateway class [enabled] => 1 [trigger] => class.cubecart.construct.callback.gateway [filepath] => [priority] => 0 ) )
    [17] HookLoader::_build_hooks_list:451:Hooks: class.cubecart.construct.gateway => Array ( [paypal_commerce] => Array ( [hook_id] => 251 [plugin] => paypal_commerce [hook_name] => Finalize order [enabled] => 1 [trigger] => class.cubecart.construct.gateway [filepath] => [priority] => 0 ) )
    [18] HookLoader::_build_hooks_list:451:Hooks: class.order.order_status => Array ( [paypal_commerce] => Array ( [hook_id] => 253 [plugin] => paypal_commerce [hook_name] => Void auth for cancelled order [enabled] => 1 [trigger] => class.order.order_status [filepath] => [priority] => 0 ) )
    [19] HookLoader::_build_hooks_list:451:Hooks: class.gui.display_side_basket => Array ( [paypal_commerce] => Array ( [hook_id] => 254 [plugin] => paypal_commerce [hook_name] => Hide Checkout Button [enabled] => 1 [trigger] => class.gui.display_side_basket [filepath] => [priority] => 0 ) )
    [20] Cubecart::_listPaymentOptions:2319:Gateways? Yes:How many? 1
    [21] Cubecart::_listPaymentOptions:2322:Gateway => Array ( [module_id] => 1584 [module] => gateway [folder] => SagePay [status] => 1 [default] => 1 [countries] => [position] => 0 )

  7. 3 minutes ago, bsmither said:

    Not having ionCube available for your hosting environment will not affect the operation of the PayPal Commerce module.

     

    Thank you. I'll leave that as it is for the moment, then. Meanwhile, I've just tried your suggestion for editing /includes/global.inc.php . $glob['safe_mode'] was *already* set to true. Resetting it to 'false' hasn't produced any noticeable change in the site or the admin pages. 

    error_log still contains the line

    [24-Feb-2023 23:24:18 Europe/London] PHP Warning:  Undefined array key "base_folder" in /{REDACTED}/piscesconservation.com/cube/classes/cubecart.class.php on line 2323

  8. 17 minutes ago, bsmither said:

    Please bring up for editing the file /includes/global.inc.php.

    Before the very last line (the last line being ?>) you might find:

    $glob['safe_mode'] = false; // Set to true to disable hooks and code snippets, 'hooks' to disable code hooks and 'snippets' to disable code snippets

    In order to actually make changes, you may have to first make the file not read-only.

    Then change the false to true. Save.

    This will inhibit all hooks and code snippets. An admin can still (I think) make changes to the plugin's settings (meaning ionCube encoded modules can still cause problems if the encoder and the version of PHP are mismatched), but however the plugin may affect the operation of CubeCart - all that is inhibited.

    This does bring up one other observation. I have just tried to examine the settings for the Product Addons plugin, and got an error message saying Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. This reminds me of the other reason Product Addons isn't being used.

    The server is running PHP 8.0.x, for which the ionCube extension is not available, and possibly never will be. We have to run PHP 8 (rather than 7.4 as we were before) because the other site under that domain is based on Joomla, which requires it. 

    So, could that affect the running of paypal_commerce too?

    I'll try your suggestion shortly.

    I've just checked the installation of PHP 8.1 on my server to see if that does support ionCube, and it doesn't, so I'd have to ask the ISP if they can install it (and possibly other extensions needed). But it's now 11.15 on a Friday night, so my patience for doing that is limited. Maybe later. 

  9. 18 minutes ago, RobinSomes said:

    It's very odd indeed, given that the rest of the site and admin pages appear to be functioning as they should. While the number of sales we get through the site is not huge, in the long run we probably are losing some customers who prefer PayPal, so it would be as well to get it working if we can. Any suggestions for how to proceed next would be welcome.

    In a fit of curiosity I have just disabled the paypal_commerce plugin, and enabled the old PayPal Standard Payment Gateway. Now that *does* result in the PayPal option appearing at the bottom of the checkout page, maybe because it's a gateway, not a plugin. 

    The only other plugin I have is Noodleman's Product Addons, which rarely gets used now, since there's a dwindling number of products that require it, and they almost never sell. So, if *that* were not working, I probably wouldn't notice from one year to the next.

    All of which leads me to ask, is there an option somewhere in the Admin interface, or elsewhere buried deep in php, to disable all use of plugins? Perhaps my chubby fingers have inadvertently unticked a checkbox?

  10. 56 minutes ago, bsmither said:

    I am not able to determine where there may be any other points of interest to examine to explain why the PayPal Commerce is not showing as a choice at checkout.

    That 'base_folder' error message is very concerning, but I cannot determine what could be triggering that error.

    We could begin some complex troubleshooting.

     

    It's very odd indeed, given that the rest of the site and admin pages appear to be functioning as they should. While the number of sales we get through the site is not huge, in the long run we probably are losing some customers who prefer PayPal, so it would be as well to get it working if we can. Any suggestions for how to proceed next would be welcome.

  11. 3 hours ago, bsmither said:

    Just to confirm, the PayPal module is installed in CubeCart's /modules/plugins/ folder? The module's folder is named paypal_commerce (spelled exactly that way)?

    Please create PHP's error log. See:

    https://forums.cubecart.com/topic/51550-how-to-create-the-error-log/

     

    Thanks again, Brian; PayPal module appears to be installed, and spelt, in the correct place. I've added a couple of things to the basket, gone through to checkout, entered name and address details and gone through to the next 2 pages, stopping just short of choosing the payment method in SagePay. error_log says:

    [23-Feb-2023 21:31:08 Europe/London] PHP Warning:  Undefined array key "admin_id" in {REDACTED}/cube/classes/admin.class.php on line 151
    [23-Feb-2023 21:31:20 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:20 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:31:23 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:23 Europe/London] PHP Warning:  Undefined variable $stock_warning in {REDACTED}/cube/classes/cart.class.php on line 426
    [23-Feb-2023 21:31:24 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:25 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:31:26 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:26 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:29 Europe/London] PHP Warning:  Undefined variable $list in {REDACTED}/cube/classes/catalogue.class.php on line 794
    [23-Feb-2023 21:31:32 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:31:32 Europe/London] PHP Warning:  Undefined variable $list in {REDACTED}/cube/classes/catalogue.class.php on line 794
    [23-Feb-2023 21:31:32 Europe/London] PHP Warning:  Undefined variable $list in {REDACTED}/cube/classes/catalogue.class.php on line 794
    [23-Feb-2023 21:31:33 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:35 Europe/London] PHP Warning:  Undefined variable $stock_warning in {REDACTED}/cube/classes/cart.class.php on line 426
    [23-Feb-2023 21:31:35 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:35 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:31:36 Europe/London] PHP Warning:  Undefined array key "comments_width" in {REDACTED}/cube/modules/social/Facebook/social.class.php on line 52
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "billing_address" in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Trying to access array offset on value of type null in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:31:37 Europe/London] PHP Warning:  Undefined array key "base_folder" in {REDACTED}/cube/classes/cubecart.class.php on line 2323
    [23-Feb-2023 21:31:40 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:31:41 Europe/London] PHP Warning:  Undefined array key "billing_address" in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:31:41 Europe/London] PHP Warning:  Trying to access array offset on value of type null in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined variable $missing_field in {REDACTED}/cube/classes/cubecart.class.php on line 1023
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "digital_only" in {REDACTED}/cube/classes/cubecart.class.php on line 1109
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined variable $error_messages in {REDACTED}/cube/classes/cubecart.class.php on line 1155
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "base_folder" in {REDACTED}/cube/classes/cubecart.class.php on line 2323
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:32:05 Europe/London] PHP Warning:  Undefined array key "base_folder" in {REDACTED}/cube/classes/cubecart.class.php on line 2323
    [23-Feb-2023 21:32:11 Europe/London] PHP Warning:  Undefined array key "_g" in {REDACTED}/cube/classes/ssl.class.php on line 39
    [23-Feb-2023 21:32:11 Europe/London] PHP Warning:  Undefined array key "billing_address" in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:32:11 Europe/London] PHP Warning:  Trying to access array offset on value of type null in {REDACTED}/cube/classes/cubecart.class.php on line 1222
    [23-Feb-2023 21:32:15 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:32:15 Europe/London] PHP Warning:  Undefined variable $missing_field in {REDACTED}/cube/classes/cubecart.class.php on line 1023
    [23-Feb-2023 21:32:15 Europe/London] PHP Warning:  Undefined variable $error_messages in {REDACTED}/cube/classes/cubecart.class.php on line 1155
    [23-Feb-2023 21:32:15 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:32:15 Europe/London] PHP Warning:  Undefined array key "base_folder" in {REDACTED}/cube/classes/cubecart.class.php on line 2323
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "retrieve" in {REDACTED}/cube/classes/order.class.php on line 674
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/order.class.php on line 1355
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "options" in {REDACTED}/cube/classes/order.class.php on line 1373
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/order.class.php on line 1355
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "options" in {REDACTED}/cube/classes/order.class.php on line 1373
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "iframe" in {REDACTED}/cube/modules/gateway/SagePay/gateway.class.php on line 191
    [23-Feb-2023 21:32:16 Europe/London] PHP Warning:  Undefined array key "phone" in {REDACTED}/cube/modules/gateway/SagePay/gateway.class.php on line 238
    [23-Feb-2023 21:32:26 Europe/London] PHP Warning:  Undefined array key "options_identifier" in {REDACTED}/cube/classes/cart.class.php on line 1225
    [23-Feb-2023 21:32:26 Europe/London] PHP Warning:  Undefined array key "packagingWeight" in {REDACTED}/cube/modules/shipping/All_In_One_Shipping/shipping.class.php on line 40
    [23-Feb-2023 21:32:26 Europe/London] PHP Warning:  Undefined array key "base_folder" in {REDACTED}/cube/classes/cubecart.class.php on line 2323
    [23-Feb-2023 21:32:36 Europe/London] PHP Warning:  Trying to access array offset on value of type bool in {REDACTED}/cube/classes/cubecart.class.php on line 658
    [23-Feb-2023 21:32:36 Europe/London] PHP Warning:  Trying to access array offset on value of type null in {REDACTED}/cube/classes/cubecart.class.php on line 658
    [23-Feb-2023 21:32:36 Europe/London] PHP Warning:  Trying to access array offset on value of type bool in {REDACTED}/cube/classes/cubecart.class.php on line 694
    [23-Feb-2023 21:32:36 Europe/London] PHP Warning:  Trying to access array offset on value of type null in {REDACTED}/cube/classes/cubecart.class.php on line 695

    pp1.jpg

    pp2.jpg

  12. 23 hours ago, RobinSomes said:

    No entries at all in the System Error log (and nothing flagged in red in any of the other logs).

    Would there be any mileage in uninstalling PayPal Commerce and doing a fresh installation?

    Tried uninstalling/reinstalling - no luck, unfortunately.

  13. 7 hours ago, bsmither said:

    PayPal Commerce is actually a plugin.

    In admin, Error Log, see if there are any entries in the System Error Log tab.

     

    No entries at all in the System Error log (and nothing flagged in red in any of the other logs).

    Would there be any mileage in uninstalling PayPal Commerce and doing a fresh installation?

  14. 2 hours ago, bsmither said:

    "Shows only the radio button, but no text label."

    I recall one or two issues that this caused.

    Using an external database utility, examine the table CubeCart_modules. If there are any rows where the 'module' column is blank, delete that row.

    There is this issue, but it has been fixed.

    https://github.com/cubecart/v6/issues/3045

     

    This is what I see, using phpMyAdmin. Both SagePay and paypal_commerce are marked as default, but unchecking the default option for paypal_commerce in CC admin made no difference. Apart from that the only thing that stands out is that the module entry for paypal_commerce is set to 'plugins', not 'gateway'. I'm guessing that could be significant. However, changing the value to 'gateway' made no difference (so I've re-set it to 'plugins').
     

    ppal.jpg

  15. 12 minutes ago, bsmither said:

    The template content.checkout.php has the same $GATEWAYS loop. Try that one.

    But if you do not see PayPal as a choice in a list of possible payment gateways, then either CubeCart is deciding that PayPal is not enabled, or that PayPal is the one and only gateway available - so why make a list of choices having only one choice.

     

    Works with content.checkout.php:

    $GATEWAYS

    Origin: "Smarty object"

    Value

    Array (1)
    0 => Array (9)
      module_id => "1584"
      module => "gateway"
      folder => "SagePay"
      status => "1"
      default => "1"
      countries => null
      position => "0"
      description => "Credit/debit card via SagePay"
      checked => "checked="checked""

     

    If I disable the SagePay extension in the site admin pages, then the Checkout page shows only the radio button, but no text label. Adding {debug} to content.checkout.php then shows no variable $GATEWAYS

    I have tried disabling / re-enabling the PayPal Commerce Platform, and making it the default method, but that makes no difference.

  16. 9 minutes ago, bsmither said:

    Bring that skin template up for editing. At the very end, add {debug} and save.

    When next viewing that page, there will be a popup. (Your browser may complain about the page wanting to open a popup. Let it happen. The popup may show the whole page. If that happens, have the browser reload the page.)

    Remove the added {debug} and re-save the template. You only want that feature happening for as long as it takes to get the popup list of variables.

    The popup will show a list of all the variables assigned to the template rendering engine (Smarty). Scroll to find $GATEWAY. Determine if PayPal is present.

     

    Thanks Brian. Assuming that you mean /skins/foundation/templates/content.gateway.php, I've added {debug} at the very end, uploaded, refreshed the page, etc.

    No sign of a pop-up, or of the browser trying to stop one, consequently no list of variables.

    If not that file, which should I be editing?

  17. 51 minutes ago, Lastwolf said:

    try disconnecting and reconnecting your paypal account?

    Seems like a bug with one of the keys from the error displayed.

    Thank you; just tried that, but it has made no difference. I'd have a wild guess that the following lines from content.gateway.php might be connected:
     

          {foreach from=$GATEWAYS item=gateway}
          <li>
             <input name="gateway" type="radio" value="{$gateway.folder}" id="{$gateway.folder}" {$gateway.checked}>
             {if !empty($gateway.help)}
             <a href="{$gateway.help}" class="info" title="{$LANG.common.information}"><svg class="icon"><use xlink:href="#icon-info-circle"></use></svg></a>
             {/if}
             <label for="{$gateway.folder}">{$gateway.description}</label>
          </li>
          {/foreach}

    Perhaps $GATEWAYS is for some reason missing PayPal?

     

    6 minutes ago, bsmither said:

    The "has KEY expecting UNIQUE KEY" note is of no consequence with respect to databasing orders made.

    Are there a large amount of orders Pending - on the theory that shopping baskets were abandoned because of no PayPal method to make payment?

    Did PayPal still show as an option on checkout?

    On the admin Dashboard, does the sales chart show a noticeable drop after September?

    We have had a few orders left Pending, but I wouldn't say that the number was more than usual, nor was there a significant drop after September, I don't think (bearing in mind that the winter months tend to be quieter for us anyway).

    If I go through to Checkout, there is still no sign of PayPal as an independent option (although it does appear as one of the payment methods usable in the SagePay gateway, since I've just enabled that this morning).

    The disappearance of PayPal as an independent option pre-dates adding it to SagePay, I believe.

  18. 7 minutes ago, bsmither said:

    For step D, be sure that the updated plugins (that needs the ionCube that works with PHP 7.4) are not enabled. Otherwise, there is still the situation of an ionCube-encoded plugin wanting a later version of ionCube that is not running under PHP 5.6.

    Otherwise, the above is the sequence of steps I would suggest.

     

    Many thanks for your help. I'm at home now (hence commenting through my other CC forum account), and in any case awaiting confirmation from Noodleman about his plugin's compatibility; I'll have a go when I'm back at work tomorrow.

×
×
  • Create New...