EE4 compatibility updates:
- Publisher is EE4 and EE5 compatible, but it does not currently support the Fluid field (it's in the works).
- Reel is EE4 and EE5 compatible, but it does not currently support the Fluid field.
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, 2013I 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?
BoldMinded (Deprecated)
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?
Twist Effect
Hi
It is set to 1
BoldMinded (Deprecated)
Are you positive the full path of DOCUMENT_ROOT is correct? What do you get when you var_dump the $config array?
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” }
Twist Effect
/Users/username/Sites/twisteffect.dev/sitetem/snippets/
BoldMinded (Deprecated)
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?
BoldMinded (Deprecated)
Closing this b/c of no response for almost a month.
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
BoldMinded (Deprecated)
This is a Public forum. You can post private info in the fields provided if you edit the ticket.
BoldMinded (Deprecated)
1.3.6 emailed.
BoldMinded (Deprecated)
Did you try the new build I sent? Did it not work?
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
BoldMinded (Deprecated)
The CP password you entered isn’t working
BoldMinded (Deprecated)
It might have gotten truncated, possibly make it shorter?
BoldMinded (Deprecated)
I don’t see the snippet config values in your config.php file.
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); */
Twist Effect
Do you add it in the EE > config.php or the SS > config.php?
BoldMinded (Deprecated)
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’] = ‘’;
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.
BoldMinded (Deprecated)
Glad its working now 😊