• Resolved getparsimony

    (@getparsimony)


    When I try to compile my own Bootstrap 5 Install using ‘yarn build’ (after unchecking your plugin includes) I get the following message:

    Deprecated: Return type of ABB\ScssPhp\ScssPhp\Node\Number::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /../../../../../../wp-content/plugins/all-bootstrap-blocks/vendors/scssphp-1.6.0/src/Node/Number.php on line 152

    Every time I compile I need to deactivate and then activate this plugin to clear the error.

    • This topic was modified 1 year, 11 months ago by getparsimony.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @getparsimony

    Thank you for reaching out and bringing this issue to my attention.

    I’m not too familiar with Yarn so hopefully you can help me out a little so that I can recreate this issue on my local machine and help find the issue.

    Could you answer the following?

    What version of PHP are you using?

    Do you have a config file for yarn that tells it what files to compile etc? If yes, please could you send me the file?

    Where do you see the error? Is it in your console where you run yarn build or is it on the WordPress website?

    If you could answer the above that should give me a starting point so I can look in to this for you.

    Thanks

    Miles

    Thread Starter getparsimony

    (@getparsimony)

    Thanks for the speedy reply Miles!

    I am running PHP 8.1

    Are you referring to the package managing file? If so that should be package.json which you can download here: https://file.io/F7hwfkJnUzqi

    The error appears on my website after compiling.

    Please let me know if I can send any other pertinent information! I’ve also noticed that after compiling the first load seems to take a bit longer when the plugin is active vs when inactive, not sure if that’s related.

    Plugin Author Miles

    (@areoimiles)

    Hi @getparsimony

    Thank you for the info. I will look in to the issue this week and hopefully find a resolution for you. In the meantime you could try activating the plugin and then commenting out the below line of code (line 38) in this file ‘wp-content/plugins/all-bootstrap-blocks/areoi.php’:

    require_once( AREOI__PLUGIN_DIR . 'vendors/scssphp-1.6.0/scss.inc.php' );

    You will need to activate the plugin first, before commenting out the code!

    The error looks to be related to the compiler that is used when managing Bootstrap via the WordPress admin. Commenting out that line should stop it from being loaded and hopefully remove the error for you. This shouldn’t cause any issues as you are using your own Bootstrap config, but please let me know if it does.

    Let me know if the above doesn’t work for you. In the meantime I will work on finding an answer to why the error occurs.

    Thanks

    Miles

    Thread Starter getparsimony

    (@getparsimony)

    Thanks Miles,

    So I tried commenting out the line that you suggested and received a few more errors, BUT, I added that back and commented out everything in the same file after line 69 (// Recompile if theme.json exists and has been updated) and everything seems to be compiling fine for now. Hopefully that helps!

    Plugin Author Miles

    (@areoimiles)

    Yes that does help massively, thank you!

    Great, at least you can crack on for now.

    I will drop you an update once the issue is resolved and a new version is available.

    Miles

    Plugin Author Miles

    (@areoimiles)

    Hi @getparsimony

    Thank you for your patience! I have released an update which should resolve this problem for you. There was a compatibility issue with PHP 8.1 but everything looks to be working ok on the latest update. Thanks again for notifying me of this issue.

    If you have any problems in the future, please don’t hesitate to get back in touch.

    Thanks

    Miles

    Thread Starter getparsimony

    (@getparsimony)

    Miles, this is great news! Thanks a ton for resolving this so quickly. I’ve updated the plugin and everything seems to be working peachy.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error when compiling personal Bootstrap Install’ is closed to new replies.