d4l-data4life / kirby3-static-site-generator

Static site generator plugin for Kirby 3+. With this plugin you can create a directory with assets, media and static html files generated from your pages. The result is an even faster site with less potential vulnerabilities.
MIT License
138 stars 7 forks source link

Whoops \ Exception \ ErrorException (E_DEPRECATED) #28

Closed Nic1911 closed 4 years ago

Nic1911 commented 4 years ago

Hi all, thanks for the plugin and your work! Could anyone help me about this error, please?

Current Behavior

After installed the plugin using the command composer require d4l/kirby-static-site-generator, and added the configuration options in the config.php file, I've this error from the media.class.php.

Schermata 2020-07-14 alle 17 20 04

Steps to Reproduce

My basic configuration options 'd4l' => [ 'static_site_generator' => [ 'endpoint' => 'generate-static-site', 'output_folder' => './static', 'preserve' => [], 'base_url' => '/', 'skip_media' => false, 'skip_templates' => [] ] ]

Context

Kirby version 3.0 Additional plugins: "diverently/laravel-mix-kirby": "^1.1", "bnomei/kirby3-autoid": "^1.4", "mzur/kirby-uniform": "^4.0", "bnomei/kirby3-janitor": "^1.4", "bvdputte/kirby-log": "^1.0", "sylvainjule/previews": "^1.0", "rasteiner/k3-pagesdisplay-section": "^0.0.5"

Many thanks!

Nic1911 commented 4 years ago

Hi there! I've solved the issue copying the file media.class.php from the branch bugfix/media-original-fns 😀.

Thank you!