Ann Lickander
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Uncaught TypeError: Unsupported operand types: string – intHi!
We made an update now, and. It seems like we don’t get the problem with the editor anymore. BUT, we still get the error. This time when trying to access WooCommerce->Settings->Payments. When trying to access that page we get a Fatal Error message. And when checking the debug log, it’s the same problem as before:[03-Mar-2025 13:54:56 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - int in wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php:96
Stack trace:
#0 wp-includes/class-wp-hook.php(326): Automattic\WooCommerce\Internal\Admin\WCPayPromotion\Init::set_gateway_top_of_list()
#1 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 wp-includes/option.php(247): apply_filters()
#3 wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(94): get_option()
#4 wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(73): WC_Payment_Gateways->init()
#5 wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(46): WC_Payment_Gateways->__construct()
#6 wp-content/plugins/woocommerce/includes/class-woocommerce.php(1159): WC_Payment_Gateways::instance()
#7 wp-content/plugins/woocommerce/includes/class-woocommerce.php(200): WooCommerce->payment_gateways()
#8 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php(185): WooCommerce->__get()
#9 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php(154): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\AdditionalPayments::has_enabled_gateways()
#10 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php(115): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\AdditionalPayments::has_enabled_other_category_gateways()
#11 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(305): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\AdditionalPayments->can_view()
#12 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->Automattic\WooCommerce\Admin\Features\OnboardingTasks\{closure}()
#13 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(302): array_filter()
#14 wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(171): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->get_viewable_tasks()
#15 wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php(378): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->is_visible()
#16 wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php(151): Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage->get_active_payments_task_slug()
#17 wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage->register_menu_and_page()
#18 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#19 wp-includes/plugin.php(517): WP_Hook->do_action()
#20 wp-admin/includes/menu.php(161): do_action()
#21 wp-admin/menu.php(412): require_once('/...')
#22 wp-admin/admin.php(158): require('/...')
#23 {main}
thrown in wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php on line 96New status report:
### WordPress Environment ###
WC Version: 9.7.0
Legacy REST API Package Version: Tillägget Legacy REST API är inte installerat på denna webbplats.
Action Scheduler Version: ✔ 3.9.0
Log Directory Writable: ✔
WP Version: 6.7.2
WP Multisite: ✔
WP Memory Limit: 512 MB
WP Debug Mode: ✔
WP Cron: –
Language: sv_SE
External object cache: ✔
### Server Environment ###
Server Info: LiteSpeed
PHP Version: 8.2.27
PHP Post Max Size: 512 MB
PHP Time Limit: 90
PHP Max Input Vars: 3000
cURL Version: 8.11.0
OpenSSL/1.1.1w
SUHOSIN Installed: –
MySQL Version: 10.6.21-MariaDB-cll-lve
Max Upload Size: 512 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
WC Database Version: 9.7.0
WC Database Prefix: wp_294_
Total databasstorlek: 48.95MB
Datastorlek för databas: 33.04MB
Indexstorlek för databas: 15.91MB
### Post Type Counts ###
attachment: 270
foyer_display: 1
nav_menu_item: 38
page: 56
person: 2
post: 44
revision: 662
tribe_event_series: 2
tribe_events: 128
wp_font_face: 36
wp_font_family: 12
wp_navigation: 1
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (35) ###
ACF to REST API: av Aires Gonçalves – 3.3.4
Admin Columns Pro: av AdminColumns.com – 6.4.15
Advanced Custom Fields PRO: av WP Engine – 6.3.12
Block Visibility: av Nick Diego – 3.7.1
Yoast Duplicate Post: av Enrico Battocchi & Team Yoast – 4.5
Firelight Lightbox: av FirelightWP – 2.3.11
Enable Media Replace: av ShortPixel – 4.1.5
Events Calendar PRO: av Evenemangskalender – 7.4.1
FacetWP: av FacetWP
LLC – 4.3.6
Gravity Forms Event Tracking: av Ronald Huereca – 2.5.0
Gravity Forms: av Gravity Forms – 2.9.4
Gravity Forms utökning för enkäter: av Gravity Forms – 4.1.0
Instagram Feed Pro Developer: av Smash Balloon – 6.6.1
LiteSpeed Cache: av LiteSpeed Technologies – 6.5.4
oEmbed Plus: av Ayesh Karunaratne – 1.6
Safe SVG: av 10up – 2.3.1
Simple History: av Pär Thernström – 5.7.0
The Events Calendar: Filter Bar: av The Events Calendar – 5.5.8
The Events Calendar: av The Events Calendar – 6.10.1.1
Obekräftade: av Boone B Gorges – 1.3.7
User Switching: av John Blackbourn – 1.9.1
PDF Invoices & Packing Slips for WooCommerce: av WP Overnight – 4.1.1
Sequential Order Numbers for WooCommerce: av SkyVerge – 1.11.0
WooCommerce: av Automattic – 9.7.0
Yoast SEO: av Team Yoast – 24.5
WordPress Sentry: av Alex Bouma – 8.3.1
### Settings ###
Legacy API Enabled: –
Force SSL: –
Currency: SEK (kr)
Currency Position: right
Thousand Separator:
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: ✔
HPOS feature enabled: ✔
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: –
### Logging ###
Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 dagar
Level threshold: –
Log directory size: 1 MB
### WC Pages ###
Butikbas: #909 - /butik/
Varukorg: #910 - /varukorg/ - Innehåller blocket woocommerce/cart
Kassan: #911 - /kassan/ - Innehåller blocket woocommerce/checkout
Mitt konto: #912 - /mitt-konto/ - Innehåller kortkoden [woocommerce_my_account]
Villkor: ❌ Sida har inte valts
### Theme ###
Name: Custom
### Templates ###
Overrides: –
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
onboarding
onboarding-tasks
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
add-to-cart-with-options-stepper-layout
Disabled Features: product-data-views
experimental-blocks
coming-soon-newsletter-template
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
blueprint
reactify-classic-payments-settings
use-wp-horizon
blockified-add-to-cart
Daily Cron: ✔ Next scheduled: 2025-03-03 16:39:18 +01:00
Options: ❌ Inte alla förväntade
Notes: 9
Onboarding: -
### Action Scheduler ###
Färdigbehandlad: 98
Oldest: 2025-01-31 23:23:51 +0100
Newest: 2025-03-03 14:53:01 +0100
Misslyckades: 1
Oldest: 2023-11-01 20:11:40 +0100
Newest: 2023-11-01 20:11:40 +0100
Väntar: 2
Oldest: 2025-03-04 09:23:30 +0100
Newest: 2025-03-09 10:57:13 +0100
### Status report information ###
Generated at: 2025-03-03 14:56:41 +01:00Forum: Plugins
In reply to: [WooCommerce] Uncaught TypeError: Unsupported operand types: string – intHi!
Sorry for the late reply.
Here is the report: https://pastebin.com/8vi6RmTm
I did remove all the database tables. We have over 200 sites in the installation, so it was a looooong list of tables…Forum: Plugins
In reply to: [Firelight Lightbox] Auto image lightbox Clashes with external linksHehe it happens!
Thanks again!- This reply was modified 2 years, 7 months ago by Ann Lickander.
Forum: Plugins
In reply to: [Firelight Lightbox] Auto image lightbox Clashes with external linksHi!
Now I feel stupid. I missed the exclude field. Yes, your solution worked perfectly. Thanks!Forum: Plugins
In reply to: [Firelight Lightbox] Auto image lightbox Clashes with external linksSorry for the late reply. The subscribe dropdown is added automatically by the plugin.
Thanks for the code snippet. We’ll look into adding it to our theme. Thank you!Forum: Plugins
In reply to: [Firelight Lightbox] Auto image lightbox Clashes with external linksForum: Plugins
In reply to: [Download Monitor] Critical error on saving page with shortcodeWell… You were right. There was a problem in the theme and not what I first thought. Because this theme was built a looong time ago, we still had
$id = nullin our function. And when adding that to your code, everything worked.But yeah. Found the real culpit, which, lo and behold, were a missing argument. Sorry and thank you for triggering the error hehe
Forum: Plugins
In reply to: [Download Monitor] Critical error on saving page with shortcodeActually, I had the same problem. I had the_title-filters before, and they worked fine. After the update to 4.5.7 I get a fatal error:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function DLM_Custom_Columns::prepend_id_to_title(), 1 passed in /public_html/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /public_html/content/plugins/download-monitor/src/Admin/CustomColumns.php:179If you look closely at the documentation that you @raldea89 linked to, you see that they write it like so:
function suppress_if_blurb( $title, $id = null ) {As soon as I changed
public function prepend_id_to_title( $title, $id ){topublic function prepend_id_to_title( $title, $id = null){(in /public_html/content/plugins/download-monitor/src/Admin/CustomColumns.php) it started working.Forum: Plugins
In reply to: [Download Manager] IE11: front.js syntax errorHi!
Didn’t see a revision message about this being fixed, but due to another problem we had (when saving custom post types, the post was not reachable without re-saving the permalinks. But when this plugin was deactived, everything worked fine).
So, worth to try to update the plugin. Not only did that fix our other problem, it also fixed the JS problem in IE 😀So, this is solved with the latest version (2.9.90)
Forum: Plugins
In reply to: [Download Manager] IE11: front.js syntax errorSorry for the late reply. Wonderful, hope you’ll find the workaround 🙂
Forum: Plugins
In reply to: [CMS Tree Page View] 1.2.33 breaks plugin – FixCan also confirm that the problem still exists in version 1.2.34 and that the fix fixed the problem.
Forum: Plugins
In reply to: [WF Cookie Consent] IE8 support?Hi,
Wow, that was fast 🙂 Thank you so much for getting back to me so fast and fixing the plugin!
Rated the plugin 🙂 (and the support)
Just wanted to say that I had the same problem when I updated to 2.5.1. The new version, 2.5.2 (link in above comment), solved the problem for me.
Forum: Plugins
In reply to: [Page Comments Off Please] .js issue, added to all pagesWow, that was fast 🙂
And yeah, I accidently copied in the same text twice, I meant to say to change:
add_action(‘admin_print_scripts’, array(&$this, ‘register_admin_scripts’));to:
add_action(‘admin_print_scripts-settings_page_page_comments_off_please’, array(&$this, ‘register_admin_scripts’));But I see that you’ve changed it now 🙂 Thanks!
Forum: Plugins
In reply to: [Content Blocks (Custom Post Widget)] add_content_block_icon()Hi!
You seem to be absolutely right, it does not seem to be a conflict anymore. I honestly don’t know why I got it to not work earlier, and then to work with my code.
The only difference I can see is that when the problem occured I used an older version of your plugin, version 1.9.5 and I probably used an older version of Gravity Forms as well which might have caused this problem.
Anyways, it all seems to work now. Thank you for a great plugin 🙂