Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught TypeError: count(): on wp dist-archive #2537

Open
shahadul878 opened this issue Aug 11, 2024 · 0 comments
Open

PHP Fatal error: Uncaught TypeError: count(): on wp dist-archive #2537

shahadul878 opened this issue Aug 11, 2024 · 0 comments

Comments

@shahadul878
Copy link

shahadul878 commented Aug 11, 2024

Issue description:

.
Issues with wp dist-archive cli command

Version used:

PHP:8.3

Using theme_mods or options?

theme_mods

PHP error messages that might be related

PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php:105
Stack trace:
#0 /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php(105): count()
#1 /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field/src/Field.php(104): Kirki\Field\Dimensions->init()
#2 /home/shahadul/Desktop/giftly/wp-content/themes/giftly/inc/customizer/panels/giftly-customize-layout.php(554): Kirki\Field->__construct()
#3 /home/shahadul/Desktop/giftly/wp-content/themes/giftly/inc/customizer/class-giftly-customize.php(121): require('...')
#4 /home/shahadul/Desktop/giftly/wp-includes/class-wp-hook.php(324): Giftly_Customize::register()
#5 /home/shahadul/Desktop/giftly/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /home/shahadul/Desktop/giftly/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/shahadul/Desktop/giftly/wp-settings.php(700): do_action()
#8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1375): require('...')
#9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress()
#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#13 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
#14 /usr/local/bin/wp(4): include('...')
#15 {main}
  thrown in /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php on line 105
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php:105
Stack trace:
#0 /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php(105): count()
#1 /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field/src/Field.php(104): Kirki\Field\Dimensions->init()
#2 /home/shahadul/Desktop/giftly/wp-content/themes/giftly/inc/customizer/panels/giftly-customize-layout.php(554): Kirki\Field->__construct()
#3 /home/shahadul/Desktop/giftly/wp-content/themes/giftly/inc/customizer/class-giftly-customize.php(121): require('...')
#4 /home/shahadul/Desktop/giftly/wp-includes/class-wp-hook.php(324): Giftly_Customize::register()
#5 /home/shahadul/Desktop/giftly/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /home/shahadul/Desktop/giftly/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/shahadul/Desktop/giftly/wp-settings.php(700): do_action()
#8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1375): require('...')
#9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress()
#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#13 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
#14 /usr/local/bin/wp(4): include('...')
#15 {main}
  thrown in /home/shahadul/Desktop/giftly/wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php on line 105
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant