| Author |
Message |
Roman
|
Posted: 11 Nov 2005 22:27:21
Hello!
I'am have a some problem: when I try to add link (at not admin interface), form wrote
Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/rubcbiz/domains/shmanci.ru/public_html/test/SkaLinks_include/Ska Links.class.php on line 1616
but links add ok and appear in admin interface, then i approwed it, and it's write again
Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/rubcbiz/domains/shmanci.ru/public_html/test/SkaLinks_include/Ska Links.class.php on line 1616
what is wrong?
thx
p.s. sorry for my Eng, it's not my native language :)
|
skalinks Admin
|
Posted: 12 Nov 2005 00:48:08
Hi Roman
I think, that the safe mod is enabled on your hosting.
You whould try to do that:
Open SkaLinks.class.php file, find here this string:
mail( $to, $subj, $body, $from, "-f".$sender_email );
and delete from this string thefifth argument of mail function : "-f".$sender_email , after you will do it, you get this string:
mail( $to, $subj, $body, $from );
Thank you!
Adden
|
Roman
|
Posted: 12 Nov 2005 19:54:19
Hi, thanx - now it works.
I'am want to know one thing more - how I can cut off the cachenig ?
i think it's really need me, because every change apply only after refresh.
for example, when i add new categories, and them go to main page - i don't see it.
only after refresh.
it will be not comfortable for my visitors. and i don't know how it will be work with search spiders.
please, help me with this.
|
Roman
|
Posted: 12 Nov 2005 20:19:18
and one more trouble - when i click at "more info" near the link in the directory, at show me error 404.
link look like "listing(NUMBER).html"
mod rewrite at my server is ON.
at script - too.
whan i'll need to do?
and one thing more - I was translated your script and do Russian langpack, maybe your need it - tell me your e-mail, I'll sent you.
|
Roman
|
Posted: 12 Nov 2005 20:27:51
one addition
at admin interface it's look like:
/listing.php?link_id=(NUMBER)
at works ok...
|
skalinks Admin
|
Posted: 15 Nov 2005 05:27:14
Hello Roman
Well, about mod rewrite on your server, if the link as listing(number).html, does not work on your hosting, I think that there are problems on your hosting, also try to rebuild all categories, and click the link "More info" again.
Thank you!
|
skalinks Admin
|
Posted: 15 Nov 2005 05:28:52
Roman , Thank you for your great work ( translation of SkaLinks ) :) we already have the russian lang file of script, but, also, thank you very much!
|
Weezer Member
|
Posted: 23 Nov 2005 09:26:23
Hi there... i will continue this thread, 'cause its name fits my problem :)
and here it is...
after i insert a link to the system (as a user) no email will be sent. there is no error message or something else. i tried a testscript which uses the php mail() command and it works. is there something i forgot to configure in the script?
regards...
|
skalinks Admin
|
Posted: 24 Nov 2005 03:14:05
Hi Weezer
Why does think that mail was not send? Try to insert your email in field and submit link, and then check mail, if there nothing, please tell us about.
Thank you!
|
Weezer Member
|
Posted: 24 Nov 2005 03:56:29 ° Edited by: Weezer
Hi there...
I did the following:
in the add link form i entered the following data.
Resource URL: http://www.myurl.com Linkback URL:
Resource Title: Test
Resource Description: Test
Resource Email: my_real@mail.com
after clicking on the submit button the link is submitted, and i will not receive any email. if i approve the link in the admin panel i also receive no mail.
Webserver:
Apache 2.0 (Apache/2.0.49)
PHP Version 4.3.4
if i execute this script:
$to = 'my_real@mail.com';
$subject = 'Wakeup bob!';
$message = '<b>yo</b>, whassup?';
$headers = "From: xxx@yyyy.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
// Send
mail($to, $subject, $message, $headers);
i receive emails. i also tried to change this:
mail( $to, $subj, $body, $from, "-f".$sender_email );
into
mail( $to, $subj, $body, $from );
this in the SkaLinks.class.php but nothing changes.
regards...
|
Weezer Member
|
Posted: 24 Nov 2005 04:36:01 ° Edited by: Weezer
Hi there again...
I found and fixed the problem ;)
the mail header is generated in the SkaLinks.class.php in row 1840. the header seems to be invalid somehow (anybody knows why? :) ). or my mailserver will not accept mails like that.
if you have the same problem, open the SkaLinks.class.php in SkaLinks_include, search for:
$from = "From: \"".$from."\" <".$sender_email.">\r\n"."Reply-To: <".$sender_email.">\r\n Return-path: <".$sender_email."> \n ";
and replace it with:
"From: \"$from\" <$sender_email>\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
that works for me ;)
regards...
|
skalinks Admin
|
Posted: 25 Nov 2005 06:36:43
Hi Weezer
It is very possible that your mail server does not want to sent email with this headers, I think , that , there is onther mail software onyour hosting, also, thank you for your great work in desicion of this problem.
:)
|
Anonymous
|
Posted: 2 Feb 2006 00:44:10
i am using windows shared server. Mail() function doesnt work :(
whats can i do ?
plz email me mihir@arthatechnologies.com
i will register soon...
regds
mihir
|
Stevie Ray Member
|
Posted: 7 May 2006 17:54:21
[COMMENT]
THe Weezer fix has been included in new thread combining the SAFE MODE fix and this one. Very useful if you happen to be on BLUEHOST.
STill looking for a better mod on the FROM sender name field.
Go to this thread for the combine3d fix if your email send function doesn't work at all.....
http://www.skalinks.com/forums/1_446_0.html
SRVII
|
|