Issue Summary
I’m trying out Local for the first time. I followed the import instructions uploading a zip file of the wp-content folder with the .sql database file which I’d downloaded manually from my Siteground hosting account. When I ‘Open Site’ from Local I get two orange errors ‘Fatal Error’ and ‘TypeError’ as shown below. The website was built using the Avada theme which uses the Fusion Builder, which is mentioned in the error information.
( ! ) Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int float, string given in /Users/apple/Local Sites/one-mind-local/app/public/wp-content/plugins/fusion-builder/shortcodes/fusion-button.php on line 636
( ! ) TypeError: round(): Argument #1 ($num) must be of type int float, string given in /Users/apple/Local Sites/one-mind-local/app/public/wp-content/plugins/fusion-builder/shortcodes/fusion-button.php on line 636
Call Stack
Time Memory Function Location
1 0.1343 365024 {main}( ) …/index.php**:0
2 0.1344 365336 require( '/Users/apple/Local Sites/one-mind-local/app/public/wp-blog-header.php ) …/index.php:17
3 0.1344 365976 require_once( '/Users/apple/Local Sites/one-mind-local/app/public/wp-load.php ) …/wp-blog-header.php:13
4 0.1345 366480 require_once( '/Users/apple/Local Sites/one-mind-local/app/public/wp-config.php ) …/wp-load.php:50
5 0.1345 375192 require_once( '/Users/apple/Local Sites/one-mind-local/app/public/wp-settings.php ) …/wp-config.php:93
6 1.8133 4550840 do_action( $hook_name = ‘after_setup_theme’ ) …/wp-settings.php:595
7 1.8133 4551216 WP_Hook->do_action( $args = [0 => ‘’] ) …/plugin.php:517
8 1.8133 4551216 WP_Hook->apply_filters( $value = ‘’, $args = [0 => ‘’] ) …/class-wp-hook.php:332
9 1.8137 4553944 fusion_builder_activate( ‘’ ) …/class-wp-hook.php:308
10 1.8138 4554104 FusionBuilder::get_instance( ) …/fusion-builder.php:2230
11 1.8138 4554360 FusionBuilder->__construct( ) …/fusion-builder.php:174
12 1.8138 4554600 FusionBuilder->includes( ) …/fusion-builder.php:200
13 1.8207 4802608 FusionBuilder->init_shortcodes( ) …/fusion-builder.php:1427
14 1.8592 5650880 require_once( '/Users/apple/Local Sites/one-mind-local/app/public/wp-content/plugins/fusion-builder/shortcodes/fusion-button.php ) …/fusion-builder.php:586
15 1.8593 5650960 FusionSC_Button->__construct( ) …/fusion-button.php:880
16 1.8593 5650960 Fusion_Element->__construct( ) …/fusion-button.php:39
17 1.8601 5660304 FusionSC_Button->add_styling( ) …/class-fusion-builder-element.php:112
18 1.8605 5669648 round( $num = ‘2px’ ) …/fusion-button.php:**636
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
This is the first and only website I’ve tried. -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Haven’t tried that yet.
Replication
Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
System Details
-
Which version of Local is being used?
-
What Operating System (OS) and OS version is being used?
- Mac OS 11.7.3 Big Sur
-
Attach the Local Log. See this Help Doc for instructions on how to do so:
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.