GithubHelp home page GithubHelp logo

Comments (5)

alwaysblank avatar alwaysblank commented on June 1, 2024 1

Hi folks,

Thanks for your research, and sorry it's taken me so long to respond! I've tagged a new release (https://github.com/alwaysblank/blade-generate/releases/tag/1.2) that adds some language to the README mentioning that you must install and activate Sage 9 to use the plugin, as well as a small check in the plugin itself to make sure the functionality it needs from Sage is available before it tries to use that functionality.

This should resolve the issue, but if you feel differently please let me know and I'll re-open the issue.

from blade-generate.

alwaysblank avatar alwaysblank commented on June 1, 2024

Sorry for the delayed response!

I'm unable to replicate this error. Can you provide more information on your environment, and the context in which the error appears? Please consult the bug reporting guidelines: https://github.com/alwaysblank/blade-generate#reporting-a-bug

from blade-generate.

oquirozm avatar oquirozm commented on June 1, 2024

I too encountered the bug @alwaysblank. It happened after I installed wp-cli on a one-click WordPress install on DigitalOcean.

My environment is:

  • Sage 9.0.9
  • WordPress 5.2.2.
  • PHP 7.2
  • Ubuntu 18.02

I've used blade generate before and the only thing I could think of that changed between my previous projects and this one is the PHP and WordPress' versions.

Here's a copy of the error after I run wp blade clear --allow-root:

PHP Fatal error:  Uncaught Error: Call to undefined function App\sage() in /root/.wp-cli/packages/vendor/alwaysblank/blade-generate/command.php:150
Stack trace:
#0 [internal function]: BladeCommand->clear(Array, Array)
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(98): call_user_func(Array, Array, Array)
#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(451): call_user_func(Object(Closure), Array, Array)
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(371): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(394): WP_CLI\Runner->run_command(Array, Array)
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1132): WP_CLI\Runner->run_command_and_exit()
#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.ph in /root/.wp-cli/packages/vendor/alwaysblank/blade-generate/command.php on line 150
Fatal error: Uncaught Error: Call to undefined function App\sage() in /root/.wp-cli/packages/vendor/alwaysblank/blade-generate/command.php:150
Stack trace:
#0 [internal function]: BladeCommand->clear(Array, Array)
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(98): call_user_func(Array, Array, Array)
#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(451): call_user_func(Object(Closure), Array, Array)
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(371): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(394): WP_CLI\Runner->run_command(Array, Array)
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1132): WP_CLI\Runner->run_command_and_exit()
#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.ph in /root/.wp-cli/packages/vendor/alwaysblank/blade-generate/command.php on line 150
Error: The site is experiencing technical difficulties.

from blade-generate.

oquirozm avatar oquirozm commented on June 1, 2024

Ok, I could make the error go away by doing the following:

  • Make sure composer is installed (it wasn't in my case)
  • Make sure there are already some blade templates in the project created after the installation of sage theme.

After I did these 2, everything worked correctly.

from blade-generate.

vedammc avatar vedammc commented on June 1, 2024

I think this error happens when you don't activate the Sage theme.

from blade-generate.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.