Giter VIP home page Giter VIP logo

grav-plugin-shortcodes's People

Contributors

sommerregen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grav-plugin-shortcodes's Issues

Error while trying to call a shortcodes directory instead of Shortcodes.

I installed the Shortcuts plugin manually. Got:

 FilesystemIterator::__construct(/path-to-my-grav-installation/user/plugins/shortcodes/classes/shortcodes): failed to open dir: No such file or directory

And there isn't such a directory. It is named Shortcodes with capital S.

Just changing the shortcodes to Shortcodes in ln. 144 of user/plugin/shortcodes/classes/Shortcodes.php makes it work (or at least to not throw an error)

Not working with Grav 1.6.6

Twig \ Error \ SyntaxError
An exception has been thrown during the compilation of a template ("preg_match_all(): Compilation failed: missing ) at offset 53") in "@shortcodes:C:/xampp/htdocs/????/user/pages/home".
Previous exceptions
preg_match_all(): Compilation failed: missing ) at offset 53 (2)

Not working with grav 1.1.1 ?

I've the following issue :


Server Error

Sorry, something went terribly wrong!
0 - Unexpected token "operator" of value "=" ("end of statement block" expected) in "@Shortcodes:/home/www/mobile/get-the-sdk" at line 1.
For further details please review your logs/ folder, or enable displaying of errors in your system configuration.

The page content look like this:

[Download the latest SDK](https://github.com/test/test/releases/download/v{{% embed page="/var-ios-sdkversion" %}}/sdk-V{{% embed page="/var-ios-sdkversion" %}}.zip) and unzip it.

Not workin with PHP 8

Hello.

I have two versions of PHP, 7.3 and 8 installed. With the same web page in Grav, the one loaded with PHP8, it shows this error:

C:\xampp\htdocs\grav\user\plugins\shortcodes\classes\Autoloader.php
        // Load class
        if (stream_resolve_include_path($file)) {
          return include_once($file);
        }
 
        return false;
      }
    }
 
    return false;
  }
 
  /**
   * Registers this instance as an autoloader
   *
   * @param bool $prepend Whether to prepend the autoloader or not
   */
  public function register($prepend = false)
  {
    spl_autoload_register([$this, 'autoload'], false, $prepend);
  }
 
  /**
   * Unregisters this instance as an autoloader
   */
  public function unregister()
  {
    spl_autoload_unregister([$this, 'autoload']);
  }
}
 
Arguments
"spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw"

Is this plugin compatible with PHP 8?

Not working with Grav's Admin Panel

The plugin Shortcodes can't be configured using the new Grav's Admin Panel. For example, if we go to the settings page of the plugin (url /admin/plugins/shortcodes) and click on Save, there's the following error:

Validation failed: options is not defined in blueprints

According to a Grav developer: "These plugins just need to get updated with appropriate blueprint files so they will work in the admin plugin."

My config: Grav v0.9.39, Admin Panel v0.4.2, Shortcodes v1.1.0

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.