Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

email via smtp cant store any data 3 months 3 weeks ago #1

  • joker
  • joker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
hi

i need some help about smtp settings.

i try to put in data of my mail provider but if i check "save" a white page appears and nothing happen anymore.
if i go back to settings -> email all data is lost

my server is selfhostet at home, based on debian netinst.iso

everytime i try an update it will stop with some permission probs.
if i do the update vis ssh as root everything works fine.

maybe there is a permission problem but i dont know where to fix it

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 3 months 3 weeks ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2409
A white page you say?
See this FAQ article first: webtrees.net/faq/500/
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 2 months 1 week ago #3

  • joker
  • joker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
i think the problem could be in the first topic:

File permissions. webtrees needs to be able to write to all the files and subfolders in the folder /data/

of the link above.

but how is the user called that needs write permissions?
is it "webtrees" or "www-data" or something else????


i give rwx to everyone for /data but the problem is still the same.

are there any log-files to fond out what went wrong in the moment the white page appears?

it happend to me with e-mail options and if i try to check the box to apply a new user by admin as well.

if i try to save the e-mail options it will push me to: www-serveraddress/index.php?route=%2Fadmin%2Femail
if i try to accept a new user it will push me to: www.serveraddress/index.php?route=%2Fadmin%2Fadmin-users-edit

both with the blank page without any error message

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 2 months 1 week ago #4

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2409
I think there are two things stored in the data folder:
* config.ini.php containing mainly the connection settings to your database
* media images

Most of webtrees data (including most config settings) are stored in the database.

Is it possible for a user to upload an image?

If this is mainly related to sending emails, see webtrees.net/faq/email/

But to get the root cause of those blank screens, you have to follow this:

I get a “500” error or a blank page

A blank page indicates that two things happened:

1. A fatal error occured while creating the web page.
2. Your web-server (e.g. apache, nginx, IIS) is configured not to display fatal errors on the screen.

Typical causes of fatal errors are:

* File permissions. webtrees needs to be able to write to all the files and subfolders in the folder /data/
* Running out of disk space. You can check if this is a problem by uploading (and then deleting) a large file to the server using FTP.
Running out of CPU time. You can identify these because the error does not appear until the time limit is reached.
* Running out of memory. This can be caused by program errors or by trying to process a lot of data at once. For example, trying to list many thousand individuals at the same time.
* Incompatible software. For example, using PHP 7.3 with software that was designed for PHP 7.4.
* Trying to use a PHP function that has been blocked by your web-host. For example, the function needed to send mail can be blocked.

Generally when a fatal error occurs, the web-server will write a detailed error message to a log file. You need to find this error log. Without it, it will be very difficult to fix the problem.

Note that your web-server will produce two log files. One is the access log and the other is the error log. You want the error log.

If you cannot find your error log, you should contact your webhosting provider for assistance.

Alternatively, if your server uses .htaccess files, try adding the following lines:
php_flag display_errors on
php_flag display_startup_errors on
php_value error_reporting -1

but how is the user called that needs write permissions?
is it "webtrees" or "www-data" or something else????

It is your own server, so ...
I think it is the user that runs the web server or PHP process.

are there any log-files to fond out what went wrong in the moment the white page appears?

Yes, there should be error logs. Since it is your own server... Have you tried adding the display errors part in .htaccess?
Have you found any log files at all?
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

email via smtp cant store any data 2 months 6 days ago #5

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14878
> but how is the user called that needs write permissions?
> is it "webtrees" or "www-data" or something else????

Control panel -> Server information -> PHP variables.

One of the variables here might tell you the user.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 1 month 3 weeks ago #6

  • joker
  • joker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
ok i got a php error.
but i dont know what to do.
here it is :
GNU nano 3.2                                                                                         /var/log/apache2/error.log                                                                                                    

 1 [Sat Jul 31 00:00:02.452444 2021] [mpm_prefork:notice] [pid 9240] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
 2 [Sat Jul 31 00:00:02.452488 2021] [core:notice] [pid 9240] AH00094: Command line: '/usr/sbin/apache2'
 3 [Sat Jul 31 13:59:06.753114 2021] [php7:error] [pid 24589] [client 71.84.221.114:52944] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.p$
 4 [Sat Jul 31 17:46:17.903479 2021] [php7:error] [pid 24592] [client 84.183.35.37:47714] PHP Fatal error:  Declaration of Egulias\\EmailValidator\\Validation\\MessageIDValidation::isValid(string $email, Egulias\\EmailValidator\$
 5

is there a list with all needed php modules?
i think maybe there could be a missing php module because all my servers are based on debian netinst so i got to install anything by my self.

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 1 month 3 weeks ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14878
Delete the "vendor" folder, and re-install it.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 1 month 3 weeks ago #8

  • joker
  • joker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
please give me some more info what to do.

Where have you seen the error with vendor folder?
what is this folder for?

i moved it away and copied the folder out of a fresh webtrees zip file to replace it.
rebooted the server but still the same error as before.

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

email via smtp cant store any data 1 month 3 weeks ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14878
> still the same error as before.

PHP Fatal error: Declaration of Egulias\\EmailValidator\\Validation\\MessageIDValidation::isValid(string $email, Egulias\\EmailValidator\

What version of PHP are you using?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

email via smtp cant store any data 1 month 3 weeks ago #10

  • joker
  • joker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
sorry was not clear enough

i ment the error with the white page after trying to save the data.

php version is 7.4.21

in the new errorlog is something more:
 1 [Sun Aug 01 00:00:02.786997 2021] [mpm_prefork:notice] [pid 9240] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
 2 [Sun Aug 01 00:00:02.787028 2021] [core:notice] [pid 9240] AH00094: Command line: '/usr/sbin/apache2'
 3 [Sun Aug 01 04:14:22.355334 2021] [php7:error] [pid 30899] [client 34.223.107.56:49156] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.$
 4 [Sun Aug 01 05:48:31.904126 2021] [php7:error] [pid 30899] [client 167.99.133.28:54726] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.$
 5 [Sun Aug 01 05:48:32.253666 2021] [authz_core:error] [pid 30897] [client 167.99.133.28:54910] AH01630: client denied by server configuration: /var/www/html/server-status
 6 [Sun Aug 01 07:09:41.828595 2021] [php7:error] [pid 30901] [client 180.151.85.100:59246] script '/var/www/html/public/index.php' not found or unable to stat
 7 [Sun Aug 01 07:09:42.503123 2021] [php7:error] [pid 30900] [client 180.151.85.100:60416] script '/var/www/html/elrekt.php' not found or unable to stat
 8 [Sun Aug 01 07:09:47.602852 2021] [php7:error] [pid 511] [client 180.151.85.100:53663] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.p$
 9 [Sun Aug 01 11:01:24.896525 2021] [php7:error] [pid 31043] [client 84.183.35.37:37206] PHP Fatal error:  Declaration of Egulias\\EmailValidator\\Validation\\MessageIDValidation::isValid(string $email, Egulias\\EmailValidator$
10 [Sun Aug 01 11:02:02.126744 2021] [mpm_prefork:notice] [pid 9240] AH00169: caught SIGTERM, shutting down
11 [Sun Aug 01 11:02:28.943353 2021] [mpm_prefork:notice] [pid 552] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
12 [Sun Aug 01 11:02:28.955088 2021] [core:notice] [pid 552] AH00094: Command line: '/usr/sbin/apache2'
13 [Sun Aug 01 11:03:11.139266 2021] [php7:error] [pid 558] [client 84.183.35.37:37250] PHP Fatal error:  Declaration of Egulias\\EmailValidator\\Validation\\MessageIDValidation::isValid(string $email, Egulias\\EmailValidator\\$
14 [Sun Aug 01 11:14:15.727415 2021] [php7:error] [pid 555] [client 84.183.35.37:37514] PHP Fatal error:  Declaration of Egulias\\EmailValidator\\Validation\\MessageIDValidation::isValid(string $email, Egulias\\EmailValidator\\$
15 [Sun Aug 01 18:09:25.971670 2021] [php7:error] [pid 556] [client 167.99.60.223:42284] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.ph$
16 [Sun Aug 01 19:29:57.576600 2021] [php7:error] [pid 1474] [client 138.197.73.20:60598] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.p$
17 [Sun Aug 01 20:27:13.099138 2021] [php7:error] [pid 638] [client 178.60.27.186:35174] PHP Fatal error:  Uncaught ErrorException: Trying to get property 'name' of non-object in /var/www/html/resources/views/layouts/default.ph$
18

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum