1
24jedi
problems with WebMailFX_1.0RC2
  • 2004/11/29 4:39

  • 24jedi

  • Just popping in

  • Posts: 25

  • Since: 2004/10/21


I am having problems with WebMailFX_1.0RC2
These issues only appear to present themselves when XOOPS PHP Debug = ON.
The functionality of the programs doesn't appear to be suffering, although I've only spent one night banging at it.
Still, The XOOPS PHP debugger is writting error messages.

*(0)**************************************************

I downloaded the zip file and decompressed locally.
I ftp'd the webmailfx folder into the modules folder, just like all the rest.
I installed the WebMailFX RC2 and turned PHP debug=(on)
I have read the read_me and followed the steps with respect to:
- CHMOD 777 /modules/webmailfx/attachments/received
- You need to set register_globals=on for the module to work
- Install the module via the Xooops "Admin Menu"

Basic system info:
Linux/Apache server
PHP 4.3.9
XOOPS 2.0.7.3
For more detailed information usehttp://munyak.com/phpinfo.php

*(1)**************************************************

When I go into Control Panel Home | WebMailFX | Preferences, there are NO PHP errors or warning at the bottom of the screen.

When I go into Control Panel Home | WebMailFX | Statistics, there ARE PHP errors or warning at the bottom of the screen.

Notice [PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283
Notice 
[PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283
Notice 
[PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283


The same three lines appear at the bottom of the screen for:...Statistics, User WebMail, and Group Permissions

For Admin Email, the following four lines appear:
Notice [PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283
Notice 
[PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283
Notice 
[PHP]: Undefined indexcurrent in file modules/webmailfx/class/tabs.php line 283
Warning 
[PHP]: Invalid argument supplied for foreach() in file modules/webmailfx/class/tabs.php line 294


The section of code from tabs.php is below.
Line 283 is the if statment
{
     
$html .= "<li";
-->> if ( 
$tab['current'] == $html .= " id='current'";
     
$html .= "><a href='".$tab['link']."'>".$tab['label']."</a></li>n";
   }

*(2)**************************************************

First I'd like to clarify that with WebMaiFX Debug=ON,
Openning Connection tomail.yak.com //-- [i]real domain not posted[/i]
Connection opened
Sending Command
USER 12345@yak.com //-- [i]real username not posted[/i]
Result OK:
Sending CommandPASS 12345 //--[i]real password not posted[/i]
Result OK:
Sending CommandNOOP
Result OK
:
Sending CommandSTAT
Result OK
:

Now, if you logout of the administration panel and go to the WebMailFX User Module, accessed by using the left hand navbar, you get a different sort of error on the bottoom of the page.

After selecting "Mailbox"
Notice [PHP]: Undefined offset255 in file modules/webmailfx/class.rc4crypt.php line 69


After selecting "Compose"
Notice [PHP]: Undefined variablebody in file modules/webmailfx/compose.php line 68


After selecting "Settings"
Notice [PHP]: Undefined offset255 in file modules/webmailfx/class.rc4crypt.php line 69


Simply clicking the Address books presents no errors,

But if you try to view and existing address entry, you get the following PHP errors.
Notice [PHP]: Undefined variableoptions in file modules/webmailfx/contactbook.php line 318
Notice 
[PHP]: Undefined offset1 in file modules/webmailfx/contactbook.php line 368
Notice 
[PHP]: Undefined offset1 in file modules/webmailfx/contactbook.php line 379


But if you try to Edit and existing address entry, you get the following PHP errors.
Notice [PHP]: Undefined variableoptions in file modules/webmailfx/contactbook.php line 422


Initiating a search for a known contact in the addressbook results in these PHP errors.
Notice [PHP]: Undefined variablecondition in file modules/webmailfx/contactbook.php line 263
Notice 
[PHP]: Undefined variableoptions in file modules/webmailfx/contactbook.php line 269
Notice 
[PHP]: Undefined variablecolor in file modules/webmailfx/contactbook.php line 288


*(3)**************************************************
Since I am not a programmer, I am hoping someone can help me outwith this.

On one hand, the errors don't appear, except when debugging is turned on. On the other hand...an error still appears to exist. What can I do ???

Thanks
Don

2
kaotik
Re: problems with WebMailFX_1.0RC2
  • 2004/11/29 5:00

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Those notices will not affect in any way the operation of webmailfx. Go to system preferences and turn off php debug.

They only exist due to sloppy coding, from previous code writers, myself and add on code such as XOOPS Tabs. I have been tring my best to clean it all up, but my time, as most developers here is on a voluntary basis, there is only so much I can do in my spare time.

3
24jedi
Re: problems with WebMailFX_1.0RC2
  • 2004/11/29 21:18

  • 24jedi

  • Just popping in

  • Posts: 25

  • Since: 2004/10/21


kaotik ...Thanks

However from the perspective of trying to understand. The "notices", would they have anything to do with using a variable without first declaring it ?

I know from my limited experience with vb/asp, if you don't first declare a variable before use, you could have problems.

In trying to read the code first, before submitting this question, I didn't see where any variables were declared

I am just curious :)

Thanks

Login

Who's Online

239 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits