All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Can’t get it working

Status Resolved
Add-on / Version
Severity Trivial
EE Version

dgrebb

Sep 12, 2012

I might be the dumbest sack of cheese in the world, or at least feel that way after an hour of trying to get things working.

I have

/* config variable for Snippet Sync addon*/
$config[‘snippet_file_basepath’] =
  “{$_SERVER['DOCUMENT_ROOT']}/../templates/snippets/”;

set in config.php

I also have /templates/snippets set up 777

I’ve tried creating files inside this directory to sync. Nothing.

I’ve tried creating snippets in the CP. Nothing.

What am I doing wrong?

Also, this is a great addon, and I’m an idiot, but your docs could really be expanded 😊

Cheers!

#1

BoldMinded (Brian)

Lets first make sure the path is correct. After you set that config value, add this:

var_dump($config); die;

Make sure the path is correctly pointing to your snippets folder.

#2

dgrebb

I got everything sorted out. Turns out you have curly quotes (as opposed to straight quotes) on the config variable in the docs.

I copied and pasted and didn’t think to look for that 😊

Thanks for helping me get things sorted!

Cheers

Login to reply