|
» Online Users: 54 |
| 0 members and 54 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
Tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
About this Page This is a discussion on Webmail Reply/Forward error in compose.php within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; I'm getting the following error on the screen when clicking on reply or forward.
Warning: REG_EMPTY in /home/virtual/... |
|
 |
|
 |
|
 |

07-14-2003, 11:48 PM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
|
Webmail Reply/Forward error in compose.php
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 ">".
|

07-16-2003, 02:50 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Posts: 737
|
|
|
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.
|

07-16-2003, 05:42 PM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
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); |
|

07-16-2003, 10:13 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Posts: 737
|
|
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"; |
|

07-16-2003, 10:30 PM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
|
:oops:
 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.
|

07-16-2003, 10:39 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Posts: 737
|
|
Try changing it to this:
|
Code:
|
if (eregi($body,"
",$out['PHP_SELF'])) { |
|

07-17-2003, 01:56 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
No chane
Thanks for trying. I wish I knew the language to be able to help myself.
|

07-17-2003, 02:16 AM
|
|
Moderator
|
|
Join Date: Nov 2002
Posts: 737
|
|
|
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?
|

07-17-2003, 03:26 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
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.....
|

07-17-2003, 03:41 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Austin, TX
Posts: 130
|
|
|
No change, no additional error message.
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|