Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How install? #1

Closed
ctuxboy opened this issue Dec 4, 2018 · 10 comments
Closed

How install? #1

ctuxboy opened this issue Dec 4, 2018 · 10 comments

Comments

@ctuxboy
Copy link

ctuxboy commented Dec 4, 2018

Hello,
I will trying your plugin, but can't figured out how install.

  1. Download the zip from Github
  2. Uploas the unzipped folder 'PicoMailForms-master' and rename it 'PicoMailForms'
  3. Add this code in a test.md file:
[form]
  [text mail]E-Mail[/text]
  [text]some other information[/text]
[/form]
  1. Adding this code in the config/config.yml (okay i would chanfg this, but i leave it for testing):
Mail:
    SenderName: test.ch
    Host: server.test.ch
    UserName: test@test.ch
    Password: test
    Port: 587
    OperatorMail: testuser@test.ch

After that my test-website shows a blank page with an 500 error.

I used Picocms a week now, but for me as beginner it is not so easy installing without a good step-by-step guide and i'm not familiar with composer at the moment.

Hope you can adding more detailed steps how can implement your plugin in picocms? Where adding the config and content snippets?

@fl3pp
Copy link
Owner

fl3pp commented Dec 5, 2018

Hello ctuxboy,

You have to install the plugin using composer. A "legacy" installation using the files only is not supported as composer takes care for PicoMailForms dependencies and namespaces.

According to the pico docs, pico also recommends installing pico using composer:

Starting with Pico 2.0 we recommend installing Pico using Composer whenever possible

Pico Doc > Install > I want to install pico using composer

After you correctly installed pico using composer, you can install PicoMailForms using followig command:

composer require jflepp/picomailformsplugin

FYI: composer is a kind of a nuget or npm for php and does it's job quite good. It also takes care for auto loading in PHP (which PHP can't do properly by default). composer

Please let me know if that worked for you

@ctuxboy
Copy link
Author

ctuxboy commented Dec 5, 2018

Hi @jflepp,
Thx for the help.
Yesterday evening i try install Pico for the first time with composer.
I have a few question about composer, asked on the picocms github Page.
But it works well and happy i have SSH access to my hosting.
The problem is, some of my clients has no SSH access to they hosting. So i can't use your plugin on they're hosting?

Sorry about my poor english.

@fl3pp
Copy link
Owner

fl3pp commented Dec 5, 2018

Hello @ctuxboy,
You could install your page locally and then push the source files (including ./vendor and the plugin directory) via ftp/share/etc to the server.
The problem is that the plugin is being configured in the ./vendor directory during the installation, so you need to you install it using composer. But there is no need to install it on the server directly (although i would recommend it)

@ctuxboy
Copy link
Author

ctuxboy commented Dec 5, 2018

Oh okay,
I understand:

  1. Installing Picocms and our plugin locally
  2. Upload the Pico installation to server's webroot.

@fl3pp
Copy link
Owner

fl3pp commented Dec 5, 2018

exactly
please let me know if that works for you

@ctuxboy
Copy link
Author

ctuxboy commented Dec 5, 2018

@jflepp
I try it and it works well!
No server erro anymore.

Adding a mailform on a webpage.

Adding the settings in config/config.yml

Mail:
    SenderName: Christophe
    Host: smtp.gmail.com
    UserName: ***@gmail.com
    Password: ***
    Port: 587
    OperatorMail: christophe@my_domain.be

Trying send a mail, but gives an error:
An error occured while sending your message. Please contact the site administrator.

What i see, in the gmail smtp settings, there is an extra option:
Gmail SMTP TLS/SSL required: yes

Is it possible adding this?

@fl3pp
Copy link
Owner

fl3pp commented Dec 6, 2018

SLL SMPT is enabled by default and there is no option to disable it

@fl3pp
Copy link
Owner

fl3pp commented Dec 6, 2018

I think your issue is now resolved as the installation workes using composer
best regards

@fl3pp fl3pp closed this as completed Dec 6, 2018
@ctuxboy
Copy link
Author

ctuxboy commented Dec 6, 2018

It works installing with composer, but sending emails, doesn't work at this moment.
Try it again in the next daus ;-)
If it not works i can open another issue.

@ctuxboy
Copy link
Author

ctuxboy commented Dec 6, 2018

Installing with composer works, but sending emails doesn't work.
Try it again in the next days.

@ctuxboy ctuxboy mentioned this issue Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants