From: David C. R. <dra...@su...> - 2008-08-26 07:17:23
|
Paul Lesniewski wrote: > On Mon, Aug 25, 2008 at 11:19 PM, David C. Rankin > <dra...@su...> wrote: >> Paul Lesniewski wrote: >>> On Mon, Aug 25, 2008 at 10:45 PM, David C. Rankin >>> <dra...@su...> wrote: >>>> Listmates, >>>> >>>> New install of SM 1.5.2 svn (revision 13268) on openSuSE 11.0 i386 >>>> (php5-5.2.6-0.1, apache2-2.2.8-28.1) and I am getting a large "SquirrelMail >>>> notice messages" box when I select the addresses page. The message is displayed >>>> at the bottom of the page and displays the following in a table: >>>> >>>> >>>> SquirrelMail notice messages >>>> Category: PHP >>>> Message: Use of undefined constant SMOPT_SIZE_NORMAL - assumed 'SMOPT_SIZE_NORMAL' >>>> FILE: /srv/www/htdocs/squirrelmail/functions/forms.php >>>> LINE: 180 >>>> >>>> Is this a php 5.2.6 thing? How do I get rid of it? Thanks for any help you can >>>> give. >>> Nothing to do with PHP. Open functions/options.php and see if line 52 has this: >>> >>> define('SMOPT_SIZE_NORMAL', 5); >>> >>> If it does, there may be a include order problem, although I've not >>> seen this myself. Are you running any plugins? (Note that you can >>> temporarily disable all plugins in the configuration utility without >>> actually removing any of them. You should try that.) >>> >> Man, your fast!, >> >> Yes, I've checked functions/options.php and the define is there. The only >> plugins I have are calendar and squirrelspell. I have removed/disabled them and >> the notice still appears. Here is a screenshot of what I am seeing: > > Looks like it's time to put those constants where they belong. You > can download the next SVN update or apply these two patches: > > http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/functions/options.php?view=patch&r1=13269&r2=13268&pathrev=13269 > http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/include/constants.php?view=patch&r1=13269&r2=13268&pathrev=13269 > >> http://www.3111skyline.com/download/screenshots/sqmail/smopt_size-msg.jpg >> >> Thanks for your quick response. > > You're welcome. Couldn't resist, I had to try the patches. Bad news though, same behavior with the notice. I've included the patched files for your review just to make sure the patches were applied correctly. I'm fairly sure they were. I just ran them from /functions with patch -p3 patchfile. Additionally, here is the post-patch screenshot (no difference): http://www.3111skyline.com/download/screenshots/sqmail/smopt_size-msg-post-patch.jpg Thanks again for your help. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com |