We have moved to Github. Please open tickets there.

Opened 4 years ago

Closed 4 years ago

#610 closed Defect (worksforme)

"password request" and "mail validation" mails not send -> internal server error

Reported by: Dahaniel Owned by:
Priority: critical Milestone: Elgg 1.1
Component: Core Version: 1.1
Severity: blocker Keywords:
Cc: brettp Difficulty:

Description

"Registration validation" mails and "password request" mails are not send, in either dialog I end up with an "internal server error" 500.

This error also occurs when creating first admin account after installation, registration mail has never been send.

Other notifications from within elgg like friendrequests etc. are being send normal.

I am sorry that I can't provide logs as i do not have access to them with my provider.

Attachments (1)

error.log.tar.gz (178.1 KB) - added by Dahaniel 4 years ago.
error.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 4 years ago by marcus

  • Resolution set to worksforme
  • Status changed from new to closed

Works for me, check your .htaccess configuration

comment:2 Changed 4 years ago by Dahaniel

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I did, I added the subfolder I installed Elgg to as RewriteBase without any effect. Here is my .htaccess:

<Files ~ "\.php">
  SetHandler x-httpd-php5
</Files>
# Elgg htaccess directives
# Copyright Curverider Ltd 2008
# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
# Link http://elgg.org/


<IfModule !mod_rewrite.c>
    # ugly ugly hack to detect missing mod_rewrite
    # RedirectMatch must be to an absolute destination, so forces 500 error...
    ErrorDocument 500 "Elgg error: Apache does not have mod_rewrite loaded. Please check your Apache setup."
    RedirectMatch 302 .* index.php
</IfModule>

<Files "htaccess-dist">
    order allow,deny
    deny from all
</Files>

# Don't listing directory
Options -Indexes

# Follow symbolic links
Options +FollowSymLinks

# Default handler
DirectoryIndex index.php

# php 4, apache 1.x
<IfModule mod_php4.c>
    ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."
    RedirectMatch 302 .* index.php
</IfModule>

# php 4, apache 2
<IfModule sapi_apache2.c>
    ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."
    RedirectMatch 302 .* index.php
</IfModule>

# php 5, apache 1 and 2
<IfModule mod_php5.c>
	# default memory limit to 64Mb
	php_value memory_limit 64M
	# to make sure register global is off
	php_value register_globals 0
	# max post size to 8Mb
	php_value post_max_size 8388608
	# upload size limit to 5Mb	
	php_value upload_max_filesize 5242880
	# hide errors, enable only if debug enabled
	php_value display_errors 0
</IfModule>

<IfModule mod_rewrite.c>

RewriteEngine on

# If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line
# containing the path from your site root to elgg's root. e.g. If your site is
# http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need 
#

RewriteBase /elgg/elgg/

#
# here, only without the # in front.
#
# If you're not running Elgg in a subdirectory on your site, but still getting lots
# of 404 errors beyond the front page, you could instead try:
#
#RewriteBase /

RewriteRule ^action\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1
RewriteRule ^actions\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1

RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2
RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2
RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4

RewriteRule ^\_css\/css\.css$ _css/css.php

RewriteRule ^pg\/([A-Za-z\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2
RewriteRule ^pg\/([A-Za-z\_\-]+)$ engine/handlers/pagehandler.php?handler=$1

RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php
RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php

</IfModule>

comment:3 Changed 4 years ago by costelloc

I agree with Marcus - works for me.

Changed 4 years ago by Dahaniel

error.log

comment:4 Changed 4 years ago by Dahaniel

OK, so today I got the error.log from my provider, I attached it to the ticket.
Here are some lines around an error regarding "requestnewpassword.php". I am not too much into php and mysql so I hope somebody knows how to read these:

[Fri Dec 05 10:23:58 2008] [error] [client 134.34.127.11] WARNING: 2008-12-05 10:23:58 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/page_top/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1982)
[Fri Dec 05 10:23:58 2008] [error] [client 134.34.127.11] WARNING: 2008-12-05 10:23:58 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1985)
[Fri Dec 05 10:23:58 2008] [error] [client 134.34.127.11] WARNING: 2008-12-05 10:23:58 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1988)
[Fri Dec 05 10:24:46 2008] [error] [client 66.249.66.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Dec 05 10:24:49 2008] [error] [client 134.34.127.11] malformed header from script. Bad header=  Unable to parse the addresse: requestnewpassword.php, referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:26:06 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:06 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/page_top/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1982)
[Fri Dec 05 10:26:06 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:06 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1985)
[Fri Dec 05 10:26:06 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:06 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1988)
[Fri Dec 05 10:26:41 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:41 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/page_top/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1982), referer: http://pbop.de/elgg/elgg/
[Fri Dec 05 10:26:41 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:41 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/object/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1985), referer: http://pbop.de/elgg/elgg/
[Fri Dec 05 10:26:41 2008] [error] [client 134.34.127.94] WARNING: 2008-12-05 10:26:41 (CET): "getimagesize(/home/www/kunden/pbop.de/elgg/elgg/views/default/graphics/icons/default/small.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/entities.php (line 1988), referer: http://pbop.de/elgg/elgg/
[Fri Dec 05 10:26:52 2008] [error] [client 134.34.127.94] File does not exist: /home/www/kunden/pbop.de/elgg/elgg/_graphics/river_icons/dummy_river_icon.gif, referer: http://www.pbop.de/elgg/elgg/_css/css.css

Thanks for your help!
Daniel

comment:5 Changed 4 years ago by Dahaniel

Oh I think these lines were after enabling the DEBUG mode.

[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] malformed header from script. Bad header=  Unable to parse the addresse: requestnewpassword.php, referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] DEBUG: 2008-12-05 10:30:13 (CET): "Undefined index:  user" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/elgglib.php (line 60), referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] DEBUG: 2008-12-05 10:30:13 (CET): "Undefined index:  pass" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/elgglib.php (line 61), referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] DEBUG: 2008-12-05 10:30:13 (CET): "Undefined index:  user" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/elgglib.php (line 62), referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] DEBUG: 2008-12-05 10:30:13 (CET): "Undefined index:  pass" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/elgglib.php (line 62), referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php
[Fri Dec 05 10:30:13 2008] [error] [client 134.34.127.94] DEBUG: 2008-12-05 10:30:13 (CET): "Undefined index:  port" in file /home/www/kunden/pbop.de/elgg/elgg/engine/lib/elgglib.php (line 66), referer: http://www.pbop.de/elgg/elgg/account/forgotten_password.php


comment:6 Changed 4 years ago by costelloc

Daniel, this is not a support forum. You should post this on the google groups if you want help.

http://groups.google.com/group/elgg-users?lnk=

comment:7 Changed 4 years ago by Dahaniel

Thanks, I will try, so when is something a bug and when is it not, it is definitely not working for me.

comment:8 Changed 4 years ago by costelloc

This issue was solved on google groups. It was a server problem, not an elgg problem as suspected.

comment:9 Changed 4 years ago by marcus

  • Resolution set to worksforme
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.