Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Snippet Sync is not working

Status Resolved
Add-on / Version 1.3.5
Severity Blocker
EE Version 2.7.0

Dimitri Quadflieg

Oct 15, 2013

I have setup snippet sync three times now and configured the config.php on my local development server and I really need some assistance now please.

My setting in the config file is as follows

$config[‘snippet_file_basepath’] =  “{$_SERVER['DOCUMENT_ROOT']}/sitetem/snippets/”;
$config[‘snippets_sync_prefix’] = ‘snp:’;
$config[‘snippets_sync_suffix’] = ‘_’;

tried to update settings on CP - but nothing.

I have uninstalled and re-installed

What else can I do?

 

#1

BoldMinded (Brian)

Hi, Dimitri. So the issue is that files within {$_SERVER[‘DOCUMENT_ROOT’]}/sitetem/snippets/ are not being imported into the exp_snippets table? Are you logged into the CP as a super admin? What is your $config[‘debug’] value set to in your config.php file?

#2

Twist Effect

Hi

It is set to 1

#3

BoldMinded (Brian)

Are you positive the full path of DOCUMENT_ROOT is correct? What do you get when you var_dump the $config array?

#4

Twist Effect

This is what I get when I do a var_dump:

array(19) { [“app_version”]=> string(3) “270” [“install_lock”]=> string(0) “” [“license_number”]=> string(19) “hidden” [“debug”]=> string(1) “1” [“cp_url”]=> string(39) “http://twisteffect.dev/system/index.php” [“doc_url”]=> string(48) “http://ellislab.com/expressionengine/user-guide/” [“is_system_on”]=> string(1) “y” [“allow_extensions”]=> string(1) “y” [“site_label”]=> string(12) “Twist Effect” [“cookie_prefix”]=> string(0) “” [“sc_paypal_account”]=> string(0) “” [“sc_encrypt_buttons”]=> string(1) “n” [“sc_certificate_id”]=> string(0) “” [“sc_public_certificate”]=> string(0) “” [“sc_private_key”]=> string(0) “” [“sc_paypal_certificate”]=> string(0) “” [“sc_temp_path”]=> string(4) “/tmp” [“ip2nation”]=> string(1) “y” [“ip2nation_db_date”]=> string(10) “1381867953” }

#5

Twist Effect

/Users/username/Sites/twisteffect.dev/sitetem/snippets/

#6

BoldMinded (Brian)

Dimitri, would you be able to add FTP and CP information to the ticket in the provided fields? I’m not sure if there is anything else I can do at this point. If your paths are correct it should be working. I suspect there is something unique with your environment. I assume this is a Linux server running Apache? Also is the snippets folder readable? Did you CHMOD it to 666?

#7

BoldMinded (Brian)

Closing this b/c of no response for almost a month.

#8

Twist Effect

Hi, I have now updated to a live server for testing and also to reinstall, and still trying to get SnippetSync to work, but still not working.

It is a Linux server, running CentOS

The file permissions is set to 666. is this ticket set only to a private conversation, so that no-one can see access details that I share with you?

Thanks Dimitri

#9

BoldMinded (Brian)

This is a Public forum. You can post private info in the fields provided if you edit the ticket.

#10

BoldMinded (Brian)

1.3.6 emailed.

#11

BoldMinded (Brian)

Did you try the new build I sent? Did it not work?

#12

Twist Effect

Hi, I have updated the plugin, but I clearly seem to be doing something wrong. I have added the EE and FTP login details.

If you are able to see what I am doing wrong. If you fix it, can you let me know how it was fixed. Thanks

#13

BoldMinded (Brian)

The CP password you entered isn’t working

#14

BoldMinded (Brian)

It might have gotten truncated, possibly make it shorter?

#15

BoldMinded (Brian)

I don’t see the snippet config values in your config.php file.

#16

Twist Effect

Here is the password that I just tested. and it works - (E%3^U64H4R&B6ZAN6c;:h{*Tw15tM@5t3rG00l@c

<?php $config[‘name’] = ‘Snippet Sync’; $config[‘version’] = ‘1.3.6’; $config[‘description’] = ‘Save & Edit your Snippets as files.’; $config[‘nsm_addon_updater’][‘versions_xml’] = ‘http://boldminded.com/assets/add-ons/versions/snippet-sync.xml’;

$config[‘snippet_file_basepath’] = “{$SERVER[‘DOCUMENT_ROOT’]}/sitetem/snippets/”; $config[‘snippets_sync_prefix’] = ‘snippet:’; $config[‘snippets_sync_suffix’] = ‘’;

/* var_dump($config); */

#17

Twist Effect

Do you add it in the EE > config.php or the SS > config.php?

#18

BoldMinded (Brian)

I’ve tried that login multiple times and it isn’t working.

This needs to go in your EE config.php, not Snippet Sync’s config.

In public_html/system/expressionengine/config.php:

$config[‘snippet_file_basepath’] = “{$SERVER[‘DOCUMENT_ROOT’]}/sitetem/snippets/”; $config[‘snippets_sync_prefix’] = ‘snippet:’; $config[‘snippets_sync_suffix’] = ‘’;

#19

Twist Effect

Thank you, it is now working after adding it to the EE > config.php file. That was I error, was always under the impression that I had insert the code under the SS > config.php. Thank you so much for your assistance and prompt responses. You will always have our support with your plugins.

#20

BoldMinded (Brian)

Glad its working now 😊

Login to reply