Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

X3 Beta V0.7

13 Dec 2014, 05:37

X3 Beta v07 Dec 13
This update mainly addresses two new features: Page link and redirect, and extensive mail settings, including template and SMTP options.

To those who have mail working and don't need the link/redirect feature, feel free to skip this update.

---
Those of you who already have the "secret link", can use the same link to download this latest release. To those who don't yet have the "secret link", send me a PM, and I will provide it.
---

Link and Redirect
This setting not only allows you to create links (internal- or external) in your menu, but also create pages that redirect. It is a very powerful feature, and instead of including full details here, I have already populated the documentation extensively:
www.photo.gallery/x3docs/pages/link/

Mail Settings
We have added extensive mail settings, including an SMTP send option and a mail template editable from the panel. This is also a very extensive feature, and instead of including full details here, please read the new extensive mail settings documentation:
www.photo.gallery/x3docs/settings/mail/

Important! After this updated, you will need to populate the new mail settings, and the accounts.email setting is now deprecated/ignored. You will need to copy-paste this new settings structure into your main settings page, and modify accordingly:
Code
# Various global settings [Advanced]
settings:
  pagenav: auto # Navigate between sibling pages: true|auto|false
  preload: false # Only set to true AFTER you are finished editing!
  server:
    rewrite	: # true|false [default=true] # Nice Url's
    base_url: # Add base URL here if you are using a redirect
    reporting: # true|false [default=false] # Error reporting
  mail:
    to		: # Mail recipient
    from	: # Some hosts require a 'FROM' address on the same domain
    subject	: %domain% | New message from %name%
    host	: # SMTP Hostname | Enable SMTP and fill the details below
    SMTPAuth: # SMTP Authorization : true|false
    username: # SMTP username
    password: # SMTP password
    SMTPSecure: # SMTP secure protocol | tls|ssl|(empty)
    port	: # SMTP port | 25|587|465
    debug	: # Debug mail true|false
More
- Added gzip/deflate test to /check page
- Added extensive link/redirect example to release version
- Fixed a few minor bugs

---

Updating
The same goes for this update as previous update: Upload and overwrite ALL files, EXCEPT the /content/ folder, which contains all your pages, content and settings. You may need to make a backup of your panel/config.php file also if you have set a login (which is likely). Also, you may need to update your content/_shared.yml file as specified above.

---

Files changed:
Code
modified:   check/index.php
new folder:   content/custom/mail/
new folder:   extensions/PHPMailer/
modified:   extensions/twig.imagevue.inc.php
modified:   panel/filemanager_assets/page.yml
modified:   public/js/imagevue.min.js
modified:   public/js/imagevue.min.jsgz
modified:   templates/mail.txt
modified:   templates/page.html
modified:   templates/partials/nav/root-menu.html
modified:   content/_shared.yml
new folder:   content/3.examples/4.other/7.link/
 
User avatar
nz-photo
Experienced
Posts: 248
Joined: 06 Dec 2007, 17:26

Re: X3 Beta V0.7

16 Dec 2014, 10:48

Well I'm still in trouble to set uup my email contact feature...
I've done all the last updates but it still doesn't work and when the "send" button is hit
it is just stuck on the rolling animation near 'send' text. And no email is send nor receicved... :roll:
Do I have something else to change in my contact form ? (using the footer icon)

When I use the check page it ends with :

Warning: mail() has been disabled for security reasons in /var/www/vhosts/nz-photo.com/httpdocs/check/index.php on line 1210
Server mail() fail.
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: X3 Beta V0.7

16 Dec 2014, 12:29

The check page currently just diagnoses basic mail sending (not SMTP). I checked your mail script, and it took a long time, but finally I read the response:
Code
<HTML>
<HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator to inform of the time the error occurred
and of anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>
Web Server at nz-photo.com
</ADDRESS>
</BODY>
</HTML>

<!--
   - Unfortunately, Microsoft has added a clever new
   - "feature" to Internet Explorer. If the text of
   - an error's message is "too small", specifically
   - less than 512 bytes, Internet Explorer returns
   - its own error message. You can turn that off,
   - but it's pretty tricky to find switch called
   - "smart error messages". That means, of course,
   - that short error messages are censored by default.
   - IIS always returns error messages that are long
   - enough to make Internet Explorer happy. The
   - workaround is pretty simple: pad the error
   - message with a big comment like this to push it
   - over the five hundred and twelve bytes minimum.
   - Of course, that's exactly what you're reading
   - right now.
   -->
This is something from your server, and I don't know what to read from it. The last part should be irrelevant at least ... Does your host provide any mail plugin that works at all? We use https://github.com/PHPMailer/PHPMailer and are simply relaying the correct settings you have added to SMTP.

Can you try to set debug: 3 (instead of true)? I might be able to get some more debugging, but it might not help ... You may need to contact your host, because we are using a renowned PHP mailer ...
 
User avatar
nz-photo
Experienced
Posts: 248
Joined: 06 Dec 2007, 17:26

Re: X3 Beta V0.7

16 Dec 2014, 12:55

Well... Remember I asked them after phpmail stopped working as they've blocked it on the server end of november.
Then they told me to use smtp mail instead using phpmailer and they send me an help link (in french)
I'm reading it now and it seems that I have to upload on my server 2 php files :
https://github.com/PHPMailer/PHPMailer/ ... s.smtp.php
and
https://github.com/PHPMailer/PHPMailer/ ... mailer.php

I'm looking into doing this and checking again then...
EDIT unsuccessful... that's really a mess... :roll:
Here's a kind of axample they provide as a help : http://help.haisoft.net/UseSMTP
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
nz-photo
Experienced
Posts: 248
Joined: 06 Dec 2007, 17:26

Re: X3 Beta V0.7

16 Dec 2014, 13:16

I've just received an email from the contact form !!
After uplaoding the 2 files i talked about above (php files) I also change back to port 25 instead of 587...
And It worked, but I'm not sure what was thesolution...
I have to do a few various tries to understand now...
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: X3 Beta V0.7

16 Dec 2014, 13:22

nz-photo wrote:I've just received an email from the contact form !!
After uplaoding the 2 files i talked about above (php files) I also change back to port 25 instead of 587...
And It worked, but I'm not sure what was thesolution...
I have to do a few various tries to understand now...
Those files you uploaded are already part of the script that sends email with X3!
https://github.com/PHPMailer/PHPMailer

The files are inside /extensions/PHPMailer/ already. It wouldn't help for you to just upload them into random locations on your website. They need to be used in the PHP code, and that is what X3 is doing already ...

I am looking at your settings right now Nicholas, and you have a mix of local SMTP settings and Gmail SMTP settings ... You need to choose if you are sending from gmail SMTP, OR your servers own SMTP on your domain. Try using the examples from that page http://help.haisoft.net/UseSMTP for your settings ... Right now as your username, you have nzwarg@gmail, and that can't possibly be the username login for your local SMTP server ...
 
User avatar
nz-photo
Experienced
Posts: 248
Joined: 06 Dec 2007, 17:26

Re: X3 Beta V0.7

16 Dec 2014, 13:25

Alright so indeed I'm now mixing up everything actually :roll: :lol:
I'm gonna try to set it clearly and check if it is still working.
Thanks Karl !
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

20 Dec 2014, 23:40

I made some changes and problems popped up and I was unable undo what I had done and the only way I know how to reverse the issue is to upload and overwrite all of the x3 files. I have done that but the problems still exists. I am unsure why all of the file were not overwritten and the issues are still there. My logo/name is over top of "greetings" on the main page.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: X3 Beta V0.7

20 Dec 2014, 23:54

swamphox wrote:I made some changes and problems popped up and I was unable undo what I had done and the only way I know how to reverse the issue is to upload and overwrite all of the x3 files. I have done that but the problems still exists. I am unsure why all of the file were not overwritten and the issues are still there. My logo/name is over top of "greetings" on the main page.
Sorry, I misread this post first, and have already deleted my first response.
I am not sure what problems popped up, but they sound like some settings you applied to a page or globally? It wouldn't help much uploading all new X3 as the issues are in either your content/_shared.yml global settings file (panel->settings), or in a page settings file.

Link?
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

21 Dec 2014, 00:06

delmarvadesigns.com
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

21 Dec 2014, 00:08

If I can't overwrite all of the files I am at a complete loss of what to do.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: X3 Beta V0.7

21 Dec 2014, 00:13

swamphox wrote:If I can't overwrite all of the files I am at a complete loss of what to do.
You can, but if you made a typo/mistake in settings, it would not make sense uploading all application files which have no effect on your single small settings file ...

Where is your check page that allows me to diagnose?
http://delmarvadesigns.com/check/
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

21 Dec 2014, 00:27

I don't know what happened to it. SHould be there.
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

21 Dec 2014, 00:29

The only thing I did was change a name of a folder and save it. That is it. Folder is missing and the logo is combined with other text.
 
User avatar
swamphox
Experienced
Posts: 136
Joined: 29 Nov 2007, 07:05

Re: X3 Beta V0.7

21 Dec 2014, 00:31

What happened to Flawless managed+hosted X3 by ImagevueX ?