RobinSomes
Member-
Posts
51 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
RobinSomes's Achievements
-
@bsmither Having had a lengthy conversation with our hosting provider, we've tracked down the problem of downloads stalling at 500 MB, and it is fixed. The suggestion you provided on maxReqBodySize, and so on, was on the right track (except that those settings are unique to Windows servers and ours is Linux-based). This morning, I've heard from them: "I have been able to replicate the issue and was able to isolate settings on the server to adjust to allow that process script to function with the zip file. The new limit for this is set to 750MB in size and is a setting to help prevent any accidental infinite loops from eating up resources on the server. If you start to exceed this limit, then I would recommend breaking the zip file into two files or links to download to keep the file size usage lower and easier for your clients to download. Or go with a VPS server solution since you would retain full control over the server and not be sharing any resources with other users." Happy to say that it now functions perfectly. Thanks as always for your input; much appreciated. Robin
-
Yes, both are using Chrome, and so far as I know, both are the same (latest) version; my home PC is Win 10, work PC Win 11. I've seen a few similar posts about downloads stopping at 500 MB - most responders seemed to recommend increasing memory_limit / post_max_size / upload_max_filesize in the server's PHP config, but I'm not entirely convinced that did much to solve the reported problems. ... the final post here: https://wordpress.org/support/topic/large-digital-file-downloads-ending-early-at-500mb/ does at least seem to have fixed one user's problem (though whether it's the *same* problem as my own is anyone's guess.
-
Many thanks for the explanation. Logging into Your Account: Digital Downloads and clicking the link there: Attempt 1; time taken to download = 8 m 07 s. Size of downloaded file: 512,017 kb (500.017 MB). Attempt 2; time taken to download = 3 m 48 s. Size of downloaded file: 512,505 kb (500.49 MB). Clicking the link in the "Your Purchased Downloads" email from my inbox: Attempt 1; time taken to download = 4 m 07 s. Size of downloaded file: 512,073 kb (500.071 MB). If it were a server timing out, given a constantly-varying download speed, and the very great disparity between my home and work broadband speeds (approximately 10x faster at work on a good day) could a fixed time-out result in a downloaded portion of almost exactly the same size each time, over 7 or 8 attempts on two different days, 2 different PCs in two different locations? Looking at my PHP settings via CPanel, I have the following: max_execution_time: 30 max_input_time: 60 if that's of any relevance at all. I've not modified any time settings in the site files. In response to my question to the hosting provider "... are there any other settings, either customisable by me, or deeper in the server config, that would impose this 500 MB download limit?", they replied "there should be no download limitation". They have offered to log in and troubleshoot the problem; unfortunately they're in a different time zone to me, so a real-time conversation isn't always easy Robin
-
... looking at the site files, ini-custom.inc.php contains the line ini_set('memory_limit', '256M'); but if that were causing it, then surely the download would stop at 256 MB? In my site CPanel I've changed the PHP version to 8.3 and memory_limit = 512M, which has made no difference. Have emailed my service provider to ask if they're aware of anything else which would impose a 500 MB download limit. Would be grateful for any other input. Robin
-
RobinSomes started following Maximum download size?
-
UPDATE: problem solved - see the final post in the thread. Site: piscesconservation.com/cube CC version 6.5.1 / All In One Shipping v 1.0.26 / Facebook v 1.01 / PayPal Commerce Platform v 1.10.1 PHP version 8.1 / memory_limit: 128M / post_max_size: 128M / upload_max_filesize: 64M Is there a maximum download size for digital downloads in CubeCart? I'm having issues delivering one zipped e-book to customers, which is a fairly hefty 567 MB as a .zip. I've uploaded the zip via FTP (tried both binary and auto-detect modes) using CuteFTP 9. The upload completes OK, it's clearly there in the file listing, at 567.93 MB. If I download it again via FTP, the download is the correct size, opens fine and the contents function, so I don't think it's being corrupted either on the server or in uploading/downloading. CubeCart's dashboard does not raise an error, so I must assume it has found the file associated with the product OK. My server disk usage / bandwidth / MySQL disk usage are all well within their limits. If I purchase it from the shop, and download it, using either the link in the email or in the My Downloads section of the shop site, the download completes at c 500 MB; in Windows Explorer it's shown as 512,017 KB, and when I try to open the file I get a popup saying the "Windows cannot open the folder. The Compressed (zipped) Folder *** is invalid". 512,017 KB = 500.somethingsmall MB, suggesting a 500 MB limit *somewhere*. I'm using Chrome, latest version, on a Windows 11 PC. A customer has also reported the same problem. Other downloads from our shop, which range from 1.4 MB upwards, seem to function OK, though there are none quite so large as this. Any suggestions? TIA, Robin
-
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
-
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.
-
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 )
-
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!
-
"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.
-
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 )
-
Certainly happy to try, yes; it would be better fixed if possible.
-
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
-
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.