We’re working on a site that was started by another developer – there are pages that use the Display Packages by Category Gutenberg block that work perfectly fine.
We created a new category and attempted to add a new page with the Packages by Category Block (and also tried with the Elementor Widget) and both throw fatal errors.
We have ensured that the plugins and add-ons are all updated – we can’t understand why the block works for one page but not for others and these are the errors we’re getting:
Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /nas/content/live/qualityforum/wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php:167 Stack trace: #0 /nas/content/live/qualityforum/wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php(167): trim(Array) #1 /nas/content/live/qualityforum/wp-includes/class-wp-hook.php(326): {closure}(Array, Object(WP_Post)) #2 /nas/content/live/qualityforum/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #3 /nas/content/live/qualityforum/wp-content/plugins/fulltext-search-pro/includes/wpfts_core.php(1707): apply_filters('wpfts_index_pos...', Array, Object(WP_Post), false) #4 /nas/content/live/qualityforum/wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php(192): WPFTS_Core->getPostChunks(3894) #5 /nas/content/live/qualityforum/wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php(212): wpfts_wpdmpro_getCachedContent(3894) #6 /nas/content/live/qualityforum/wp-includes/class-wp-hook.php(326): {closure}(Array) #7 /nas/content/live/qualityforum/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #8 /nas/content/live/qualityforum/wp-content/plugins/download-manager/src/Package/PackageController.php(423): apply_filters('wpdm_after_prep...', Array, 'link') #9 /nas/content/live/qualityforum/wp-content/plugins/download-manager/src/Package/PackageController.php(1877): WPDM\Package\PackageController->prepare(3894, 'afirm_clean_tem...', 'link') #10 /nas/content/live/qualityforum/wp-content/plugins/download-manager/src/Package/Shortcodes.php(255): WPDM\Package\PackageController->fetchTemplate('afirm_clean_tem...', Array) #11 /nas/content/live/qualityforum/wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/packages.php(136): WPDM\Package\Shortcodes->packages(Array) #12 /nas/content/live/qualityforum/wp-includes/class-wp-block.php(519): WPDM\Block\Packages->output(Array, '', Object(WP_Block)) #13 /nas/content/live/qualityforum/wp-includes/blocks.php(2061): WP_Block->render() #14 /nas/content/live/qualityforum/wp-includes/blocks.php(2113): render_block(Array) #15 /nas/content/live/qualityforum/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:downloa...') #16 /nas/content/live/qualityforum/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:downloa...', Array) #17 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php(281): apply_filters('the_content', '<!-- wp:downloa...') #18 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/widgets/post-content.php(111): ElementorPro\Modules\ThemeBuilder\Widgets\Post_Content->render_post_content(false, false) #19 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/controls-stack.php(2325): ElementorPro\Modules\ThemeBuilder\Widgets\Post_Content->render() #20 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/widget-base.php(635): Elementor\Controls_Stack->render_by_mode() #21 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/widget-base.php(776): Elementor\Widget_Base->render_content() #22 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content() #23 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element() #24 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content() #25 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element() #26 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content() #27 /nas/content/live/qualityforum/wp-content/plugins/elementor/core/base/document.php(1875): Elementor\Element_Base->print_element() #28 /nas/content/live/qualityforum/wp-content/plugins/elementor/core/base/document.php(1800): Elementor\Core\Base\Document->do_print_elements(Array) #29 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(412): Elementor\Core\Base\Document->print_elements(Array) #30 /nas/content/live/qualityforum/wp-content/plugins/elementor/includes/frontend.php(1158): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper(Array) #31 /nas/content/live/qualityforum/wp-content/plugins/elementor/core/base/document.php(1249): Elementor\Frontend->get_builder_content(2117, false) #32 /nas/content/live/qualityforum/wp-content/plugins/elementor/modules/library/documents/library-document.php(76): Elementor\Core\Base\Document->get_content(false) #33 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(158): Elementor\Modules\Library\Documents\Library_Document->get_content(false) #34 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(173): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_content() #35 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php(93): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_content() #36 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(364): ElementorPro\Modules\ThemeBuilder\Documents\Single_Base->print_content() #37 /nas/content/live/qualityforum/wp-content/plugins/elementor-pro/modules/theme-builder/api.php(13): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->do_location('single') #38 /nas/content/live/qualityforum/wp-content/themes/hello-elementor/index.php(20): elementor_theme_do_location('single') #39 /nas/content/live/qualityforum/wp-includes/template-loader.php(106): include('/nas/content/li...') #40 /nas/content/live/qualityforum/wp-blog-header.php(19): require_once('/nas/content/li...') #41 /nas/content/live/qualityforum/index.php(17): require('/nas/content/li...') #42 {main} thrown in /nas/content/live/qualityforum/wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php on line 167
If we duplicate the other pages that are working, and then attempt to edit/change which category is being displayed, the page editor (whether block or Elementor) throws an error and can’t save.
I have create a file package with two MP4s and one ZIP. The MP4s I’d like to view directly in the browser and the ZIP should – naturally – be downloaded. However, the multifile-package only lets me download the files. It looks like I’d need to create 3 packages, two for the MP4s and one for the ZIP, or do you see another way around this problem? Actually I wanted one package for each product I make available for download – that’s the primary reason I bought the Pro version 😉
Thank you and best regards
Thomas
How can I send guests a direct download link via email instead of sending people to a download page?
I would like the download to start automatically for my customer.
My customer sends out a newsletter with download links. If someone clicks on the link, they have to log in. Unfortunately, the download does not start automatically, but the customer is redirected to the package. They then have to search there themselves to find the correct download.
domain.com/file.pdf
This is what the links look like.
If I am logged in, the download does not start either. I also end up on the package page.
Is there a solution for this?
Thank you very much!
I am trying to customize a clone of the following link template:
————————————–
<div class="media">
<a class="pull-left" href="[page_url]">
[icon]
</a>
<div class="media-body">
<h3 class="media-heading m-0 p-0">[page_link]</h3>
<div class="text-muted text-small"><i class="fas fa-copy"></i> [file_count] [txt=file(s)] <i class="fas fa-hdd ml-3"></i> [file_size]</div>
</div>
<div class="ml-3">
[download_link]
</div>
</div>
————————————-
I need <a class="pull-left" href="[page_url]">
and <h3 class="media-heading m-0 p-0">[page_link]</h3>
to have the same functionality as [download_link]
I’ve tried to replace [page_url]
and [page_link]
, but can’t seem to get it right. Any help is appreciated.
Hello,
I just downloaded the mailchimp extension so that my users are automatically saved in my DB, my question is that I want there to be a record in the mailchimp registry of when the user has accepted that I send them commercial emails… How can I do this?