Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 89
9 members and 80 guests
bearmchdressesr, coo5ewkin4sjcpg, cycwcwlinlt2gti, ess3grdexmusica, hel3qwpforcn7jr, pesbxbtcontr3jk, ral4yqkeighqtx5, rem3noqoval4fiw, ronaldtianyiti2
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
Webmail Reply/Forward error in compose.php
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
Webmail Reply/Forward error in compose.php - 07-14-2003, 11:48 PM

I'm getting the following error on the screen when clicking on reply or forward.

Quote:
Warning: REG_EMPTY in /home/virtual/site155/fst/var/www/html/modules/WebMail/compose.php on line 54
However I am still able to send the message.

And should they reply/forward with the history or not? I just see a ">".
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-16-2003, 02:50 PM

There was a problem with that line in 6.0 but I thought it was fixed for 6.5. Can you post the code for the line please.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
07-16-2003, 05:42 PM

For Nuke 6.8 the code is
Code:
if(isset($op)) {
    if($op == "reply") $subject = "Re: ".$subject;
    else if($op == "forward") $subject = "Fwd: ".$subject;
    if (eregi($body,"
",$out)) {
	$bodytext = explode("
",$body);
        foreach($bodytext as $bt) {
	    $content .= "> ".$bt;
        }
line 54 would be the
Code:
$bodytext = explode("
",$body);
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-16-2003, 10:13 PM

I don't know if this will work or not but you can try it.

Change this:
Code:
 $bodytext = explode("
",$body);
To this:
Code:
 $bodytext = explode("\r",$body);
and change this
Code:
$content .= "> ".$bt;
To this:
Code:
$content .= "> ".$bt."\r";
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
:oops:
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
:oops: - 07-16-2003, 10:30 PM

ops:
ouch, sorry, I just got home and opened the file up again. My counting was off earlier.

Line 54 is
Code:
if (eregi($body,"
",$out)) {
Making the change didn't fix anything, anyway.
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-16-2003, 10:39 PM

Try changing it to this:
Code:
if (eregi($body,"
",$out['PHP_SELF'])) {
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
07-17-2003, 01:56 AM

No chane

Thanks for trying. I wish I knew the language to be able to help myself.
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-17-2003, 02:16 AM

I'm not sure the problem is actually with the compose.php even though the error shows up there.

Do the changes create a different error? What happens if you use the first change I gave you but insert \r\n instead of just \r ?

Can you turn debugging on and post the error. I'm going to check a couple other things. I'm suprised that no one else has had this problem. Have you installed any addons or made any other modifications to webmail?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
07-17-2003, 03:26 AM

All the changes above had no effect on the error, it stayed the same.
Even with debugging on, There was no additional error message on the page. Just the usual SQL querry all over the site (specifically by the Site Visitor block, a few modules, and the admin CP's)

I have not installed any addon's except the Site-Visitors block w/ Avatar and a couple minor fixes regarding avatars, webmail, dl/web images, and thats about it.

The modifications to webmail I made were....

Quote:
Howdy Nukers,

I had the same problem as you were having, so I spent some time fingering around with some DB settings. It turns out that the DB may not be fully storing your password. The default value for storing a password is 20 characters. That isn't enough character storage if you have a big password, and not only that, your password gets encrypted, which adds more characters to it. A simple solution it to go into your database with an application such as phpMyAdmin and follow these steps:

- Note: This was performed in v6.5 with phpMyAdmin

1. Scroll down your table list and look for nuke_popsettings, and click browse.

2. Click on structure.

3. Scroll down the field list to passwd and click on change.

4. Edit the Length/Values number and give it a higher number, such as 60. I used 100 since I use real long passwords.

5. Save your changes.

6. Go back into WebMail and go to your account settings and re-enter your password so it gets fully recorded.

I hope that helps you out.
and
Quote:
MurphDog wrote:
k, I did add the @ and that part works great. Thanks!

Whening viewing the contact profile, I'm still getting the warnings for the sql_layer.php file. I noticed this time that it actually doesn't show the profile, the fields are blank. I don't remember if that was the case last night.


in line 246 of the file /modules/webmail/contactbook.php there are a little bug. To fix that,
search for



function view() {
global $userid, $cid, $domain, $imgpath, $bgcolor1, $bgcolor2, $bgcolor3, $prefix, $dbi, $module_name;
OpenTable();
$query = "Select * from ".$prefix."_contactbook where uid='$userid' and contactid='$cid'";
$res = sql_query($query);
if(sql_num_rows($res, $dbi) == 0) {


and replace for:

function view() {
global $userid, $cid, $domain, $imgpath, $bgcolor1, $bgcolor2, $bgcolor3, $prefix, $dbi, $module_name;
OpenTable();
$query = "Select * from ".$prefix."_contactbook where uid='$userid' and contactid='$cid'";
$res = sql_query($query, $dbi);
if(sql_num_rows($res, $dbi) == 0) {

This will remove sql errors as well as allow you to view information on your contacts.
Both from NukeCops

Testing \r\n now.....
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 130
Join Date: Mar 2003
Location: Austin, TX
07-17-2003, 03:41 AM

No change, no additional error message.
 Send a message via ICQ to MurphDog Send a message via Yahoo to MurphDog Send a message via AIM to MurphDog Send a message via MSN to MurphDog  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Post Reply" Fatal Error AdR3NaLiN Nuke 7.x - General 1 03-13-2005 11:00 PM
Forum error when posting a reply. ryan241 Purged Topics 1 07-08-2003 09:03 PM
Webmail error in 6.5 - Help me please! lol BabyJade Nuke 6.5 to 6.9 - Modules 1 07-03-2003 03:19 PM
mycalendar mod installed -- post/reply error Hadron Nuke 6.5 to 6.9 - Modules 1 06-30-2003 11:36 PM
Poll text in my compose webmail window Suzie Purged Topics 12 12-19-2002 12:46 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31